(WIP) notes on scaling Vanilla on AWS EC2
I'm documenting something I've been doing recently, which is moving my forums from a VPS to AWS EC2 t2.micro instances that scale with demand using an Auto-Scaling Group (ASG). The database is hosted on RDS.
My current configuration uses S3FS to mount S3 buckets holding the contents of uploads/ and conf/ into the forum's filesystem.
Currently they sit behind an ELB, however I think I'll move to an ALB and map the uploads directory directly to the relevant S3 bucket
The server itself is rolled using Ubuntu 16.04, S3FS paths and forum codebase fetched out of my Git repo, and then snapshotted into an AMI. This is picked up in a Launch Configuration that is tied to the ASG.
The goal has been to do this without doing any AWS-specific code changes to the forum software, and so far it's been successful.
Will update again when I have the final system configuration sorted out.