5.2. cephfs-top 유틸리티 사용

Ceph 파일 시스템(CephFS)은 Ceph 파일 시스템에 대한 지표를 실시간으로 표시하는 최상위유틸리티를 제공합니다. cephfs-top 유틸리티는 Ceph Manager stats 모듈을 사용하여 클라이언트 성능 지표를 가져와서 표시하는 기반 Python 스크립트입니다.

현재 cephfs-top 유틸리티는 거의 10k 클라이언트를 지원합니다.

참고

현재 Red Hat Enterprise Linux 8 커널에서 모든 성능 통계를 사용할 수 있는 것은 아닙니다. cephfs-top 는 Red Hat Enterprise Linux 8 이상에서 지원되며 Red Hat Enterprise Linux의 표준 터미널 중 하나를 사용합니다.

중요

cephfs-top 유틸리티의 최소 호환 python 버전은 3.6.0입니다.

사전 요구 사항

  • 정상 실행 중인 Red Hat Ceph Storage 클러스터.
  • Ceph 파일 시스템 배포.
  • Ceph 클라이언트 노드에 대한 루트 수준 액세스.
  • cephfs-top 패키지 설치.

절차

  1. Red Hat Ceph Storage 5 툴 리포지토리가 아직 활성화되어 있지 않은 경우 활성화합니다.

    Red Hat Enterprise Linux 8

    [root@client ~]# subscription-manager repos --enable=rhceph-5-tools-for-rhel-8-x86_64-rpms

    Red Hat Enterprise Linux 9

    [root@client ~]# subscription-manager repos --enable=rhceph-5-tools-for-rhel-9-x86_64-rpms

  2. cephfs-top 패키지를 설치합니다.

    예제

    [root@client ~]# dnf install cephfs-top

  3. Ceph Manager 통계 플러그인을 활성화합니다.

    예제

    [root@client ~]# ceph mgr module enable stats

  4. client.fstop Ceph 사용자를 만듭니다.

    예제

    [root@client ~]# ceph auth get-or-create client.fstop mon 'allow r' mds 'allow r' osd 'allow r' mgr 'allow r' > /etc/ceph/ceph.client.fstop.keyring

    참고

    선택적으로 --id 인수를 사용하여 client.fstop 이외의 다른 Ceph 사용자를 지정합니다.

  5. cephfs-top 유틸리티를 시작합니다.

    예제

    [root@client ~]# cephfs-top
    cephfs-top - Thu Jun 15 16:27:14 2023
    
    All Filesystem Info
    Total Client(s): 4 - 3 FUSE, 1 kclient, 0 libcephfs
    COMMANDS: m - select a filesystem | s - sort menu | l - limit number of clients | r -reset to default | q - quit
    
    
       client_id  mount_root  chit(%)  dlease(%)  ofiles  oicaps  oinodes  rtio(MB)  raio(MB)  rsp(ms)  wtio(ms)  waio(MB)  wsp(MB/s)  rlatavg(ms)  rlatsd(ms)  wlatavg(ms)  wlatsd(ms)  mlatavg(ms)  mlatsd(ms)  mount_point@host/addr
    
       Filesystem: cephfs1 - 2 clients(s)
    
       4482            /       100.0       0.0       0       1       0       0.0      0.0        0.0      0.0       0.0        0.0        0.0         0.0      0.0            0.0           27.36        0.0       N/A@example/192.168.1.4
       4488            /       100.0       0.0       0       1       0       0.0      0.0        0.0      0.0       0.0        0.0        0.0         0.0      0.0            0.0           0.34        0.0        /mnt/cephfs2@example/192.168.1.4
    
       Filesystem: cephfs2 - 2 clients(s)
    
       4494            /       100.0       0.0       0       1       0       0.0      0.0        0.0      0.0       0.0        0.0        0.0         0.0      0.0            0.0           0.37        0.0        /mnt/cephfs3@example/192.168.1.4
       4500            /       100.0       0.0       0       1       0       0.0      0.0        0.0      0.0       0.0        0.0        0.0         0.0      0.0            0.0           0.29        0.0        /mnt/cephfs4@example/192.168.1.4

    참고

    기본적으로 cephfs-top 는 스토리지 클러스터 이름 ceph 에 연결됩니다. 기본이 아닌 스토리지 클러스터 이름을 사용하려면 cephfs-top 유틸리티와 함께 --cluster NAME 옵션을 사용할 수 있습니다.