DBMS/Xpand(ClustrixDB)
xpand 상태 확인
itexit
2022. 7. 11. 16:09
반응형
# 기본 용량 확인
[xpand@xnode-1 ~]$ clx stat
Cluster Name:
Cluster Version: 5.3.20
Cluster Status: OK
Cluster Size: 3 nodes - 8 CPUs per Node
Current Node: xnode1-1 - nid 1
nid | Hostname | Status | IP Address | TPS | Used | Total
----+-----------+--------+---------------+-----+---------------+-------
1 | xnode-1 | OK | 192.168.10.11 | 0 | 1.1T (32.2%) | 3.5T
2 | xnode-2 | OK | 192.168.10.12 | 22 | 1.2T (33.6%) | 3.5T
3 | xnode-3 | OK | 192.168.10.13 | 0 | 1.2T (33.6%) | 3.5T
----+-----------+--------+---------------+-----+---------------+-------
22 | 3.5T (33.1%) | 10.5T
[xpand@xnode-1 ~]$
# 상세 상태 정보
[xpand@xnode-1 ~]$ clx space
nid | Hostname | Status | Undo | Perm | Temp | Used | DB Total | FS Free
----+----------+--------+---------------+---------------+------------+---------------+----------+--------
1 | xnode-1 | OK | 1.0M (0.00%) | 1.1T (32.2%) | 0 (0.00%) | 1.1T (32.2%) | 3.5T | 882.0G
2 | xnode-2 | OK | 1.0M (0.00%) | 1.2T (33.6%) | 0 (0.00%) | 1.2T (33.6%) | 3.5T | 864.3G
3 | xnode-3 | OK | 1.0M (0.00%) | 1.2T (33.6%) | 0 (0.00%) | 1.2T (33.6%) | 3.5T | 865.6G
----+----------+--------+---------------+---------------+------------+---------------+----------+--------
3.0M (0.00%) | 3.5T (33.1%) | 0 (0.00%) | 3.5T (33.1%) | 10.5T | 2.6T
[xpand@xnode-1 ~]$
Shows the storage by type:
● Perm = Table & Index storage
● Undo = MVCC rollback data
● Temp = Sort, aggregation, etc
● WAL = Write Ahead Log (aka redo data)
# disk i/o
[xpand@xnode-1 ~]$ clx disk
nid | Hostname | Status | Read IOPS | Write IOPS | Sync IOPS | Total IOPS
----+----------+--------+-----------+------------+-----------+-----------
1 | xnode-1 | OK | 15.8 | 0.0 | 0.2 | 16.0
2 | xnode-2 | OK | 16.0 | 0.0 | 0.0 | 16.0
3 | xnode-3 | OK | 15.8 | 0.0 | 0.0 | 15.8
----+----------+--------+-----------+------------+-----------+-----------
47.6 | 0.0 | 0.2 | 47.8
[xpand@xnode-1 ~]$
# clustrix_statd databases
: 각종 동적인 정보를 보관.
MySQL [(none)]> use clustrix_statd
Database changed
MySQL [clustrix_statd]> show tables;
+--------------------------+
| Tables_in_clustrix_statd |
+--------------------------+
| hotness_current |
| hotness_history |
| qpc_current |
| qpc_history |
| statd_config |
| statd_current |
| statd_history |
| statd_metadata |
+--------------------------+
8 rows in set (0.01 sec)
MySQL [clustrix_statd]>
The statd Tables:
o hotness_current : 5분마다 수집되는 테이블 및 인덱스 읽기 및 쓰기 통계
o hotness_history : 5분 통계로 집계된 테이블 및 인덱스 읽기 및 쓰기 통계와 1일보다 오래된 통계가 시간별 통계로 롤링되어 7일 동안 유지됨
o qpc_current : 매분 수집된 쿼리 통계
o qpc_history : 5분 통계로 집계된 쿼리 통계, 1일보다 오래된 통계는 시간별 통계로 집계, 7일 동안 유지
o statd_current : 30초마다 수집되는 클러스터 통계
o statd_history : 5분 통계로 집계된 클러스터 통계, 하루보다 오래된 통계는 시간당 통계로 집계되어 7일 동안 유지
참조 : https://docs.clustrix.com/display/CLXDOC/Monitoring+Your+Cluster+Using+statd