Hi, David,

the nginx conf file was attached. 
we start the reviewboard using the command below:
rb-site manage  /opt/reviewboard runfcgi port=3033 host=127.0.0.1 
protocol=fcgi daemonize=true pidfile=/opt/reviewboard/rb.pid maxspare=20 
anything else? 

thx a lot for ur kindly help.

在 2014年9月6日星期六UTC+8上午7时51分05秒,David Trowbridge写道:
>
> Can you give us some information about your web server configuration?
>
> -David
>
>
> On Thu, Sep 4, 2014 at 2:28 AM, Magic Chen <magic...@gmail.com 
> <javascript:>> wrote:
>
>> Dear all,
>>
>> I've install the latest 2.0.6 version in a CentOS (4G, 4Core), and the 
>> functions is working correctly, 
>> but we noticed that the response time of RB is too slow to be accepted, 
>> the response time for default dashboard page will cost almost 3s...
>> We use the Postgre and nginx. python version is Python 2.6.6 (r266:84292, 
>> Jan 22 2014, 09:42:36)  [GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux2
>> any advice on how to tuning the performance? thx a lot.
>>
>> 172.31.125.51 - - [04/Sep/2014:17:16:18 +0800] "GET 
>> /reviewboard/dashboard/ HTTP/1.1" 200 3161 "
>> http://172.31.159.45/reviewboard/dashboard/"; "Mozilla/5.0 (Windows NT 
>> 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 
>> Safari/537.36"
>> 172.31.125.51 - - [04/Sep/2014:17:16:22 +0800] "GET /reviewboard/jsi18n/ 
>> HTTP/1.1" 200 773 "http://172.31.159.45/reviewboard/dashboard/"; 
>> "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) 
>> Chrome/36.0.1985.143 Safari/537.36"
>> 172.31.125.51 - - [04/Sep/2014:17:21:25 +0800] "GET 
>> /reviewboard/dashboard/ HTTP/1.1" 200 3161 "
>> http://172.31.159.45/reviewboard/dashboard/"; "Mozilla/5.0 (Windows NT 
>> 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 
>> Safari/537.36"
>>
>>
>>  -- 
>> Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
>> ---
>> Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
>> ---
>> Happy user? Let us know at http://www.reviewboard.org/users/
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "reviewboard" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to reviewboard...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
user  redmine;
worker_processes  1;

#error_log  logs/error.log;
#error_log  logs/error.log  notice;
#error_log  logs/error.log  info;

#pid        logs/nginx.pid;


events {
    worker_connections  1024;
}


http {
    passenger_root /usr/local/rvm/gems/ruby-2.1.2@rails32/gems/passenger-4.0.46;
    passenger_ruby /usr/local/rvm/gems/ruby-2.1.2@rails32/wrappers/ruby;
    client_max_body_size 5000M;
    include       mime.types;
    default_type  application/octet-stream;

    log_format  main  '$remote_addr - $remote_user $time_local] "$request" 
$http_host '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for" $request_time 
'
                      '$upstream_addr $upstream_status $upstream_response_time';

    #access_log  logs/access.log  main;

    sendfile        on;
    #tcp_nopush     on;

    #keepalive_timeout  0;
    keepalive_timeout  65;

    #gzip  on;

    server {
        listen       80;
        server_name  ecommerce.ios;
        root         /opt/nginx/html;
        index        index.html;


        location /index.html {
                root /opt/nginx/html;
        }

        location ~  ^/redmine(/.*|$) {
                alias /opt/redmine-2.5/public$1;
                passenger_base_uri /redmine;
                passenger_app_root /opt/redmine-2.5;
                passenger_document_root /opt/redmine-2.5/public;
                passenger_enabled on;

        }

        location /jenkins {
                proxy_set_header Host $host;
                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_pass http://localhost:28080/jenkins;
        }

        location /artifactory {
                proxy_set_header Host $host;
                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_pass http://localhost:28080/artifactory;
        }

        location /art {
                proxy_set_header Host $host;
                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_pass http://localhost:28080/art;
        }

        location /reviewboard/static {
                alias /opt/reviewboard/htdocs/static;
        }
        location /reviewboard/media {
                alias /opt/reviewboard/htdocs/media;
        }
        location /reviewboard/errordocs {
                alias /opt/reviewboard/htdocs/errordocs;
        }
        location /reviewboard/favicon.ico {
                alias /opt/reviewboard/htdocs/static/rb/images/favicon.png;
        }

        location /reviewboard {
                alias /opt/reviewboard/htdocs;
                fastcgi_pass 127.0.0.1:3033;
                fastcgi_param PATH_INFO $fastcgi_script_name;
                fastcgi_param REQUEST_METHOD $request_method;
                fastcgi_param QUERY_STRING $query_string;
                fastcgi_param CONTENT_TYPE $content_type;
                fastcgi_param CONTENT_LENGTH $content_length;
                fastcgi_pass_header Authorization;
                #fastcgi_intercept_errors off;
                fastcgi_param SERVER_ADDR $server_addr;
                fastcgi_param SERVER_PORT $server_port;
                fastcgi_param SERVER_NAME $server_name;
                fastcgi_param SERVER_PROTOCOL $server_protocol;
        }

#        location / {
#                proxy_set_header Host $host;
#                proxy_set_header X-Real-IP $remote_addr;
#                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
#                proxy_pass http://redmine_server;
#        }
    }
}

Reply via email to