作者ggreeaart (Great)
看板Linux
標題[問題] gitlab管理請益
時間Wed Feb 12 14:59:54 2020
各路大神好
是這樣的
公司有一台只做版控的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本身就有常常重開的需要嗎?
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 101.15.216.126 (臺灣)
※ 文章網址: https://www.ptt.cc/bbs/Linux/M.1581490796.A.9EF.html
→ chang0206: 那是DB(postgresql) 你怎麼會想要砍掉他 = =02/13 09:22
→ chang0206: 覺得zabbix很煩,就通通mute 不要發通知啊(誤02/13 09:23
我後來也有發現這是DB,
但有大神知道為什麼會有這麼多閒置程序嗎
還有有辦法處理它嗎( ;∀;)
※ 編輯: ggreeaart (101.9.211.244 臺灣), 02/13/2020 12:36:15
推 Bencrie: 你的 kernel 也常常 idle 要不要關機算了 (x02/13 13:04
推 chang0206: 那你要去看gitlab的source code了... 還是用我說的那招02/13 13:51
→ chang0206: 讓zabbix 變啞巴就好了....02/13 13:51
→ bamchisu: 一樓別這樣02/13 21:51
推 kenwufederer: 如果 Postgersql 是獨立的一台,把 TCP keepalive02/14 16:21
→ kenwufederer: 設短一點 02/14 16:21
很遺憾的是全部都在同一台server,另外有找到一個關於DB連線數限制的設定不知道有沒
有用
https://gitlab.com/gitlab-org/gitlab-foss/issues/26671
推 phosgrapho: 你有沒有想過也許是zabbix告警值設太低呢?02/15 15:24
推 soem: 具體來說,他閥值設了多少呢?然後你目前實際有多少process?02/23 19:20
重開機之後230上下,觀察到第18天大概變成260上下
目前zabbix設定350會叫(原本是用預設值300)
※ 編輯: ggreeaart (101.13.226.187 臺灣), 02/24/2020 09:26:36
※ 編輯: ggreeaart (101.13.226.187 臺灣), 02/24/2020 09:42:57