作者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://webptt.com/cn.aspx?n=bbs/Linux/M.1581490796.A.9EF.html
1F:→ chang0206: 那是DB(postgresql) 你怎麽会想要砍掉他 = =02/13 09:22
2F:→ chang0206: 觉得zabbix很烦,就通通mute 不要发通知啊(误02/13 09:23
我後来也有发现这是DB,
但有大神知道为什麽会有这麽多闲置程序吗
还有有办法处理它吗( ;∀;)
※ 编辑: ggreeaart (101.9.211.244 台湾), 02/13/2020 12:36:15
3F:推 Bencrie: 你的 kernel 也常常 idle 要不要关机算了 (x02/13 13:04
4F:推 chang0206: 那你要去看gitlab的source code了... 还是用我说的那招02/13 13:51
5F:→ chang0206: 让zabbix 变哑巴就好了....02/13 13:51
6F:→ bamchisu: 一楼别这样02/13 21:51
7F:推 kenwufederer: 如果 Postgersql 是独立的一台,把 TCP keepalive02/14 16:21
8F:→ kenwufederer: 设短一点 02/14 16:21
很遗憾的是全部都在同一台server,另外有找到一个关於DB连线数限制的设定不知道有没
有用
https://gitlab.com/gitlab-org/gitlab-foss/issues/26671
9F:推 phosgrapho: 你有没有想过也许是zabbix告警值设太低呢?02/15 15:24
10F:推 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