slaprunner: add configurable cpu-ratio parameter
Showing
... | ... | @@ -26,7 +26,7 @@ autorestart = {{ supervisord['autorestart'] }} |
stdout_logfile = {{ supervisord['no_logfile'] }} | ||
stderr_logfile = {{ supervisord['no_logfile'] }} | ||
directory = {{ supervisord['directory'] }} | ||
environment = PATH="{{- supervisord['path'] -}}" | ||
environment = PATH="{{- supervisord['path'] -}}",MAKEFLAGS="-j{{- '%d' % builtin.max(1, (multiprocessing.cpu_count() / builtin.int(slapparameter_dict.get('cpu-usage-ration', 4)))) -}}" | ||
|
||
[program:{{- supervisord['slapgrid-cp'] -}}] | ||
command = {{ supervisord['slapgrid-cp-command'] }} | ||
... | ... |
-
Developer
Actually has been fixed a few month ago: https://lab.nexedi.cn/nexedi/slapos/commit/e9fd1dbed4bf5966566b6cdebf9a617ccc981261
-
Owner
Thanks for pointing it out. I was somehow fulled by using old webrunner and blaming not very recent slapos branch. Sorry.