limit fetch bandwidth
Closed this issue · 7 comments
We need to limit the fetches to 1.5Mbps. Implemented the facility for this in 9d8e095
Merged into stable and testing, and deployed to both lylina.com and lylina.radiosilence.org.
Limited lylina.com to 130 kB/s
Limited lylina.radiosilence.org to 50kB/s
Not sure if this is actually working. Need to test whether the curl option actually works on swingline, and eventually push tasks to an asynchronous queue. That part may be filed as a new issue at some point.
Accept-Encoding may help if the fetched content wasn't being compressed before. I think we can fix this issue by rewriting fetching so that not all the feeds are fetched in parallel at the same time. Right now the fetch is overrunning PHP's max execution time of 30 seconds.
Fetching fewer feeds at once or switching to some kind of process queue should fix both issues with fetching.
Yeah, I absolutely agree that that is the real fix, but I'd still like to test the effect encoding has when deployed to production in terms of data downloaded and server load.
This seems to have actually brought us below the point of running an overage in terms of bandwidth, for now.