amazon web services - Integrating AWS EC2, RDS and... S3? -


i'm following tutorial , 100% works charm :

http://docs.aws.amazon.com/gettingstarted/latest/wah-linux/awsgsg-wah-linux.pdf

but, in tutorial, use amazon ec2 , rds only. wondering if servers scaled multiple ec2 instances need update php files.

do have distribute manually across instances? because, far know, instances not synced each other.

so, decided use s3 replacement of /var/www php files centralised in 1 place.

so, whenever ec2 scaled up, files remains in 1 place , don't need upload multiple ec2.

is best practice have centralised file server (s3) /var/www ? because still having permission issue when it's mounted using s3fs.

thank you.

you have put /var/www/ in s3 , when instances scaled have make 'aws s3 sync' bucket, can in userdata. have select 'master' instance make changes, sync script upload changes s3 , rsync copy changes alive fe. because if have 3 fe downloaded /var/www/ s3 , want make new change have make s3 sync in instances. can manage changes in 'master' instance inotify. inotify can detect change in /var/www/ , exec 2 commands, 1 aws s3 sync , rsync rest of instances. can list of instances elb through aws api. last thing check instance terminate protection in 'master' instance.

your architecture should here http://www.markomedia.com.au/scaling-wordpress-in-amazon-cloud/

good look!!


Comments

Popular posts from this blog

android - Gradle sync Error:Configuration with name 'default' not found -

java - Andrioid studio start fail: Fatal error initializing 'null' -

html - jQuery UI Sortable - Remove placeholder after item is dropped -