mirror of https://github.com/zulip/zulip.git
puppet: Update rules for number of uwsgi processes.
The defaults for how many uwsgi processes to run no longer depend on the queue processor mode, but instead the total memory on the system.
This commit is contained in:
parent
ea2bd14480
commit
43c0c77610
|
@ -148,10 +148,17 @@ class zulip::app_frontend_base {
|
||||||
'user_activity_interval',
|
'user_activity_interval',
|
||||||
'user_presence',
|
'user_presence',
|
||||||
]
|
]
|
||||||
if $queues_multiprocess {
|
|
||||||
|
if $zulip::common::total_memory_mb > 24000 {
|
||||||
|
$uwsgi_default_processes = 16
|
||||||
|
} elsif $zulip::common::total_memory_mb > 12000 {
|
||||||
|
$uwsgi_default_processes = 8
|
||||||
|
} elsif $zulip::common::total_memory_mb > 6000 {
|
||||||
$uwsgi_default_processes = 6
|
$uwsgi_default_processes = 6
|
||||||
} else {
|
} elsif $zulip::common::total_memory_mb > 3000 {
|
||||||
$uwsgi_default_processes = 4
|
$uwsgi_default_processes = 4
|
||||||
|
} else {
|
||||||
|
$uwsgi_default_processes = 3
|
||||||
}
|
}
|
||||||
$tornado_ports = $zulip::tornado_sharding::tornado_ports
|
$tornado_ports = $zulip::tornado_sharding::tornado_ports
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue