5.4.2. 읽기 밸런서를 사용하여 Red Hat Ceph 클러스터 밸런싱
클러스터에서 기본 배치 그룹(PG)의 균형을 조정합니다. 밸런서는 OSD에서 배치 그룹 할당을 최적화하여 분산 배포를 수행할 수 있습니다. 밸런서는 자동으로(온라인), 오프라인 또는 비합리된 방식으로 작동할 수 있습니다(오프라인).
5.4.2.1. 온라인 최적화 링크 복사링크가 클립보드에 복사되었습니다!
balancer 모듈을 사용하여 클러스터의 기본 PG의 균형을 조정합니다.
사전 요구 사항
시작하기 전에 실행 중인 Red Hat Ceph Storage 클러스터가 있는지 확인합니다.
프로세스
balancer 모듈을 활성화합니다.
구문
[ceph: root@host01 /]# ceph mgr module enable balancerbalancer 모듈을 켭니다.
구문
[ceph: root@host01 /]# ceph balancer on클러스터에서
min_compact_client를 업데이트합니다. 온라인 최적화를 사용하려면 클러스터에 Reef 또는 이후 클라이언트에 대한 지원이 표시되어야 합니다.구문
ceph osd set-require-min-compat-client reef참고이 명령은 사전 복구 클라이언트 또는 데몬이 모니터에 연결된 경우 실패합니다. 이 문제를 해결하려면
--yes-i-really-mean-it플래그를 사용합니다.구문
[ceph: root@host01 /]# ceph osd set-require-min-compat-client reef --yes-i-really-mean-itYou can check what client versions are in use with: the ceph features command.구문
[ceph: root@host01 /]# ceph features모드를
upmap-read또는 read forread로 변경합니다.기본 모드는
upmap이므로 다음 명령 중 하나를 실행하여 이러한 모드를 활성화합니다.구문
ceph balancer mode upmap-read ceph balancer mode read밸런서의 현재 상태를 확인합니다.
구문
ceph balancer status예
[ceph: root@host01 /]# ceph balancer status { "active": true, "last_optimize_duration": "0:00:00.013640", "last_optimize_started": "Mon Nov 22 14:47:57 2024", "mode": "upmap-read", "no_optimization_needed": true, "optimize_result": "Unable to find further optimization, or pool(s) pg_num is decreasing, or distribution is already perfect", "plans": [] }