Hi
We moved all of our users from XFS to yetishare few days ago (3-4 days ago), I been noticing an issue which get worse and worse as my users starting to use the new system (We have a lot of users, to be more specific about 50K), I know my servers are powerful enough to handle this traffic because we were doing so easy when using XFS but right now the servers which have a bit of load take about 40 seconds to think about downloading the file and user get bad gateway after that, the other servers which are functioning normally it take about 30 seconds for the download to start which again is not normal at all.
now here are some information, I did check the server when it was returning bad gateway and there was about 200 php process running but I can't see exactly what they were (this is one of the file servers)
we have enabled the x-axcel mod in nginx and did the configuration as we were asked but no luck, here is my nginx configuration
Any idea where the issue might be? if the system could generate symlink like XFS did and provide direct link wouldn't that be easier instead of all these hassle?
Regards
Parham
We moved all of our users from XFS to yetishare few days ago (3-4 days ago), I been noticing an issue which get worse and worse as my users starting to use the new system (We have a lot of users, to be more specific about 50K), I know my servers are powerful enough to handle this traffic because we were doing so easy when using XFS but right now the servers which have a bit of load take about 40 seconds to think about downloading the file and user get bad gateway after that, the other servers which are functioning normally it take about 30 seconds for the download to start which again is not normal at all.
now here are some information, I did check the server when it was returning bad gateway and there was about 200 php process running but I can't see exactly what they were (this is one of the file servers)
we have enabled the x-axcel mod in nginx and did the configuration as we were asked but no luck, here is my nginx configuration
Code:
server {
listen 80;
server_name serverurl.domain.com;
root /home/path/public_html;
index index.php;
client_max_body_size 50G;
location ~ \.php$ {
if (!-e $request_filename) { rewrite ^/(.*) /index.php?_page_url=$1 last; }
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param MOD_X_ACCEL_REDIRECT_ENABLED on;
include fastcgi_params;
}
location / {
if (!-e $request_filename) {
rewrite ^/(.*) /index.php?_page_url=$1 last;
}
}
location /files/ {
root /home/path/public_html;
post_action @afterdownload;
internal;
}
location @afterdownload {
proxy_pass http://myserverip/plugins/rewards/site/_log_download.php?request_uri=$request_uri&remote_addr=$remote_addr&body_bytes_sent=$body_bytes_sent&status=$request_completion&content_length=$content_length&http_user_agent=$http_user_agent&http_referer=$http_referer&args=$args;
internal;
}
location /core/logs/ {
deny all;
}
}
Regards
Parham