Saturday, March 27, 2010

Re: Storing configuration across multiple servers

Hi,

> I am working on a website which runs with a memcache on two servers.
> The traffic to the site is routed to one of the two servers
> automatically by the hardware. The memcache makes it easy to share the
> session so I don't have to consider which machine I am on.
>
> however, I need to find a way to write a configuration change to both
> servers somehow without the change disappearing when the memcache
> expires or the machine is restarted or whatever. Can it be done?

I tend to store deployment specific configs in a switch statement in
bootstrap.php which sets things based on the hostname, you could do
something similar, perhaps on the internal IP address?

hth,

J

--
jon bennett - www.jben.net - blog.jben.net

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

To unsubscribe from this group, send email to cake-php+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

No comments: