XFileSharing Pro - 504 Gateway time out on File servers

Message
Author
commanderp
Posts: 8
Joined: Jun 14, 2014 3:26 pm

504 Gateway time out on File servers

#1 Postby commanderp » Oct 15, 2014 10:45 am

Hello Guys

We have been facing this problem for the past week now:

Error happened while testing server File Server 8:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>504 Gateway Time-out</title>
</head><body>
<h1>Gateway Time-out</h1>
<p>The gateway did not receive a timely response
from the upstream server or application.</p>
<hr>
<address>Apache/2.2.15 (CentOS) Server at xxx.xxx.xxx Port 80</address>
</body></html>

We have nginx installed on all our files servers and apache has been optimised as well.

Yet the error still occurs. Users complain about poor upload speeds and always failing uploads.

Our servers have 60 x 4TB (RAID 10) and 96GB of ram with 2 x 10Gbit ports. This should not be happening.

Anyone have any advice? Our apache config:

StartServers 300
MinSpareServers 300
MaxSpareServers 20
ServerLimit 7500
MaxClients 7500
MaxRequestsPerChild 30000

our Nginx config:

worker_processes 8;
worker_rlimit_nofile 102400;
worker_rlimit_sigpending 32768;

events {
worker_connections 3500;
}

Any help would really be appreciated.

Thanks in advance.

commanderp
Posts: 8
Joined: Jun 14, 2014 3:26 pm

#2 Postby commanderp » Oct 16, 2014 9:28 am

Hey Guys

We got the error fixed. We simply had to increase our Timeout in apache.

But now there is another error, 502 errors are appearing on the front end server. We have FastCGI installed.

Is there some way to solve this? Or does someone have a proper configuration for a site with 300k uniques a day and 2000 - 2900 users online at once?

Thanks in advance!