Re: [web2py] share data across uwsgi processes

2012-03-16 Thread Carlos
Ok, thanks very much for all your input ! On Friday, March 16, 2012 10:12:42 AM UTC-6, Detectedstealth wrote: > > Or you could create a separate application that is outside of web2py that > doesn't get started by the server, and/or loads when the server is started > automatically, that your web

Re: [web2py] share data across uwsgi processes

2012-03-16 Thread Bruce Wade
Or you could create a separate application that is outside of web2py that doesn't get started by the server, and/or loads when the server is started automatically, that your web2py applications can access through a daemon or something. On Fri, Mar 16, 2012 at 8:52 AM, Massimo Di Pierro < massimo.d

Re: [web2py] share data across uwsgi processes

2012-03-16 Thread Massimo Di Pierro
The problem is that you cannot use ram. That is because you may have more than one process and even if you have s ingle process, the web server may restart it. It needs to be stored in file (in that case I'd suggest a shared db) or some external cache (for example redis). Massimo On Friday, 16

Re: [web2py] share data across uwsgi processes

2012-03-16 Thread Carlos
Thanks Bruce. I require to share (set, get, update, delete) only a small chunk of data, is this at all possible with web2py?. Can Massimo or some of the other web2py experts comment on this?. Thanks again. On Friday, March 16, 2012 7:14:50 AM UTC-6, Detectedstealth wrote: > > For keeping thin

Re: [web2py] share data across uwsgi processes

2012-03-16 Thread Bruce Wade
For keeping things in memory and being able to update the objects in real time, cache.ram and memcache I think are out of the question because I believe they both store a specific state of the object in memory (no update options). I have no idea about redis. However I have been looking for the exa

Re: [web2py] share data across uwsgi processes

2012-03-16 Thread Carlos
Thanks Roberto. But I'm looking for something more generic to web2py, which works on both my production environment (ubuntu with uwsgi) and my local environment (windows with rocket), and hopefully other production configurations (with no uwsgi processes) if necessary. Is there such a thing in

Re: [web2py] share data across uwsgi processes

2012-03-15 Thread Roberto De Ioris
> Hi, > > My production environment is: latest web2py trunk, ubuntu 10.04, > postgresql > 8.4, nginx, uwsgi. > > I need to have data shared (not cached for certain time) across the uwsgi > processes. > > Currently I'm accessing such data via db select, but I'm wondering if > there's a faster ram m