gitlab管理請益 - Linux

Table of Contents

各路大神好

是這樣的
公司有一台只做版控的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本身就有常常重開的需要嗎?

--

All Comments

Ingrid avatarIngrid2020-02-14
那是DB(postgresql) 你怎麼會想要砍掉他 = =
Kelly avatarKelly2020-02-14
覺得zabbix很煩,就通通mute 不要發通知啊(誤
John avatarJohn2020-02-14
你的 kernel 也常常 idle 要不要關機算了 (x
Liam avatarLiam2020-02-17
那你要去看gitlab的source code了... 還是用我說的那招
讓zabbix 變啞巴就好了....
Rae avatarRae2020-02-17
一樓別這樣
Hardy avatarHardy2020-02-18
如果 Postgersql 是獨立的一台,把 TCP keepalive
Quintina avatarQuintina2020-02-19
設短一點
Vanessa avatarVanessa2020-02-24
你有沒有想過也許是zabbix告警值設太低呢?
Callum avatarCallum2020-02-28
具體來說,他閥值設了多少呢?然後你目前實際有多少process?