nginx php5-fpm droplet 512Mb load optimize

Posted August 2, 2013 4.9k views
I have a droplet on 512Mb. Is there a website where the main burden is through api. Site is written in php + redis. Recently, I started getting error 502, 504. Changed the configuration. I would like to find out how my configuration is optimal. In the second comes up to 15 requests to the api. Api used ~ 150 users. all config:

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
3 answers
Do you have MySQL installed? Try adding some swap to your droplet:
by Etel Sverdlov
Linux swaps allow a system to harness more memory than was originally physically available. Here's how to set up a linux swap file on Ubuntu 12.04
no, mysql no used. only redis
Your droplet might be running out of RAM. Try adding some swap so that processes don't crash.