单物理机配置3节点是否可行

  • nebula 版本:2.0.0
  • 部署方式(分布式 / 单机 / Docker / DBaaS):单机3节点,3metad 3graphd 3storaged
    想在单机配置部署3节点集群 ,即3metad 3graphd 3storaged

node1

########## networking ##########
# Comma separated Meta Server addresses
--meta_server_addrs=127.0.0.1:9559,127.0.0.1:9569,127.0.0.1:9579
# 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=127.0.0.1
# Meta daemon listening port
--port=9559
# HTTP service ip
--ws_ip=0.0.0.0
# HTTP service port
--ws_http_port=19559
# HTTP2 service port
--ws_h2_port=19560

node2

########## networking ##########
# Comma separated Meta Server addresses
--meta_server_addrs=127.0.0.1:9559,127.0.0.1:9569,127.0.0.1:9579
# 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=127.0.0.1
# Meta daemon listening port
--port=9569
# HTTP service ip
--ws_ip=0.0.0.0
# HTTP service port
--ws_http_port=19569
# HTTP2 service port
--ws_h2_port=19570

node3

########## networking ##########
# Comma separated Meta Server addresses
--meta_server_addrs=127.0.0.1:9559,127.0.0.1:9569,127.0.0.1:9579
# 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=127.0.0.1
# Meta daemon listening port
--port=9579
# HTTP service ip
--ws_ip=0.0.0.0
# HTTP service port
--ws_http_port=19579
# HTTP2 service port
--ws_h2_port=19580

metad三个节点的IP是否可以为1287.0.0.1+不同端口号区分?
通过指定三个 节点metad的conf,端口不一样,启动,然后报错

# ! /bin/sh
#start 3 metad nodes
./nebula.sevice  -c /lab/nebula-graph/etc/node1/nebula-metad.conf start metad 
./nebula.sevice  -c /lab/nebula-graph/etc/node2/nebula-metad.conf start metad 
./nebula.sevice  -c /lab/nebula-graph/etc/node3/nebula-metad.conf start metad 

image
单机不使用docker是否可以部署多个节点运行?多谢

你可以拷贝三份安装目录,然后再去修改安装目录里面的配置文件,而不是在脚本里面去启动三次同个目录下面的binary。

1 个赞

懂了,本来想偷懒,这样目录有些文件如pid有依赖,不能这么做。3Q~