dncocw
Last Updated: February 25, 2016
·
2.742K
· 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

1850

Is there not some missing stuff?
Like:

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

@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 ·
1929

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 ·
1933

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

over 1 year ago ·
1948

Ok, thanks.

over 1 year ago ·
1954

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

over 1 year ago ·