![]() For testing we’ll install simple WordPress site on the main EC2 instance. Launch: the main EC2 on-demand instance, instance with HAProxy and RDS instance. Our previous scheme will be complicated by some new items, and the work flow will get some new steps: ![]() So the solution is to use a special instance (created via AWS or not) with a tool for balancing instance connections based on proxy technology, for example HAProxy. Here we’re going to use the already existing system and extend it with some RDS instances, which will be common for all EC2 instances and scaled in the same way as EC2 instances.Īt the moment of writing this article AWS wasn’t providing load balancer for RDS instances. The system we described there is not perfect for using it as a platform for web application: several EC2 instances are launched from the same AMI but each instance has its own database isolated from others. This article is a sequel of Automating EC2 scaling using on-demand and spot instances with AWS SDK for PHP.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |