user:
username: ocean
password: yx@52527
oceanbase-ce:
servers:
- name: server1
ip: 10.2.9.213
- name: server2
ip: 10.2.9.212
- name: server3
ip: 10.2.9.214
global:
cluster_id: 1
memory_limit: 6G # The maximum running memory for an observer
system_memory: 1G # The reserved system memory. system_memory is reserved for general tenants. The default value is 30G.
datafile_size: 20G # Size of the data file.
log_disk_size: 15G # The size of disk space used by the clog files.
cpu_count: 16
production_mode: false
enable_syslog_wf: false # Print system logs whose levels are higher than WARNING to a separate log file. The default value is true.
max_syslog_file_count: 4 # The maximum number of reserved log files before enabling auto recycling. The default value is 0.
root_password: yx@6520
proxyro_password: Yx@52527
ocp_meta_tenant: # The config for ocp express meta tenant
tenant_name: ocp
max_cpu: 1
memory_size: 2G
log_disk_size: 7680M # The recommend value is (4608 + (expect node num + expect tenant num) * 512) M.
server1:
mysql_port: 2881 # External port for OceanBase Database. The default value is 2881. DO NOT change this value after the cluster is started.
rpc_port: 2882 # Internal port for OceanBase Database. The default value is 2882. DO NOT change this value after the cluster is started.
obshell_port: 2886 # Operation and maintenance port for Oceanbase Database. The default value is 2886. This parameter is valid only when the version of oceanbase-ce is 4.2.2.0 or later.
home_path: /home/oceanbase/observer
zone: zone1
server2:
mysql_port: 2881 # External port for OceanBase Database. The default value is 2881. DO NOT change this value after the cluster is started.
rpc_port: 2882 # Internal port for OceanBase Database. The default value is 2882. DO NOT change this value after the cluster is started.
obshell_port: 2886 # Operation and maintenance port for Oceanbase Database. The default value is 2886. This parameter is valid only when the version of oceanbase-ce is 4.2.2.0 or later.
# The working directory for OceanBase Database. OceanBase Database is started under this directory. This is a required field.
home_path: /home/oceanbase/observer
# The directory for data storage. The default value is $home_path/store.
# data_dir: /data
# The directory for clog, ilog, and slog. The default value is the same as the data_dir value.
# redo_dir: /redo
zone: zone2
server3:
mysql_port: 2881 # External port for OceanBase Database. The default value is 2881. DO NOT change this value after the cluster is started.
rpc_port: 2882 # Internal port for OceanBase Database. The default value is 2882. DO NOT change this value after the cluster is started.
obshell_port: 2886 # Operation and maintenance port for Oceanbase Database. The default value is 2886. This parameter is valid only when the version of oceanbase-ce is 4.2.2.0 or later.
home_path: /home/oceanbase/observer
zone: zone3
obproxy-ce:
depends:
- oceanbase-ce
servers:
- 10.2.9.222
global:
listen_port: 2883 # External port. The default value is 2883.
prometheus_listen_port: 2884 # The Prometheus port. The default value is 2884.
home_path: /home/oceanbase/obproxy
enable_cluster_checkout: false
skip_proxy_sys_private_check: true
enable_strict_kernel_release: false
obproxy_sys_password: yanfa@52527
observer_sys_password: Yanfa@52527
obagent:
depends:
- oceanbase-ce
servers:
- name: server1
# Please don't use hostname, only IP can be supported
ip: 10.2.9.213
- name: server2
ip: 10.2.9.212
- name: server3
ip: 10.2.9.214
global:
home_path: /home/oceanbase/obagent
ocp-express:
depends:
- oceanbase-ce
- obproxy-ce
- obagent
servers:
- 10.2.9.222
global:
home_path: /home/oceanbase/ocp-express
memory_size: 1G
[ocean@anolis222 ~]$ obd mirror list local
local Package List is empty.
Trace ID: b213c720-f278-11ef-89be-a08cfdda2e50
If you want to view detailed obd logs, please run: obd display-trace b213c720-f278-11ef-89be-a08cfdda2e50
local没有,我应该怎么弄?
all in one 我就没装成功过,都是在报pyton的错:
2025-03-10 13:56:51,070 ERROR wrapper (task.py:135) [785a0dfa108045feaa77a4167fd8f314] task obcluster got exception
Traceback (most recent call last):
File “service/common/task.py”, line 121, in wrapper
File “concurrent/futures/_base.py”, line 444, in result
File “concurrent/futures/_base.py”, line 389, in __get_result
File “concurrent/futures/thread.py”, line 57, in run
File “service/handler/deployment_handler.py”, line 355, in _do_install
Exception: task obcluster deploy failed
我是下载数据库和依赖库,通过systemd的方式安装成功的。
不好意思,没有表达清楚。我是想咨询:我把3台机器都用systemd的方式安装完以后,有没有什么办法把他们弄成一个集群。谢谢