2023-01-16 LightDB分布式部署-多机单实例模式.md

本文介绍了LightDB的分布式部署,包括常规模式和多机单实例模式。在多机单实例模式中,1台服务器作为协调者,N台服务器作为工作节点,每台都按单机模式部署。安装过程涉及配置节点IP、端口选择以及系统参数检查等步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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: 
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值