GetDotaStats / site

The GetDotaStats site in all of its glory
http://getdotastats.com
MIT License
7 stars 2 forks source link

Signatures generation performance improvements #259

Open jimmydorry opened 8 years ago

jimmydorry commented 8 years ago

They consume too much of the resources. It would be nice if I could just drop them completely.

It's possible that one of the signature libraries we rely is broken too.

I either cause a lot of I/O waste by caching the responses to disk (100KB per request), or I consume PHP worker slots by holding in memory and waiting for the complete request. They can also take up to 12 seconds to generate.

jimmydorry commented 8 years ago

The temporary fix is to set error level to error in nginx, and disable caching. Sigs appear to take 10seconds to generate around this time of the day.

jimmydorry commented 8 years ago
jimmydorry commented 8 years ago

The two bottlenecks for signature generation are getting data from DB and grabbing the user's avatar