[Maria] Galera Cluster 성능 튜닝
해당 글의 튜닝은 최소 하루 이상 운영해 본 뒤에 하는것을 추천한다.
■ 병렬 슬레이브 스레드
- 병렬 슬레이브 스레드로 더 성능을 향상할 수 있다. ( 보장을 할 수는 없지만, 나빠지지는 않는다.)
- 계산방법은 물리적인 코어 * 4개의 Thread를 두는 것이다.
ex ) 서버의 코어가 8코어라면 wsrep_slave_threads 는 32 가된다.
- * 이값은 wsrep_cert_deps_distance 값 이상으로는 설정하지 않는다.
https://galeracluster.com/library/kb/parallel-slave-threads.html
Setting Parallel Slave Threads — Galera Cluster Documentation
Setting Parallel Slave Threads Length: 366 words; Published: June 24, 2015; Updated: October 22, 2019; Category: Performance; Type: Best Practices There is no rule about how many slave threads you need for replication. Parallel threads do not guarantee bet
galeracluster.com
https://mariadb.com/kb/en/about-galera-replication/#galera-slave-threads
About Galera Replication
About Galera replication.
mariadb.com
■ Gcache 크기
- Gcache 크기는 좋은 성능을 얻기 위해 중요한 것 중 하나다 .
- gcache.size -> default = 128 M
- Gcache의 최소 크기를 알려면 시간 간격 동안 wserp_received_bytes로 쓰기 속도를 계산해야한다.
( received_bytes_values2 - received_bytes_values1) / ( time2 - time1 )
https://galeracluster.com/library/kb/customizing-gcache-size.html