服务器原来是4核16G,后来升级了CPU到8核。做如下操作:
1.通过obd cluster edit-config demo修改配置文件的cpu_count到8
2.根据提示重启集群obd cluster restart demo --wp,输出如下:
(注意其中的【Reload observer x】)
Get local repositories and plugins ok
Load cluster param plugin ok
Open ssh connection ok
Cluster status check ok
Check before restart observer ok
Connect to observer ok
Server check ok
Observer restart ok
cluster scenario: htap
Wait for observer init ok
±--------------------------------------------+
| oceanbase-ce |
±----------±--------±-----±------±-------+
| ip | version | port | zone | status |
±----------±--------±-----±------±-------+
| 127.0.0.1 | 4.3.3.0 | 2881 | zone1 | ACTIVE |
±----------±--------±-----±------±-------+
obclient -h127.0.0.1 -P2881 -uroot -p’PsmbeNyHvPHlSw0oqAZF’ -Doceanbase -A
cluster unique id: 1582aeea-2f4f-5a6f-aed0-40bbfcc79391-18f3f0eb2be-00030304
Reload observer x
Check before start obagent ok
Stop obagent ok
Check before start obagent ok
Start obagent ok
obagent program health check ok
Connect to Obagent ok
±------------------------------------------------------------------+
| obagent |
±---------------±-------------------±-------------------±-------+
| ip | mgragent_http_port | monagent_http_port | status |
±---------------±-------------------±-------------------±-------+
| 172.17.116.249 | 8089 | 8088 | active |
±---------------±-------------------±-------------------±-------+
Check before start obproxy ok
Connect to obproxy ok
Stop obproxy ok
Start obproxy ok
obproxy program health check ok
Connect to obproxy ok
±--------------------------------------------+
| obproxy-ce |
±----------±-----±----------------±-------+
| ip | port | prometheus_port | status |
±----------±-----±----------------±-------+
| 127.0.0.1 | 2883 | 2884 | active |
±----------±-----±----------------±-------+
obclient -h127.0.0.1 -P2883 -uroot@proxysys -p’HirIYABMFq’ -Doceanbase -A
Check before start prometheus ok
Stop prometheus ok
Start promethues ok
prometheus program health check ok
Connect to prometheus ok
±---------------------------------------------------------+
| prometheus |
±---------------------------±------±-----------±-------+
| url | user | password | status |
±---------------------------±------±-----------±-------+
| http://172.17.116.249:9090 | admin | 4zFnU2bZOB | active |
±---------------------------±------±-----------±-------+
Check before start grafana ok
Connect to Grafana ok
Reload Grafana ok
Stop grafana ok
Start grafana ok
grafana program health check ok
Connect to Grafana ok
±---------------------------------------------------------------------+
| grafana |
±---------------------------------------±------±-----------±-------+
| url | user | password | status |
±---------------------------------------±------±-----------±-------+
| http://172.17.116.249:3000/d/oceanbase | admin | z2fQqScmOA | active |
±---------------------------------------±------±-----------±-------+
demo restart
Trace ID: dc53f9de-b77b-11ef-8902-00163e1c4550
If you want to view detailed obd logs, please run: obd display-trace dc53f9de-b77b-11ef-8902-00163e1c4550
3.通过 obd display-trace dc53f9de-b77b-11ef-8902-00163e1c4550输出的日志如下
oceanbase日志.txt (94.7 KB)
4.查看cpu_capacity还是4没有变成8
5.随即重试了obd cluster restart demo --wp了, 结果又成功了。查看了查看cpu_capacity已经变成8
自己大概看了一下错误日志,感觉都是和我操作没关系Oceanbase内部的错误,请帮忙看看什么原因