Show More
@@ -58,7 +58,7 b' def vcsserver_factory(tmpdir_factory):' | |||
|
58 | 58 | """ |
|
59 | 59 | |
|
60 | 60 | def factory(request, overrides=(), vcsserver_port=None, |
|
61 |
log_file=None, workers=' |
|
|
61 | log_file=None, workers='3'): | |
|
62 | 62 | |
|
63 | 63 | if vcsserver_port is None: |
|
64 | 64 | vcsserver_port = get_available_port() |
@@ -143,13 +143,14 b' class RcVCSServer(ServerBase):' | |||
|
143 | 143 | log_file_name = 'rc-vcsserver.log' |
|
144 | 144 | status_url_tmpl = 'http://{host}:{port}/status' |
|
145 | 145 | |
|
146 |
def __init__(self, config_file, log_file=None, workers=' |
|
|
146 | def __init__(self, config_file, log_file=None, workers='3'): | |
|
147 | 147 | super(RcVCSServer, self).__init__(config_file, log_file) |
|
148 | 148 | self._args = [ |
|
149 | 149 | 'gunicorn', |
|
150 | 150 | '--bind', self.bind_addr, |
|
151 |
'--worker-class', ' |
|
|
152 |
'-- |
|
|
151 | '--worker-class', 'sync', | |
|
152 | '--threads', '1', | |
|
153 | '--backlog', '8', | |
|
153 | 154 | '--timeout', '300', |
|
154 | 155 | '--workers', workers, |
|
155 | 156 | '--paste', self.config_file] |
@@ -180,13 +181,14 b' class RcWebServer(ServerBase):' | |||
|
180 | 181 | log_file_name = 'rc-web.log' |
|
181 | 182 | status_url_tmpl = 'http://{host}:{port}/_admin/ops/ping' |
|
182 | 183 | |
|
183 |
def __init__(self, config_file, log_file=None, workers=' |
|
|
184 | def __init__(self, config_file, log_file=None, workers='2'): | |
|
184 | 185 | super(RcWebServer, self).__init__(config_file, log_file) |
|
185 | 186 | self._args = [ |
|
186 | 187 | 'gunicorn', |
|
187 | 188 | '--bind', self.bind_addr, |
|
188 | 189 | '--worker-class', 'gthread', |
|
189 |
'-- |
|
|
190 | '--threads', '4', | |
|
191 | '--backlog', '8', | |
|
190 | 192 | '--timeout', '300', |
|
191 | 193 | '--workers', workers, |
|
192 | 194 | '--paste', self.config_file] |
General Comments 0
You need to be logged in to leave comments.
Login now