Hi,
I have written an application which on initiliazation calculates a graph
based on data in DB. And then any updates on the graph(global variable)
, i am doing both on graph and db.
Everything works fine as long as i work on single mongrel. When i use 2
mongrels, second mongrel cannot see graph in the memory. It gets a null
variable.
How do i do this so that graph built in the memory is accessible to all
mongrels?
Regards,
Sandeep G
On 21 Apr 2008, at 12:05, Sandeep G. wrote:
use 2
mongrels, second mongrel cannot see graph in the memory. It gets a
null
variable.
How do i do this so that graph built in the memory is accessible to
all
mongrels?
You can’t without some intermediary (the database, memcached etc…)
Fred
Hi Fred,
I thought of Memcached, but later read somwhere that is just a cached
replica of DB. Is this true? Or Can memcache contain anything ?
Say i want a variable “Count” to be in memcached that is accessible to
all mongrel servers. How do i do that?
Any thoughts on sharedmemory?
Regards,
Sandeep G
On 21 Apr 2008, at 12:52, Sandeep G. wrote:
Hi Fred,
I thought of Memcached, but later read somwhere that is just a cached
replica of DB. Is this true? Or Can memcache contain anything ?
memcache can contain arbitrary data.
Fred