[問題] gitlab管理請益

看板Linux作者 (Great)時間5年前 (2020/02/12 14:59), 5年前編輯推噓5(505)
留言10則, 6人參與, 5年前最新討論串1/1
各路大神好 是這樣的 公司有一台只做版控的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

02/13 09:22, 5年前 , 1F
那是DB(postgresql) 你怎麼會想要砍掉他 = =
02/13 09:22, 1F

02/13 09:23, 5年前 , 2F
覺得zabbix很煩,就通通mute 不要發通知啊(誤
02/13 09:23, 2F
我後來也有發現這是DB, 但有大神知道為什麼會有這麼多閒置程序嗎 還有有辦法處理它嗎( ;∀;) ※ 編輯: ggreeaart (101.9.211.244 臺灣), 02/13/2020 12:36:15

02/13 13:04, 5年前 , 3F
你的 kernel 也常常 idle 要不要關機算了 (x
02/13 13:04, 3F

02/13 13:51, 5年前 , 4F
那你要去看gitlab的source code了... 還是用我說的那招
02/13 13:51, 4F

02/13 13:51, 5年前 , 5F
讓zabbix 變啞巴就好了....
02/13 13:51, 5F

02/13 21:51, 5年前 , 6F
一樓別這樣
02/13 21:51, 6F

02/14 16:21, 5年前 , 7F
如果 Postgersql 是獨立的一台,把 TCP keepalive
02/14 16:21, 7F

02/14 16:21, 5年前 , 8F
設短一點
02/14 16:21, 8F
很遺憾的是全部都在同一台server,另外有找到一個關於DB連線數限制的設定不知道有沒 有用 https://gitlab.com/gitlab-org/gitlab-foss/issues/26671

02/15 15:24, 5年前 , 9F
你有沒有想過也許是zabbix告警值設太低呢?
02/15 15:24, 9F

02/23 19:20, 5年前 , 10F
具體來說,他閥值設了多少呢?然後你目前實際有多少process?
02/23 19:20, 10F
重開機之後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
文章代碼(AID): #1UGw9idl (Linux)
文章代碼(AID): #1UGw9idl (Linux)