当前位置:网站首页>Gbase 8A method for reducing the impact on the system by controlling resource usage through concurrency during node replacement of V8 version
Gbase 8A method for reducing the impact on the system by controlling resource usage through concurrency during node replacement of V8 version
2022-06-27 21:52:00 【The source of life;】
During node replacement , A large amount of data needs to be read and transferred from the backup node , It will inevitably affect the existing system . stay V9 In the version, the synchronization is realized through redistribution , You can control the number of concurrent , Pause, resume, etc ; And in the V8 This function is not available in the version , If users are more sensitive to performance impact , Accept the longer time , The synchronization process can be reduced manually , To reduce the impact on the system .
About parameters and configuration
Monitoring profile
gcluster/config/gcmonit.cnf, Note that 1 individual m, No gcmmonit.cnf
Note out the following
#[gcrecover]
#fail2ok_trigger_cmd=
#prog_name=gcrecover
#ok2fail_trigger_cmd="sh /opt/gbase/gcluster/server/bin/gcluster_services gcrecover start"
Synchronize profile
gcluster/config/gc_recover.cnf
Add or modify the following parameters at the end of the file : The minimum is 2, Maximum 15, The default value is 10
recover_thread_num=2
The operation process
All management nodes will be gcrecover Service stopped , Then modify the configuration parameters of the one to be started , Then start .
Stop the management node gcrecover service
Note only keep 1 individual , At every other management node .
The of the management node gcmonit Service stopped
Avoid it automatically pulling up the database service .
gcmonit.sh stop
The of the management node gcrecover Service stopped
It is no longer involved in the data recovery business .
gcluster_services gcrecover stop
modify gcmonit.conf
take gcrecover Part of the notes are missing : The installation directory /gcluster/config/gcmonit.cnf, Note that 1 individual m, No gcmmonit.cnf
#[gcrecover]
#fail2ok_trigger_cmd=
#prog_name=gcrecover
#ok2fail_trigger_cmd="sh /opt/gbase/gcluster/server/bin/gcluster_services gcrecover start"
And then restart gcmonit service
gcmonit.sh restart
Modify reserved gcrecover To configure
Modify the number of synchronization threads
Modify file : The installation directory /gcluster/config/gc_recover.cnf , Add or modify the following parameters at the end of the file : The minimum is 2, Maximum 15, The default value is 10
recover_thread_num=2
Restart the service
gcluster_services gcrecover stop
View the synchronization service log
Viewing the log, you can see that only the specified thread is started . The installation directory /gcluster/log/gcluster/gc_recover.log
==================================================
2019-08-19 15:16:11.251 [INFO ] <RECOVER-INFO>: gcrecover started
2019-08-19 15:16:11.262 [INFO ] <RECOVER-INFO>: Create socket Thread is been bulit success now!, threadid: 0x7f3fda34c700
2019-08-19 15:16:11.298 [INFO ] <RECOVER-INFO>: Recover Thread(0x7f3fd9b4b700) is been built success
2019-08-19 15:16:11.298 [INFO ] <RECOVER-INFO>: Recover Thread(0x7f3fd934a700) is been built success
2019-08-19 15:16:11.298 [INFO ] <GCWare>: master node is: 1705224384 192.168.163.101
summary
After the above operation , Only reserved management nodes have gcrecover process , Each management node enables a specified number of synchronization processes . If you are free at night , You can increase the number of management nodes , Reduce the quantity during the day to adjust the resource utilization .
Be careful :
When the synchronization is complete , Remember to modify the above configuration 【 Restore 】, All stopped services are restarted , To return to its original state .
Failover node , If the management node is included , Its synchronization service gcrecover It will also start , Please refer to the previous operation to stop . If it is a pure data node , There is no such problem .
边栏推荐
猜你喜欢

洛谷P5706 再分肥宅水

∫(0→1) ln(1+x) / (x ² + 1) dx
How to design an elegant caching function

C语言程序设计详细版 (学习笔记1) 看完不懂,我也没办法。

Go from introduction to practice - Interface (notes)

Interval DP of Changyou dynamic programming

Codeforces Global Round 14

Slow bear market, bit Store provides stable stacking products to help you cross the bull and bear

I think I should start writing my own blog.

What is the core competitiveness of front-line R & D personnel aged 35~40 in this position?
随机推荐
Go from starting to Real - Interface (note)
GBase 8a OLAP分析函数 cume_dist的使用样例
GBase 8a数据库用户密码安全相关参数汇总
I think I should start writing my own blog.
win11桌面出现“了解此图片”如何删除
[LeetCode]161. Edit distance of 1
洛谷P5706 再分肥宅水
PCIE知识点-008:PCIE switch的结构
畅游动态规划之区间DP
Go从入门到实战——错误机制(笔记)
[LeetCode]515. Find the maximum value in each tree row
Knowledge sorting of exception handling
熊市慢慢,Bit.Store提供稳定Staking产品助你穿越牛熊
[LeetCode]动态规划解分割数组II[Arctic Fox]
Stm32f107+lan8720a use stm32subemx to configure network connection +tcp master-slave +udp app
AI painting minimalist tutorial
语言弱点列表--CWE,一个值得学习的网站
What is the core competitiveness of front-line R & D personnel aged 35~40 in this position?
[LeetCode]100. Same tree
Go从入门到实战——协程机制(笔记)