Sync Multiple nginx Configs

This is more of a best practice question. We need to reliably sync our
nginx config between multiple front end servers. Just curious what
other do in this regard.

Rsync does what it says on the tin but would prefer something a little
more real-time. Would also prefer to avoid creating a failure point
with NFS.

Suggestions welcome!

John

__
John Macleod
Alentus UK Limited
Seymour House
South Street
Bromley
BR1 1RH
+44 (0)208 315 5800
+44 (0)208 315 5801 Fax
+44 (0)208 819 0358 Direct
alentus.co.uk | alentus.com

"Please consider the environment before printing this e-mail

This e-mail (and/or any attachment) contains information, which is
confidential and intended solely for the attention and use of the named
addressee(s). If you are not the intended recipient you must not copy,
distribute or use it for any purpose or disclose the contents to any
person. If you have received this e-mail in error, please immediately
notify the sender. The information contained in this e-mail (and any
attachments) is supplied in good faith, but the sender shall not be
under any liability in damages or otherwise for any reliance that may be
placed upon it by the recipient, nor does it constitute a contract in
any way. Any comments or opinions expressed are those of the originator
not of Alentus Corporation unless otherwise expressly stated."

I personally use rsync for this purpose.

This is more of a best practice question. We need to reliably sync our nginx
config between multiple front end servers. Just curious what other do in this
regard.

Rsync does what it says on the tin but would prefer something a little more
real-time. Would also prefer to avoid creating a failure point with NFS.

Take a look at GlusterFS. You can use it like RAID1 across multiple
hosts.

On 07/29/2011 09:15 PM, John Macleod wrote:

This is more of a best practice question. We need to reliably sync our nginx
config between multiple front end servers. Just curious what other do in this
regard.

Rsync does what it says on the tin but would prefer something a little more
real-time. Would also prefer to avoid creating a failure point with NFS.

Suggestions welcome!

Hi John.

If you want something real-time, maybe check ‘lsyncd’. Also there is
‘unison’, after you change your config, sync it with all boxes. Highly
depends on use case and what you exact want to do.

– Piotr.

config over a git repo and a cron every N minutes :slight_smile:

Hi

On Sat, Jul 30, 2011 at 5:38 PM, Piotr K.
[email protected]wrote:

Suggestions welcome!

Hi John.

If you want something real-time, maybe check ‘lsyncd’. Also there is
‘unison’, after you change your config, sync it with all boxes. Highly
depends on use case and what you exact want to do.

lsyncd = inotify + rsync, not true real time.

Iyou could test DRBD

– Piotr.

On 8/1/11 8:21 AM, “Flavio Torres” [email protected] wrote:

Or try http://www.puppetlabs.com/ and sync all your datacenter confs :slight_smile:

Or chef :wink:
http://wiki.opscode.com/display/chef/Home


Brian A.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 07/30/2011 03:58 PM, Martin Loy wrote:

config over a git repo and a cron every N minutes :slight_smile:

Or try http://www.puppetlabs.com/ and sync all your datacenter confs :slight_smile:

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk42mjsACgkQNRQApncg294nlgCffIx7NSYgkrCao0zZtN1iOa0r
bYoAoIy7IHqMlFUkP8GAzSm+WnZHSx1Z
=IXqJ
-----END PGP SIGNATURE-----