Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
oceanbase
obdeploy
提交
90e49822
O
obdeploy
项目概览
oceanbase
/
obdeploy
大约 2 年 前同步成功
通知
7
Star
73
Fork
132
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
obdeploy
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
未验证
提交
90e49822
编写于
6月 07, 2021
作者:
M
MizuhaHimuraki
提交者:
GitHub
6月 07, 2021
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #7 from frf12/doc
add log-related config to the example file and update the default val…
上级
1630e01b
a8bbf101
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
97 addition
and
36 deletion
+97
-36
README-CN.md
README-CN.md
+2
-2
README.md
README.md
+2
-2
example/distributed-example.yaml
example/distributed-example.yaml
+8
-3
example/distributed-with-obproxy-example.yaml
example/distributed-with-obproxy-example.yaml
+14
-5
example/local-example.yaml
example/local-example.yaml
+4
-1
example/mini-distributed-example.yaml
example/mini-distributed-example.yaml
+8
-4
example/mini-distributed-with-obproxy-example.yaml
example/mini-distributed-with-obproxy-example.yaml
+14
-6
example/mini-local-example.yaml
example/mini-local-example.yaml
+4
-2
example/mini-single-example.yaml
example/mini-single-example.yaml
+11
-2
example/mini-single-with-obproxy-example.yaml
example/mini-single-with-obproxy-example.yaml
+12
-4
example/single-example.yaml
example/single-example.yaml
+6
-1
example/single-with-obproxy-example.yaml
example/single-with-obproxy-example.yaml
+12
-4
未找到文件。
README-CN.md
浏览文件 @
90e49822
...
...
@@ -72,7 +72,7 @@
在此之前您需要确认以下信息:
-
当前用户为 root。
-
`288
2`
和
`2883
`
端口没有被占用。
-
`288
1`
和
`2882
`
端口没有被占用。
-
您的机器内存应该不低于 8G。
-
您的机器 CPU 数目应该不低于 2。
...
...
@@ -82,7 +82,7 @@
obd cluster deploy c1
-c
./example/mini-local-example.yaml
obd cluster start c1
# 使用 mysql 客户端链接到到 OceanBase 数据库。
mysql
-h127
.1
-uroot
-P288
3
mysql
-h127
.1
-uroot
-P288
1
```
## 使用 OBD 启动 OceanBase 数据库集群
...
...
README.md
浏览文件 @
90e49822
...
...
@@ -72,7 +72,7 @@
在此之前您需要确认以下信息:
-
当前用户为 root。
-
`288
2`
和
`2883
`
端口没有被占用。
-
`288
1`
和
`2882
`
端口没有被占用。
-
您的机器内存应该不低于 8G。
-
您的机器 CPU 数目应该不低于 2。
...
...
@@ -82,7 +82,7 @@
obd cluster deploy c1
-c
./example/mini-local-example.yaml
obd cluster start c1
# 使用 mysql 客户端链接到到 OceanBase 数据库。
mysql
-h127
.1
-uroot
-P288
3
mysql
-h127
.1
-uroot
-P288
1
```
## 使用 OBD 启动 OceanBase 数据库集群
...
...
example/distributed-example.yaml
浏览文件 @
90e49822
...
...
@@ -3,6 +3,8 @@
# username: your username
# password: your password if need
# key_file: your ssh-key file path if need
# port: your ssh port, default 22
# timeout: ssh connection timeout (second), default 30
oceanbase-ce
:
servers
:
-
name
:
z1
...
...
@@ -20,21 +22,24 @@ oceanbase-ce:
# if current hardware's memory capacity is smaller than 50G, please use the setting of "mini-single-example.yaml" and do a small adjustment.
memory_limit
:
64G
datafile_disk_percentage
:
20
syslog_level
:
INFO
enable_syslog_recycle
:
true
max_syslog_file_count
:
4
cluster_id
:
1
# In this example , support multiple ob process in single node, so different process use different ports.
# If deploy ob cluster in multiple nodes, the port and path setting can be same.
z1
:
mysql_port
:
288
3
mysql_port
:
288
1
rpc_port
:
2882
home_path
:
/root/observer
zone
:
zone1
z2
:
mysql_port
:
288
3
mysql_port
:
288
1
rpc_port
:
2882
home_path
:
/root/observer
zone
:
zone2
z3
:
mysql_port
:
288
3
mysql_port
:
288
1
rpc_port
:
2882
home_path
:
/root/observer
zone
:
zone3
example/distributed-with-obproxy-example.yaml
浏览文件 @
90e49822
...
...
@@ -3,6 +3,8 @@
# username: your username
# password: your password if need
# key_file: your ssh-key file path if need
# port: your ssh port, default 22
# timeout: ssh connection timeout (second), default 30
oceanbase-ce
:
servers
:
-
name
:
z1
...
...
@@ -20,21 +22,26 @@ oceanbase-ce:
# if current hardware's memory capacity is smaller than 50G, please use the setting of "mini-single-example.yaml" and do a small adjustment.
memory_limit
:
64G
datafile_disk_percentage
:
20
syslog_level
:
INFO
enable_syslog_recycle
:
true
max_syslog_file_count
:
4
cluster_id
:
1
# observer cluster name, consistent with obproxy's cluster_name
appname
:
observer_cluster_name
# In this example , support multiple ob process in single node, so different process use different ports.
# If deploy ob cluster in multiple nodes, the port and path setting can be same.
z1
:
mysql_port
:
288
3
mysql_port
:
288
1
rpc_port
:
2882
home_path
:
/root/observer
zone
:
zone1
z2
:
mysql_port
:
288
3
mysql_port
:
288
1
rpc_port
:
2882
home_path
:
/root/observer
zone
:
zone2
z3
:
mysql_port
:
288
3
mysql_port
:
288
1
rpc_port
:
2882
home_path
:
/root/observer
zone
:
zone3
...
...
@@ -46,5 +53,7 @@ obproxy:
home_path
:
/root/obproxy
# oceanbase root server list
# format: ip:mysql_port,ip:mysql_port
rs_list
:
192.168.1.2:2883;192.168.1.3:2883;192.168.1.4:2883
enable_cluster_checkout
:
false
\ No newline at end of file
rs_list
:
192.168.1.2:2881;192.168.1.3:2881;192.168.1.4:2881
enable_cluster_checkout
:
false
# observer cluster name, consistent with oceanbase-ce's appname
cluster_name
:
observer_cluster_name
\ No newline at end of file
example/local-example.yaml
浏览文件 @
90e49822
...
...
@@ -8,10 +8,13 @@ oceanbase-ce:
# if set severs as "127.0.0.1", please set devname as "lo"
# if current ip is 192.168.1.10, and the ip's network adaptor's name is "eth0", please use "eth0"
devname
:
lo
mysql_port
:
288
3
mysql_port
:
288
1
rpc_port
:
2882
zone
:
zone1
# if current hardware's memory capacity is smaller than 50G, please use the setting of "mini-single-example.yaml" and do a small adjustment.
memory_limit
:
64G
datafile_disk_percentage
:
20
syslog_level
:
INFO
enable_syslog_recycle
:
true
max_syslog_file_count
:
4
cluster_id
:
1
\ No newline at end of file
example/mini-distributed-example.yaml
浏览文件 @
90e49822
...
...
@@ -3,6 +3,8 @@
# username: your username
# password: your password if need
# key_file: your ssh-key file path if need
# port: your ssh port, default 22
# timeout: ssh connection timeout (second), default 30
oceanbase-ce
:
servers
:
-
name
:
z1
...
...
@@ -18,7 +20,6 @@ oceanbase-ce:
# if current ip is 192.168.1.10, and the ip's network adaptor's name is "eth0", please use "eth0"
devname
:
eth0
cluster_id
:
1
datafile_size
:
8G
# please set memory limit to a suitable value which is matching resource.
memory_limit
:
8G
system_memory
:
4G
...
...
@@ -35,18 +36,21 @@ oceanbase-ce:
enable_separate_sys_clog
:
0
enable_merge_by_turn
:
FALSE
datafile_disk_percentage
:
20
syslog_level
:
INFO
enable_syslog_recycle
:
true
max_syslog_file_count
:
4
z1
:
mysql_port
:
288
3
mysql_port
:
288
1
rpc_port
:
2882
home_path
:
/root/observer
zone
:
zone1
z2
:
mysql_port
:
288
3
mysql_port
:
288
1
rpc_port
:
2882
home_path
:
/root/observer
zone
:
zone2
z3
:
mysql_port
:
288
3
mysql_port
:
288
1
rpc_port
:
2882
home_path
:
/root/observer
zone
:
zone3
example/mini-distributed-with-obproxy-example.yaml
浏览文件 @
90e49822
...
...
@@ -3,6 +3,8 @@
# username: your username
# password: your password if need
# key_file: your ssh-key file path if need
# port: your ssh port, default 22
# timeout: ssh connection timeout (second), default 30
oceanbase-ce
:
servers
:
-
name
:
z1
...
...
@@ -18,7 +20,6 @@ oceanbase-ce:
# if current ip is 192.168.1.10, and the ip's network adaptor's name is "eth0", please use "eth0"
devname
:
eth0
cluster_id
:
1
datafile_size
:
8G
# please set memory limit to a suitable value which is matching resource.
memory_limit
:
8G
system_memory
:
4G
...
...
@@ -35,18 +36,23 @@ oceanbase-ce:
enable_separate_sys_clog
:
0
enable_merge_by_turn
:
FALSE
datafile_disk_percentage
:
20
syslog_level
:
INFO
enable_syslog_recycle
:
true
max_syslog_file_count
:
4
# observer cluster name, consistent with obproxy's cluster_name
appname
:
observer_cluster_name
z1
:
mysql_port
:
288
3
mysql_port
:
288
1
rpc_port
:
2882
home_path
:
/root/observer
zone
:
zone1
z2
:
mysql_port
:
288
3
mysql_port
:
288
1
rpc_port
:
2882
home_path
:
/root/observer
zone
:
zone2
z3
:
mysql_port
:
288
3
mysql_port
:
288
1
rpc_port
:
2882
home_path
:
/root/observer
zone
:
zone3
...
...
@@ -58,5 +64,7 @@ obproxy:
home_path
:
/root/obproxy
# oceanbase root server list
# format: ip:mysql_port,ip:mysql_port
rs_list
:
192.168.1.2:2883;192.168.1.3:2883;192.168.1.4:2883
enable_cluster_checkout
:
false
\ No newline at end of file
rs_list
:
192.168.1.2:2881;192.168.1.3:2881;192.168.1.4:2881
enable_cluster_checkout
:
false
# observer cluster name, consistent with oceanbase-ce's appname
cluster_name
:
observer_cluster_name
\ No newline at end of file
example/mini-local-example.yaml
浏览文件 @
90e49822
...
...
@@ -8,11 +8,10 @@ oceanbase-ce:
# if set severs as "127.0.0.1", please set devname as "lo"
# if current ip is 192.168.1.10, and the ip's network adaptor's name is "eth0", please use "eth0"
devname
:
lo
mysql_port
:
288
3
mysql_port
:
288
1
rpc_port
:
2882
zone
:
zone1
cluster_id
:
1
datafile_size
:
8G
# please set memory limit to a suitable value which is matching resource.
memory_limit
:
8G
system_memory
:
4G
...
...
@@ -29,3 +28,6 @@ oceanbase-ce:
enable_separate_sys_clog
:
0
enable_merge_by_turn
:
FALSE
datafile_disk_percentage
:
20
syslog_level
:
INFO
enable_syslog_recycle
:
true
max_syslog_file_count
:
4
example/mini-single-example.yaml
浏览文件 @
90e49822
## Only need to configure when remote login is required
# user:
# username: your username
# password: your password if need
# key_file: your ssh-key file path if need
# port: your ssh port, default 22
# timeout: ssh connection timeout (second), default 30
oceanbase-ce
:
servers
:
# Please don't use hostname, only IP can be supported
...
...
@@ -8,11 +15,10 @@ oceanbase-ce:
# if set severs as "127.0.0.1", please set devname as "lo"
# if current ip is 192.168.1.10, and the ip's network adaptor's name is "eth0", please use "eth0"
devname
:
eth0
mysql_port
:
288
3
mysql_port
:
288
1
rpc_port
:
2882
zone
:
zone1
cluster_id
:
1
datafile_size
:
8G
# please set memory limit to a suitable value which is matching resource.
memory_limit
:
8G
system_memory
:
4G
...
...
@@ -29,3 +35,6 @@ oceanbase-ce:
enable_separate_sys_clog
:
0
enable_merge_by_turn
:
FALSE
datafile_disk_percentage
:
20
syslog_level
:
INFO
enable_syslog_recycle
:
true
max_syslog_file_count
:
4
example/mini-single-with-obproxy-example.yaml
浏览文件 @
90e49822
...
...
@@ -3,6 +3,8 @@
# username: your username
# password: your password if need
# key_file: your ssh-key file path if need
# port: your ssh port, default 22
# timeout: ssh connection timeout (second), default 30
oceanbase-ce
:
servers
:
# Please don't use hostname, only IP can be supported
...
...
@@ -13,11 +15,10 @@ oceanbase-ce:
# if set severs as "127.0.0.1", please set devname as "lo"
# if current ip is 192.168.1.10, and the ip's network adaptor's name is "eth0", please use "eth0"
devname
:
eth0
mysql_port
:
288
3
mysql_port
:
288
1
rpc_port
:
2882
zone
:
zone1
cluster_id
:
1
datafile_size
:
8G
# please set memory limit to a suitable value which is matching resource.
memory_limit
:
8G
system_memory
:
4G
...
...
@@ -34,6 +35,11 @@ oceanbase-ce:
enable_separate_sys_clog
:
0
enable_merge_by_turn
:
FALSE
datafile_disk_percentage
:
20
syslog_level
:
INFO
enable_syslog_recycle
:
true
max_syslog_file_count
:
4
# observer cluster name, consistent with obproxy's cluster_name
appname
:
observer_cluster_name
obproxy
:
servers
:
-
192.168.1.2
...
...
@@ -42,5 +48,7 @@ obproxy:
home_path
:
/root/obproxy
# oceanbase root server list
# format: ip:mysql_port,ip:mysql_port
rs_list
:
192.168.1.3:2883
enable_cluster_checkout
:
false
\ No newline at end of file
rs_list
:
192.168.1.3:2881
enable_cluster_checkout
:
false
# observer cluster name, consistent with oceanbase-ce's appname
cluster_name
:
observer_cluster_name
\ No newline at end of file
example/single-example.yaml
浏览文件 @
90e49822
...
...
@@ -3,6 +3,8 @@
# username: your username
# password: your password if need
# key_file: your ssh-key file path if need
# port: your ssh port, default 22
# timeout: ssh connection timeout (second), default 30
oceanbase-ce
:
servers
:
# Please don't use hostname, only IP can be supported
...
...
@@ -13,10 +15,13 @@ oceanbase-ce:
# if set severs as "127.0.0.1", please set devname as "lo"
# if current ip is 192.168.1.10, and the ip's network adaptor's name is "eth0", please use "eth0"
devname
:
eth0
mysql_port
:
288
3
mysql_port
:
288
1
rpc_port
:
2882
zone
:
zone1
# if current hardware's memory capacity is smaller than 50G, please use the setting of "mini-single-example.yaml" and do a small adjustment.
memory_limit
:
64G
datafile_disk_percentage
:
20
syslog_level
:
INFO
enable_syslog_recycle
:
true
max_syslog_file_count
:
4
cluster_id
:
1
\ No newline at end of file
example/single-with-obproxy-example.yaml
浏览文件 @
90e49822
...
...
@@ -3,6 +3,8 @@
# username: your username
# password: your password if need
# key_file: your ssh-key file path if need
# port: your ssh port, default 22
# timeout: ssh connection timeout (second), default 30
oceanbase-ce
:
servers
:
# Please don't use hostname, only IP can be supported
...
...
@@ -12,8 +14,7 @@ oceanbase-ce:
# Please set devname as the network adaptor's name whose ip is in the setting of severs.
# if set severs as "127.0.0.1", please set devname as "lo"
# if current ip is 192.168.1.10, and the ip's network adaptor's name is "eth0", please use "eth0"
devname
:
eth0
mysql_port
:
2883
mysql_port
:
2881
rpc_port
:
2882
zone
:
zone1
# Please set devname as the network adaptor's name whose ip is in the setting of severs.
...
...
@@ -23,7 +24,12 @@ oceanbase-ce:
# if current hardware's memory capacity is smaller than 50G, please use the setting of "mini-single-example.yaml" and do a small adjustment.
memory_limit
:
64G
datafile_disk_percentage
:
20
syslog_level
:
INFO
enable_syslog_recycle
:
true
max_syslog_file_count
:
4
cluster_id
:
1
# observer cluster name, consistent with obproxy's cluster_name
appname
:
observer_cluster_name
obproxy
:
servers
:
-
192.168.1.2
...
...
@@ -32,5 +38,7 @@ obproxy:
home_path
:
/root/obproxy
# oceanbase root server list
# format: ip:mysql_port,ip:mysql_port
rs_list
:
192.168.1.3:2883
enable_cluster_checkout
:
false
\ No newline at end of file
rs_list
:
192.168.1.3:2881
enable_cluster_checkout
:
false
# observer cluster name, consistent with oceanbase-ce's appname
cluster_name
:
observer_cluster_name
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录