Hi all, I’m thinking to build a setup of multi server ISPConfig on AWS, and I’d like to make it scale. It will have separate EC2 instances for web, email and the databases directly from Amazon RDS. I will mount /var/www & /var/mail or any other directory that is saving the files of web/email servers on EFS in order to be shared on new instances if needed for automatic failover & load balancing. I will create an AMI with each web/email instance and then create a load balancer using this AMI and configure auto-scaling. So, whenever the auto-scaling fires I would have more than one instance running , accessing the same files and databases. Do you think that is doable? Can you anticipate any problem? Is there anyone that manage to run a similar setup on AWS? Thanks
the biggest problem is going to be cost. what you want to do will be expensive. very expensive. RDS you will need to pay for all db queries. wordpress makes a lot. a single page load can make hundreds of db queries, with 20+ identical db queries.. EFS is more expensive than EBS, a lot more. and slower... i believe EFS performs better with large files.. EBS better with small files, websites are lots of small files... not sure how ispconfig will like auto-scaling instances... how's it going to auto-add and mirror instances? and remove instances on downscaling? could have a lot of stuck items in the job queue. i tried having a central db server for the websites to use before on aws.. using mysql on an ec2 instance rather than rds.. even with the fast networks between the ec2 instances in the same AZ, the extra latency from not having the webserver using a local (same server) mysql instance was very noticeable in website performance. after years of using AWS and digital ocean, i'm currently moving everything to hetzner.. i'm going to have vps's with more cpu's and ram, and it's going to cost about 1/3 of what i was paying.
Thanks for the reply; I've already have at Hetzner but looking on AWS for better scaling as Hetzner cloud is very basic.