当前位置:网站首页>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 .
边栏推荐
- Go从入门到实战——仅需任意任务完成(笔记)
- List of language weaknesses --cwe, a website worth learning
- Go from introduction to practice -- coordination mechanism (note)
- Go从入门到实战——接口(笔记)
- Go从入门到实战——channel的关闭和广播(笔记)
- Go從入門到實戰——接口(筆記)
- CORBA 架构体系指南(通用对象请求代理体系架构)
- Educational Codeforces Round 108 (Rated for Div. 2)
- Go从入门到实战—— 多路选择和超时控制(笔记)
- GBase 8a的create database 会被查询耗时很长怀疑卡住的现象分析
猜你喜欢

Go from starting to Real - Interface (note)

本周二晚19:00战码先锋第8期直播丨如何多方位参与OpenHarmony开源贡献

Go从入门到实战——Panic和recover(笔记)

Go从入门到实战——Context与任务取消(笔记)

集合代码练习

Stm32f107+lan8720a use stm32subemx to configure network connection +tcp master-slave +udp app
![[LeetCode]动态规划解分割数组II[Arctic Fox]](/img/a1/4644206db3e14c81f9f64e4da046bf.png)
[LeetCode]动态规划解分割数组II[Arctic Fox]

Go从入门到实战—— 多路选择和超时控制(笔记)

熊市慢慢,Bit.Store提供稳定Staking产品助你穿越牛熊

Codeforces Round #723 (Div. 2)
随机推荐
Codeforces Global Round 14
100 important knowledge points that SQL must master: using functions to process data
[LeetCode]513. Find the value in the lower left corner of the tree
JVM memory structure when creating objects
Contest 2050 and Codeforces Round #718 (Div. 1 + Div. 2)
Icml2022 | scalable depth Gaussian Markov random field
[LeetCode]动态规划解分割数组II[Arctic Fox]
Little known MySQL import data
Go from introduction to practice - polymorphism (note)
Set code exercise
qt 大文件生成md5校验码
开源技术交流丨一站式全自动化运维管家ChengYing入门介绍
Go从入门到实战——channel的关闭和广播(笔记)
Go从入门到实战——Panic和recover(笔记)
Go从入门到实战——错误机制(笔记)
Analysis of stone merging
MYSQL和MongoDB的分析
io流代码
专题教程——选队长游戏
Go from starting to Real - Interface (note)