Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

This question already has an answer here:

We have a Wordpress based website that gets about 1.5 million pageviews per day. Maximum concurrent sessions reach up to 5000 users per minute at times.

We have one web and one database server. Specs for both machines are as follows:

CPU: 2 x Intel(R) Xeon(R) CPU X5650 @ 2.66GHz
12M Cache / 6 Cores / 12 Threads (x2)
Memory: 24GB
Drive(s)(size/GB) - 4x240gb SSDs RAID 10

We run on Nginx, use FastCGI, and also use APC for caching, along with simple page caching with WP Super Cache.

Current Nginx configuration is as follows:

worker_processes  24;
worker_rlimit_nofile 200000;
worker_connections  4000;

FastCGI settings are as follows:

FcgidMaxProcesses 200
FcgidProcessLifeTime 3600
MaxProcessCount 100
FcgidIOTimeout 400
FcgidIdleTimeout 600
FcgidIdleScanInterval 90
FcgidBusyTimeout 400
FcgidBusyScanInterval 80
ErrorScanInterval 3
ZombieScanInterval 3

Server fails and we get Nginx errors (502-504) during high traffic. I am wondering if this is related to a bad configuration.

Your assistance is much appreciated.

share|improve this question

marked as duplicate by kce, Rex, cole, Ward, MadHatter Nov 18 '13 at 23:57

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
Have you tried something like CloudFlare? –  ceejayoz Nov 18 '13 at 16:49
    
@ceejayoz We have used it in the past with little success, and even more errors. Which brings me to some lacking/bad config on our end. –  mightypixel Nov 18 '13 at 17:31
    
@kce I don't believe it would be a duplicate since I am trying to solve consistent server generated errors which I suspect are related to misconfiguraton. Technical specs of the system in question should be more than enough for the amount of traffic we register. –  mightypixel Nov 18 '13 at 17:32
    
Where are your bottlenecks? What analysis have you done already? –  Michael Hampton Nov 18 '13 at 18:12

1 Answer 1

You have

FcgidMaxProcesses 200

This directive sets the maximum number of FastCGI application processes which can be active at one time. I think it's low for your traffic. The default value for this is 1000.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.