翼鸥教育实践:手动部署 OceanBase 三副本集群

2022-02-21 00:00:00 用户 服务器 时间 查看 租户
作者简介:罗呈祥,数据库管理员。

手动部署 ob 三副本集群

1. IP地址和机器规划

机器os :centos 7.5 8c12g



2. 初始化机器

2.1 修改内核参数


cat << EOF >> /etc/sysctl.conf net.core.somaxconn = 2048 net.core.netdev_max_backlog = 10000 net.core.rmem_default = 16777216 net.core.wmem_default = 16777216 net.core.rmem_max = 16777216 net.core.wmem_max = 16777216 net.ipv4.ip_local_port_range = 3500 65535 net.ipv4.ip_forward = net.ipv4.conf.default.rp_filter = 1 net.ipv4.conf.default.accept_source_route = net.ipv4.tcp_syncookies = net.ipv4.tcp_rmem = 4096 87380 16777216 net.ipv4.tcp_wmem = 4096 65536 16777216 net.ipv4.tcp_max_syn_backlog = 16384 net.ipv4.tcp_fin_timeout = 15 net.ipv4.tcp_max_syn_backlog = 16384 net.ipv4.tcp_tw_reuse = 1 net.ipv4.tcp_tw_recycle = 1 net.ipv4.tcp_slow_start_after_idle= vm.swappiness = vm.min_free_kbytes = 2097152 vm.max_map_count=655360 fs.aio-max-nr=1048576 EOF

相关文章