nginx php5-fpm droplet 512Mb load optimize

August 2, 2013 2.8k 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: http://pastebin.com/SGuceqUw
3 Answers
Do you have MySQL installed? Try adding some swap to your droplet:

or https://www.digitalocean.com/community/articles/how-to-add-swap-on-centos-6
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.
Have another answer? Share your knowledge.