Puma的一些设置: puma['worker_processes'] = 3 puma['worker_timeout'] = 60 puma['min_threads'] = 4 puma['max_threads'] = 4 设置Puma内存限制 puma['per_worker_max_memory_mb'] = 850 集成Circuit发布通知 Unify的Circuit是许多组织使用的协作和通信系统。与GitLab中的其他通知集成类似,新版本中...
puma['per_worker_max_memory_mb'] =1024# 1GB Reconfigure GitLab: sudo gitlab-ctl reconfigure When workers are restarted, capacity to run GitLab is reduced for a short period of time. Setper_worker_max_memory_mbto a higher value if workers are replaced too often. ...
-- InnodbFilePerTable 对应innodb_file_per_table variable -- InnodbOnlineAlterLogMaxSize 对应innodb_online_Alter_log_max_size variable -- InnodbOpenFiles 对应innodb_open_files variable -- InnodbPageSize 对应innodb_page_size variable -- InnodbThreadConcurrency 对应innodb_thread_concurrency variable -- ...
memwd_rss_bytes 是实际消耗的内存量,memwd_max_rss_bytes 是通过 per_worker_max_memory_mb 设置的 RSS 限制。更改worker 超时默认Puma 超时为 60 秒。NOTE: puma['worker_timeout'] 没有设置最大请求持续时间。要将worker 超时更改为 600 秒:
1unlessdefined?(PhusionPassenger)2require'unicorn'3# Unicorn self-process killer4require'unicorn/worker_killer'5# Max memory size (RSS) per worker6useUnicorn::WorkerKiller::Oom,(200*(1<<20)),(250*(1<<20))7end Copy 更新成 1unlessdefined?(PhusionPassenger)2require'puma'3end ...