I'm using Nginx+Varnish for web. My current ram is at 70% of the totally ram. Sawp is not using. plenty cache left. However, my site easily dies and get 502 error when I or someone use apache "ab" pressure testing. As soon as get these requests, the memory reaches to full and get 502 error. I used "DoS Deflate" for protection. but it only checks every 60sec. before it checks, the site could have already been down.
I notice the outgoing bandwidth of DO is not enough which is one of the reason causing this problem. I have another 10/year VPS with low setup running a site from other provide takes the same test. it can process and send 30M/s outgoing data which is fine and hardly dies. I'm not saying their are better. I like DO but recently this issue is annoying me.
any solution? thanks in advance.
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.