Show More
@@ -71,6 +71,59 b' max_requests = 1000' | |||||
71 | <%text>## restarted</%text> |
|
71 | <%text>## restarted</%text> | |
72 | timeout = 3600 |
|
72 | timeout = 3600 | |
73 | %endif |
|
73 | %endif | |
|
74 | %if http_server == 'uwsgi': | |||
|
75 | <%text>## UWSGI ##</%text> | |||
|
76 | <%text>## run with uwsgi --ini-paste-logged <inifile.ini></%text> | |||
|
77 | [uwsgi] | |||
|
78 | socket = /tmp/uwsgi.sock | |||
|
79 | master = true | |||
|
80 | http = 0.0.0.0:5000 | |||
|
81 | ||||
|
82 | <%text>## set as deamon and redirect all output to file</%text> | |||
|
83 | #daemonize = ./uwsgi_rhodecode.log | |||
|
84 | ||||
|
85 | <%text>## master process PID</%text> | |||
|
86 | pidfile = ./uwsgi_rhodecode.pid | |||
|
87 | ||||
|
88 | <%text>## stats server with workers statistics, use uwsgitop</%text> | |||
|
89 | <%text>## for monitoring</%text> | |||
|
90 | stats = 127.0.0.1:1717 | |||
|
91 | ||||
|
92 | <%text>## log 5XX errors</%text> | |||
|
93 | log-5xx = true | |||
|
94 | ||||
|
95 | <%text>## Set the socket listen queue size.</%text> | |||
|
96 | listen = 256 | |||
|
97 | ||||
|
98 | <%text>## Gracefully Reload workers after the specified amount of managed requests</%text> | |||
|
99 | <%text>## (avoid memory leaks).</%text> | |||
|
100 | max-requests = 1000 | |||
|
101 | ||||
|
102 | <%text>## Log requests slower than the specified number of milliseconds.</%text> | |||
|
103 | log-slow = 10 | |||
|
104 | ||||
|
105 | <%text>## Exit if no app can be loaded.</%text> | |||
|
106 | need-app = true | |||
|
107 | ||||
|
108 | <%text>## Set lazy mode (load apps in workers instead of master).</%text> | |||
|
109 | lazy = true | |||
|
110 | ||||
|
111 | <%text>## scaling ##</%text> | |||
|
112 | <%text>## set cheaper algorithm to use, if not set default will be used</%text> | |||
|
113 | cheaper-algo = spare | |||
|
114 | ||||
|
115 | <%text>## minimum number of workers to keep at all times</%text> | |||
|
116 | cheaper = 1 | |||
|
117 | ||||
|
118 | <%text>## number of workers to spawn at startup</%text> | |||
|
119 | cheaper-initial = 1 | |||
|
120 | ||||
|
121 | <%text>## maximum number of workers that can be spawned</%text> | |||
|
122 | workers = 4 | |||
|
123 | ||||
|
124 | <%text>## how many workers should be spawned at a time</%text> | |||
|
125 | cheaper-step = 1 | |||
|
126 | %endif | |||
74 | <%text>## COMMON ##</%text> |
|
127 | <%text>## COMMON ##</%text> | |
75 | host = ${host} |
|
128 | host = ${host} | |
76 | port = ${port} |
|
129 | port = ${port} |
General Comments 0
You need to be logged in to leave comments.
Login now