NebulaGraph3.2.1集群部署生产环境配置

此文章只介绍类生产环境中集群的配置,想看完整下载安装过程请阅读这篇文章https://blog.csdn.net/weixin_44328192/article/details/127306856

部署方案

为了测试方便把所有机器的都设成一样的配置

机器名称IP地址metad 进程数量graphd 进程数量storaged 进程数量
bigdata01192.168.10.101111
bigdata02192.168.10.102111
bigdata03192.168.10.103111

因为三台主机都要修改三个配置文件,所以只列出一台主机,其他两台只需修改ip地址即可

1.1、nebula-metad.conf

(1)修改basics
添加时区信息(以我们所属的东八区为例)

########## basics ##########
# Specifying the Time Zone
--timezone_name=UTC+08:00

在这里插入图片描述
(2)修改logging

########## logging ##########
# The directory to host logging files
--log_dir=logs= /mnt/data/nebula/logs # 这个日志路径在生产环境中一般会单独放在一个磁盘中,按照实际修改
# Log level, 0, 1, 2, 3 for INFO, WARNING, ERROR, FATAL respectively
--minloglevel=1  # 把最低日志级别改为1(WARNING)

在这里插入图片描述

(3)修改networking

########## networking ##########
# Comma separated Meta Server addresses
--meta_server_addrs=192.168.10.101:9559,192.168.10.102:9559,192.168.10.103:9559
# Local IP used to identify the nebula-metad process.
# Change it to an address other than loopback if the service is distributed or
# will be accessed remotely.
--local_ip=192.168.10.102
# Meta daemon listening port
--port=9559

在这里插入图片描述
(4)修改storage

########## storage ##########
# Root data path, here should be only single path for metad
--data_path=/mnt/data/nebula/meta  # meta数据存储路径在生产环境中一般会单独放在一个磁盘中,按照实际修改

在这里插入图片描述

1.2、nebula-graphd.conf

(1)修改basics
增加时区信息

########## basics ##########
# Specifying the Time Zone
--timezone_name=UTC+08:00

在这里插入图片描述
(2)修改logging

########## logging ##########
# The directory to host logging files
--log_dir=/mnt/data/nebula/logs
# Log level, 0, 1, 2, 3 for INFO, WARNING, ERROR, FATAL respectively
--minloglevel=1

在这里插入图片描述
(3)修改networking

########## networking ##########
# Comma separated Meta Server Addresses
--meta_server_addrs=192.168.10.101:9559,192.168.10.102:9559,192.168.10.103:9559
# Local IP used to identify the nebula-graphd process.
# Change it to an address other than loopback if the service is distributed or
# will be accessed remotely.
--local_ip=192.168.10.102
# Network device to listen on
--listen_netdev=any
# Port to listen on
--port=9669

在这里插入图片描述
(4)修改authentication
这里根据实际需求选择是否需要开启身份验证
在这里插入图片描述
在这里插入图片描述
(5)修改metrics
这里根据实际需求选择是否需要开启在这里插入图片描述在这里插入图片描述

1.3、nebula-storaged.conf

(1)修改basics
增加时区信息

########## basics ##########
# Specifying the Time Zone
--timezone_name=UTC+08:00

(2)修改logging

########## logging ##########
# The directory to host logging files
--log_dir=logs= /mnt/data/nebula/logs # 这个日志路径在生产环境中一般会单独放在一个磁盘中,按照实际修改
# Log level, 0, 1, 2, 3 for INFO, WARNING, ERROR, FATAL respectively
--minloglevel=1  # 把最低日志级别改为1(WARNING)

在这里插入图片描述
(3)修改networking

########## networking ##########
# Comma separated Meta server addresses
--meta_server_addrs=192.168.10.101:9559,192.168.10.102:9559,192.168.10.103:9559
# Local IP used to identify the nebula-storaged process.
# Change it to an address other than loopback if the service is distributed or
# will be accessed remotely.
--local_ip=192.168.10.102
# Storage daemon listening port
--port=9779

在这里插入图片描述
(4)修改Disk

########## Disk ##########
# Root data path. Split by comma. e.g. --data_path=/disk1/path1/,/disk2/path2/
# One path per Rocksdb instance.
--data_path=/mnt/data/nebula/storage

在这里插入图片描述

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值