go4321 发表于 2019-2-1 11:18:38

GlusterFS客户端进程分析

  客户端重新挂载gluster卷时,进程变化如下:
  

  该进程PID不会变化:
  16683 root      20   0398m16m 2796 S0.00.2   2:31.58 /usr/sbin/glusterd --pid-file=/run/glusterd.pid
  

  以下进程PID会变,重新生成:
  root   100687.90.4 302108 39204 ?      Ssl17:19   0:40 /usr/sbin/glusterfs --volfile-id=/tank --volfile-server=lab21 /mnt/dzq
  root   100930.00.6 232236 53316 ?      Ssl17:19   0:00 /usr/sbin/glusterfs -s localhost --volfile-id gluster/nfs -p /var/lib/glusterd/nfs/run/nfs.pid -l /var/log/glusterfs/nfs.log -S /var/run/52fcb2d9e219d2dee4f280489ef3c9d4.socket
  root   100970.00.2 321604 20108 ?      Ssl17:19   0:00 /usr/sbin/glusterfs -s localhost --volfile-id gluster/glustershd -p /var/lib/glusterd/glustershd/run/glustershd.pid -l /var/log/glusterfs/glustershd.log -S /var/run/dda19e05b0f00927c31e8b28c8a07f08.socket --xlator-option *replicate*.node-uuid=2e830972-f2d2-4da9-8a03-e11e49cfc39e
  

  当设置cache-size=2GB时,客户端的如下进程会开辟对应大小的物理内存空间:
  11193 root      20   0 2346m 2.0g 2744 S0.0 26.6   1:39.68 /usr/sbin/glusterfs --volfile-id=/tank --volfile-server=lab21 /mnt/dzq
  

  实际情况下,客户端只有一个进程,上面的其他进行是因为glusterd服务未关闭产生的:
  /usr/sbin/glusterfs --volfile-id=/tank --volfile-server=lab21 /mnt/dzq
  




页: [1]
查看完整版本: GlusterFS客户端进程分析