Forum archive
Best setup for this project?
Hi everyone, I'm very excited to try out turnkey hub on ec2 and I was wondering about the best way to setup the following project. It's an existing project hosted on shared hosting account and I'd like to migrate it to use turnkey hub on ec2.
It has:
-a MySQL server to store user data
-stores uploaded images from users. Images need to be retrieved later on using a url to the specific image.
-a flash and php frontend using symfony 1.4
-git based source control
- developer specific subdomains (ex: developerName.theproject.com) that has a copy of the site for dev work.
-requires SSL endpoints for parts of the site
My initial thought was to put the DB on it's own dedicated instance. The flash and php frontend on web server instances and store the uploaded images in a seperate EBS volume that's universally accessible. I would use cloudwatch to spawn new instances of the web server images when necessary and a load balancer to distribute the traffic.
Any suggestions?
Thanks for your time
Multi-tier setups (e.g., load-balancers, web-servers, backend database servers) are usually required for very large deployments, but from my experience you want to avoid reaching a setup like that if you don't need it.
Considering you're moving from a share-hosting environment, I'd recommend starting out with the simplest setup, and optimizing as needed. For example, you could start with a small EBS-backed TKL symphony server which handles everything.
When you reach its limits (and depending what they are), you could use TKLBAM to migrate to more powerful server (e.g. medium). Then, when you start reaching its limits, you can split out components to other servers.
But, before you go for multi-tier, I'd look into optimizing the application itself as you might have a bottle neck that easily optimized.
Hope the above helps...