Last Updated: February 25, 2016
·
2.93K
· emgiezet

Amazon Hosting of Symfony2 Projects

The m1-small EC2 instance is not enought for mid-scale projects (also behind ELB). Symfony2 spread his wings from m1-medium. But there also CPU is little too short. Perfect solution for cloud hosting on Amazon AWS is the m1-medium-highcpu.

Main reason of the requirements is the Doctrine hydration( checked with http://pecl.php.net/package/xhprof )

6 Responses
Add your response

Is there not some missing stuff?
Like:

  • APC
  • Nginx -> PHP-FPM
  • RDS -> Size?
over 1 year ago ·

@FrancisVarga I was using ngnix on php-fpm but on highcpu instance with 2 cores the gain was about 10% (with 20 workers of fpm). On two nodes plus two more for traffic peaks.
APC was there can't live without.
RDS was db.m1.small.
plus ElastiCache for cache queries and forms(form generations is really heavy).

over 1 year ago ·

What was your memory usage with that configuration? I'm worried the 1.5GB of RAM are not going to be enough for us (used memory - cached memory is now around 2.5GB, but with Apache2)

over 1 year ago ·

@sdepablos Maximum usage was about 60% on high-cpu have 1.7GB of ram.

over 1 year ago ·

Ok, thanks.

over 1 year ago ·

@sdepablos No problem. But I bet we will be tight on Ram soon :)

over 1 year ago ·