I've got a TG2 (2.0.3) application that is using memcache for beaker caching and it generally works; however, under load I see strange behaviour (see below). I'm leveraging Beaker caching via its method decorator and only using it for caching (not for sessions).
-beaker.lock_dir setting? does this apply to memcache? should this be a NFS share in a farm environment? Anyhow, I'm curious to understand more how the "lock_dir" setting affects memcache types? In other words, if I am running a pair of web servers and a pair of memcache servers, should I set this "lock_dir" to an NFS share that everyone can see? I'm assuming beaker is still using some disk based locking files and therefore, mutliple servers would want to have acccess to them? Does this make sense? - beaker config settings in the TG config files. Also, I noticed in the default TG2 config files there are only settings for: #beaker.cache.data_dir = %(here)s/data/cache #beaker.session.data_dir = %(here)s/data/sessions But not for other beaker config params like "beaker.cache.type" or "beaker.url" as found @ http://wiki.pylonshq.com/display/beaker/Configuration+Options. I assume this is just for bevity and other settings haven't been left out because they may be problematic in this environment... Also the docs on using Beaker cache usage @ http://www.turbogears.org/2.0/docs/main/Caching.html actually doesn't show leveraging the config parameters.. so I'm just trying to figure out what is the best way here. Seperately, I'm having trouble with getting the following error message: Error - <type 'exceptions.OSError'>: [Errno 24] Too many open files: 'beaker.cache/d/d8/d8371014ccb7efcd0c735ecdad9a91081d74bc77.lock' after some short but decently loaded run times. Anyone seen this? I've read on the Pylon's group that earlier version of Beaker had some trouble here; but I upgraded to Beaker 1.4.2 and still get it. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

