CityGenerator / Megacosm-Generator

A tool for creating fantasy campaign settings, including maps, regions, flags, cities, NPCs, businesses, legends, lore and more.
GNU General Public License v2.0
70 stars 31 forks source link

sloooowness #70

Closed morgajel closed 10 years ago

morgajel commented 10 years ago

23:53 < Eviltechie> morgajel: trying to generate 20 cuisines returns a 502 Day changed to 03 Apr 2014 00:05 -!- MarkB1 [~mbiggers@cpe-107-015-058-032.nc.res.rr.com] has quit [Ping timeout: 240 seconds] 00:27 -!- jbrier [~KG4AKV@cpe-174-109-060-168.nc.res.rr.com] has quit [Ping timeout: 240 seconds] 00:40 < morgajel> http://megacosm.morgajel.net/street 00:41 < morgajel> Eviltechie: you may have caught me while I was updating 00:41 < morgajel> ooooh... or not. 00:42 < Eviltechie> One worked, five was slow, 20 gave a 502 00:43 < morgajel> yeah, I know why 00:43 < morgajel> will have to fix it tomorrow

morgajel commented 10 years ago

My presumption here is that connections to other services is the bottleneck.

My first step was to switch to a local redis configuration- this helped a lot.

Second, the feature/performacerefactor contains better exception handling that reduces the number of calls to redis further.

Before step 2: Time per request: 6037.479 ms After step 2: Time per request: 4122.231 ms

no more timeouts at least.