[問題] gitlab管理請益

作者: ggreeaart (Great)   2020-02-12 14:59:54
各路大神好
是這樣的
公司有一台只做版控的server
因zabbix偵測該server process太多
一天到晚告警讓主管覺得很煩
進來看了之後發現有這個東西
而且他的進程有慢慢變多的跡象
ps axjf看起來可疑的部分如下
\_ runsv postgresql
| \_ svlogd -tt /var/log/gitlab/postgresql
| \_ /opt/gitlab/embedded/bin/postgres -D /var/opt/gitlab/postgresql/data
| \_ postgres: checkpointer process
| \_ postgres: writer process
| \_ postgres: wal writer process
| \_ postgres: autovacuum launcher process
| \_ postgres: stats collector process
| \_ postgres: gitlab-psql postgres [local] idle
| \_ postgres: gitlab gitlabhq_production [local] idle
| \_ postgres: gitlab gitlabhq_production [local] idle
| \_ postgres: gitlab gitlabhq_production [local] idle
| \_ postgres: gitlab gitlabhq_production [local] idle
| \_ postgres: gitlab gitlabhq_production [local] idle
| \_ postgres: gitlab gitlabhq_production [local] idle
| \_ postgres: gitlab gitlabhq_production [local] idle
| \_ postgres: gitlab gitlabhq_production [local] idle
| \_ postgres: gitlab gitlabhq_production [local] idle
| \_ postgres: gitlab gitlabhq_production [local] idle
| \_ postgres: gitlab gitlabhq_production [local] idle
| \_ postgres: gitlab gitlabhq_production [local] idle
| \_ postgres: gitlab gitlabhq_production [local] idle
| \_ postgres: gitlab gitlabhq_production [local] idle
| \_ postgres: gitlab gitlabhq_production [local] idle
| \_ postgres: gitlab gitlabhq_production [local] idle
| \_ postgres: gitlab gitlabhq_production [local] idle
| \_ postgres: gitlab gitlabhq_production [local] idle
| \_ postgres: gitlab gitlabhq_production [local] idle
| \_ postgres: gitlab gitlabhq_production [local] idle
| \_ postgres: gitlab gitlabhq_production [local] idle
| \_ postgres: gitlab gitlabhq_production [local] idle
| \_ postgres: gitlab gitlabhq_production [local] idle
| \_ postgres: gitlab gitlabhq_production [local] idle
| \_ postgres: gitlab gitlabhq_production [local] idle
| \_ postgres: gitlab gitlabhq_production [local] idle
查了官方手冊只提到
postgres
-D datadir
Specifies the file system location of the database configuration files. See Se
ction 19.2 for details.
請問這些閒置進程可以直接kill掉嗎
或是gitlab server本身就有常常重開的需要嗎?
作者: chang0206 (Eric Chang)   2020-02-13 09:22:00
那是DB(postgresql) 你怎麼會想要砍掉他 = =覺得zabbix很煩,就通通mute 不要發通知啊(誤
作者: Bencrie   2020-02-13 13:04:00
你的 kernel 也常常 idle 要不要關機算了 (x
作者: chang0206 (Eric Chang)   2020-02-13 13:51:00
那你要去看gitlab的source code了... 還是用我說的那招讓zabbix 變啞巴就好了....
作者: bamchisu (suchi)   2020-02-13 21:51:00
一樓別這樣
作者: kenwufederer (Nash)   2020-02-14 16:21:00
如果 Postgersql 是獨立的一台,把 TCP keepalive設短一點
作者: phosgrapho   2020-02-15 15:24:00
你有沒有想過也許是zabbix告警值設太低呢?
作者: soem (流水)   2020-02-23 19:20:00
具體來說,他閥值設了多少呢?然後你目前實際有多少process?

Links booklink

Contact Us: admin [ a t ] ucptt.com