LightDB分布式部署-多机单实例模式
# 1.常规模式
1台服务器作为协调者节点,N(N>1)台服务器作为工作节点,每个节点都按照高可用方式进行部署
比如,一个协调节点,2个工作节点,
* 工作节点按照一主一从高可用方式部署,则一共需要[(1+2)*2=6台]服务器
* 工作节点按照一主一从一witness方式部署,则一共需要[(1+2)*3=9台]服务器
# 2.多机单实例
1台服务器作为协调者节点,N(N>1)台服务器作为工作节点,每个节点都按照单机模式部署
# 3.单机多实例
使用1台服务器同时安装协调者节点和工作节点的实例,所有实例均按照单机模式部署
生产环境仅建议使用常规模式部署。
1. 192.168.121.112 --CN
2. 192.168.121.113 --work1
3. 192.168.121.114 --work2
[lightdb@localhost lightdb-x-13.8-22.3-7953-el7.x86_64]$ ./install.sh
Whether to use the graphical user interface (GUI, Make sure DISPLAY is configured, Such as [export DISPLAY=127.0.0.1:0.0])?(Yes or No)
no
Choice a kind of configuration mode!
1: Only install.
2: Install database and Create instance.
3: Developer
Please enter 1 2 or 3(The default is 1):
2
Choice a kind of install mode!
1: Single Mode.
2: High Availability Mode
3: Distributed Mode
Please enter 1, 2 or 3:(The default is 1)
3
Please select distributed mode!
Please enter distributed mode:
1 Normal mode;
2 Multi-server single instance;
3 Single server multi-instance.(Default 1)
2
Configure the directory and port for the single-node multi-instance.
Please enter coordinator node:
Please enter the ip of coordinator node, such as 192.168.217.234:
192.168.121.112
Please enter the port of coordinator node. (Default port 5432):
5437
Please enter worker node:
Please enter the ip of worker node, such as 192.168.217.234:
192.168.121.113
Please enter the port of worker node. (Default port 5432):
5438
Please enter the ip of worker node, such as 192.168.217.234:
192.168.121.114
Please enter the port of worker node. (Default port 5432):
5439
Continue to add worker node?(1[yes],2[no])
2
======================================= Servers =======================================
Coordinator Node : 192.168.121.112
Worker Node : 192.168.121.113
Worker Node : 192.168.121.114
======================================= Servers =======================================
Please check the servers of Multi-server single instance. 1 continue; 2 clear server config (Default 1)
1
====================================== Generate pg_hba ================================
====================================== Generate end ===================================
====================================== Copying files takes time =======================
192.168.121.113: start copy
192.168.121.113: end copy
192.168.121.114: start copy
192.168.121.114: end copy
====================================== Copying files end ==============================
Check system parameters and dependency packages!
========================================= 192.168.121.112 =========================================
NETWORK
name: sem, recommend value: 500,2048000,200,4096, current value: