hi all
I created my website with wordpress with great effort and launched my post, I have a dropplet with 1GB of ram (centos 6.4), but many times I could not access my site, because it has fallen, then I had to restart the machine so that it can be solved.
I get about 100-200 visitors a day there are times when visitors are concentrated in 80 parallel visits, ie 80 users accessing at the same time, my vps has fallen 2 times, my question is: How can I prevent these falls or can properly manage these recuros?
I hope you can help me and thanks
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
That isn’t too much of a load. A 1 GB droplet really should be able to handle that. Are you seeing any error messages when it crashes? Is there anything interesting in <code>/var/log/messages</code> ? We can give some general advice, but getting to the bottom of this exact issue would probably be best.
More generally, there is a chance MySQL is running out of memory. In order to give it some extra breathing room, you might want to add a swap file:
https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-centos-6
You may also consider moving to Nginx as it is more lightweight than Apache. Check out:
Setting up caching with something like Varnish is also a good step:
Less specific to your issue, one way to scale out is to add a separate database server:
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.