zynesis / lsyncd-aws-autoscaling
Lsyncd auto configuration that works with Amazon Web Services (AWS) Auto Scaling
Requires
- php: >=5.3.0
- aws/aws-sdk-php: 2.*
- liip/process-manager: dev-master
- mustache/mustache: 2.1.*
This package is not auto-updated.
Last update: 2024-10-26 14:32:43 UTC
README
#Lsyncd-AWS-AutoScaling
Lsyncd auto configuration that works with Amazon Web Services (AWS) Auto Scaling.
Lsyncd is Live Syncing (Mirror) Daemon.
It does the following:
- Monitors auto scaled instances that are attached to a load balancer.
- Automatically configures Lsyncd to sync across all attached instances to a load balancer.
- Monitors Lsyncd and make sure Lsyncd is always up and running, while Lsyncd does the syncing of files from master to auto-scaled slaves.
##Pre-requisites & assumptions
Lsyncd-AWS-AutoScaling requires the following to be set up and running on your master server:
- lsyncd is set up on your master.
- Passwordless SSH is possible from master to slave via the use of a private key.
This project is tested on Lsyncd v2.0.7 and on Ubuntu 12.04.1 LTS instances.
##Set Up
- Set up Composer
composer install
to install the dependencies.cp config.php.default config.php
and edit accordingly.
##Run
php monitor.php
That's all.
It is recommended to set it to run via crontab to ensure that it is run periodically and automatically.
##Disclaimer This is a rough project that solves our specific problems and may not work with other set-ups. Not a lot of effort was spent in generalizing this project. Pull requests are welcomed.
##Consulting Zynesis Pte Ltd is a Consulting Partner of Amazon Web Services. Drop us a mail if you require any AWS consultations. Follow U-Zyn Chua on Twitter or on GitHub.
##Sponsor This project is made possible by the generous sponsorship of Teamie – The Collaborative Learning Network.
##License The MIT License Copyright © 2013 U-Zyn Chua & Zynesis Pte Ltd (http://zynesis.com)