I’ve identify these 3 components for my discourse forum hosted with AWS, behind an Elastic Load Balancer.
A) web server (nginx/unicorn/RoR/redis). EC2 instance
B) file storage. S3
C) postgres db. RDS.
Is the A component stateless? Can I have many instance of A behind the ELB? Can I scale up/down A?
My immediate task is to replace the current instance with a lower tier instance. My approach is to snapshot the current instance, spin up a new lower tier instance of the snapshot, add to ELB, and remove the old instance from ELB.
But in the future can I use autoscaling with A?