当前位置:网站首页>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 .
边栏推荐
- [LeetCode]513. 找树左下角的值
- Codeforces Round #719 (Div. 3)
- MYSQL和MongoDB的分析
- Go从入门到实战——接口(笔记)
- At 19:00 on Tuesday evening, the 8th live broadcast of battle code Pioneer - how to participate in openharmony's open source contribution in multiple directions
- Acwing周赛57-数字操作-(思维+分解质因数)
- vmware虚拟机PE启动
- 100 important knowledge points for SQL: in operator
- Go从入门到实战——channel的关闭和广播(笔记)
- [LeetCode]508. 出現次數最多的子樹元素和
猜你喜欢

What is the core competitiveness of front-line R & D personnel aged 35~40 in this position?

Codeforces Round #716 (Div. 2)

Yu Wenwen, Hu Xia and other stars take you to play with the party. Pipi app ignites your summer

Stm32f107+lan8720a use stm32subemx to configure network connection +tcp master-slave +udp app

Express e stack - small items in array

图解基于AQS队列实现的CountDownLatch和CyclicBarrier

Go from introduction to practice - Interface (notes)

畅游动态规划之区间DP

Go从入门到实战——行为的定义和实现(笔记)

Go from entry to practice - dependency management (notes)
随机推荐
The difference between scrum and Kanban
[LeetCode]508. The most frequent subtree elements and
[LeetCode]100. 相同的树
gomock mockgen : unknown embedded interface
GBase 8a的create database 会被查询耗时很长怀疑卡住的现象分析
100 important knowledge points that SQL must master: using functions to process data
神奇的POI读取excel模板文件报错
Go from introduction to actual combat -- channel closing and broadcasting (notes)
Go 访问GBase 8a 数据库的一个方法
Express e stack - small items in array
Go from introduction to actual combat - context and task cancellation (notes)
Simulink method for exporting FMU model files
Go从入门到实战——行为的定义和实现(笔记)
uniapp拦截请求
[LeetCode]513. 找树左下角的值
Knowledge sorting of exception handling
Codeforces Round #716 (Div. 2)
STM32CubeIDE1.9.0\STM32CubeMX 6.5 F429IGT6加LAN8720A,配置ETH+LWIP
Codeforces Round #719 (Div. 3)
Go从入门到实战——协程机制(笔记)