How to properly configure EC2 load balancing to ensure real-time file synchronization?

I am new to EC2. I read a lot about it, watched a lot of videos and a tutorial and pretty much knew how it worked. I still have few questions that I cannot find direct answers to.

If I have 3 instances (linux) with load balancing, all serving the same site, and the site is dynamic php / mysql, managed when users send files to forum topics every second, as the database and files are synchronized with all in three instances in real time.

  • Do I need to have a database on RDS, where each instance simply points to it.
  • How about user files. If the user uploaded the file to the site, this file should be immediately available in all instances immediately, as possible. I do not think that 3 copies to 3 copies are very practical.
  • If I change the site, say, change something in the CSS file, how can I synchronize the changes to all instances.
  • How EBS or S3 play a role in all of this.
+5
source share
4 answers

Do I need to have a database in RDS, where each instance simply points to it.

, , , MySQL . , , IP- , .

. , , . , 3 3 .

, . -db, , , , S3 , s3tools - .

, , - CSS, .

Git. ( svn) cloudfront JS CSS... . S3 ...

EBS S3 .

ebs, . S3 .

+7

RDS, 3 ec2. , .

0

S3 - . , () S3. , , 3 .

, . NFS GlusterFS.

RDS , . , .

0

, EC2 . " ".

https://d1.awsstatic.com/whitepapers/AWS_Cloud_Best_Practices.pdf

RDS, .

! aws.

. , , . , 3 3 .

, AWS . S3. S3 read-after-write, put.

, , - CSS, .

, . CloudFront. . - . ami, , !

EBS S3 . EBS S3 . , .

aws . . , . . ec2? , (, , , ). . , , git? .

, - , devs aws . !

0

All Articles