- nebula 版本:v3.2.1
- 部署方式:分布式
- 安装方式:Docker
- 是否为线上版本:Y
Q1:
通过docker swram集群部署,storaged节点都不能启动,短暂的启动以后就退出了
Q2:
docker-dashaboard部署时删除了建立的nebula-net 网络,重建以后无法与swarm建立的网络连接,该节点不能接入集群
非常感谢!
docker-stack.yaml配置如下:
version: '3.6'
services:
metad0:
image: vesoft/nebula-metad:v3.2.0
env_file:
- ./nebula.env
command:
- --meta_server_addrs=20.198.80.192:45500,20.200.96.156:45500,20.200.96.150:45500
- --local_ip=20.198.80.192
- --ws_ip=20.198.80.192
- --ws_http_port=11000
- --port=45500
- --data_path=/data/meta
- --log_dir=/logs
- --v=0
- --minloglevel=2
deploy:
replicas: 1
restart_policy:
condition: on-failure
placement:
constraints:
- node.hostname == uatdata1
healthcheck:
test: ["CMD", "curl", "-f", "http://20.198.80.192:11000/status"]
interval: 30s
timeout: 10s
retries: 3
start_period: 20s
ports:
- target: 11000
published: 11000
protocol: tcp
mode: host
- target: 11002
published: 11002
protocol: tcp
mode: host
- target: 45500
published: 45500
protocol: tcp
mode: host
volumes:
- data-metad0:/data/meta
- logs-metad0:/logs
networks:
- nebula-net
metad1:
image: vesoft/nebula-metad:v3.2.0
env_file:
- ./nebula.env
command:
- --meta_server_addrs=20.198.80.192:45500,20.200.96.156:45500,20.200.96.150:45500
- --local_ip=20.200.96.156
- --ws_ip=20.200.96.156
- --port=45500
- --ws_http_port=11000
- --data_path=/data/meta
- --log_dir=/logs
- --v=0
- --minloglevel=2
deploy:
replicas: 1
restart_policy:
condition: on-failure
placement:
constraints:
- node.hostname == slaves1
healthcheck:
test: ["CMD", "curl", "-f", "http://20.200.96.156:11000/status"]
interval: 30s
timeout: 10s
retries: 3
start_period: 20s
ports:
- target: 11000
published: 11000
protocol: tcp
mode: host
- target: 11002
published: 11002
protocol: tcp
mode: host
- target: 45500
published: 45500
protocol: tcp
mode: host
volumes:
- data-metad1:/data/meta
- logs-metad1:/logs
networks:
- nebula-net
metad2:
image: vesoft/nebula-metad:v3.2.0
env_file:
- ./nebula.env
command:
- --meta_server_addrs=20.198.80.192:45500,20.200.96.156:45500,20.200.96.150:45500
- --local_ip=20.200.96.150
- --ws_ip=20.200.96.150
- --port=45500
- --ws_http_port=11000
- --data_path=/data/meta
- --log_dir=/logs
- --v=0
- --minloglevel=2
deploy:
replicas: 1
restart_policy:
condition: on-failure
placement:
constraints:
- node.hostname == slaves2
healthcheck:
test: ["CMD", "curl", "-f", "http://20.200.96.150:11000/status"]
interval: 30s
timeout: 10s
retries: 3
start_period: 20s
ports:
- target: 11000
published: 11000
protocol: tcp
mode: host
- target: 11002
published: 11002
protocol: tcp
mode: host
- target: 45500
published: 45500
protocol: tcp
mode: host
volumes:
- data-metad2:/data/meta
- logs-metad2:/logs
networks:
- nebula-net
storaged0:
image: vesoft/nebula-storaged:v3.2.0
env_file:
- ./nebula.env
command:
- --meta_server_addrs=20.198.80.192:45500,20.200.96.156:45500,20.200.96.150:45500
- --local_ip=20.198.80.192
- --ws_ip=20.198.80.192
- --port=44500
- --ws_http_port=12000
- --data_path=/data/storage
- --log_dir=/logs
- --v=0
- --minloglevel=2
deploy:
replicas: 1
restart_policy:
condition: on-failure
placement:
constraints:
- node.hostname == uatdata1
depends_on:
- metad0
- metad1
- metad2
healthcheck:
test: ["CMD", "curl", "-f", "http://20.198.80.192:12000/status"]
interval: 30s
timeout: 10s
retries: 3
start_period: 20s
ports:
- target: 12000
published: 12000
protocol: tcp
mode: host
- target: 12002
published: 12002
protocol: tcp
mode: host
volumes:
- data-storaged0:/data/storage
- logs-storaged0:/logs
networks:
- nebula-net
storaged1:
image: vesoft/nebula-storaged:v3.2.0
env_file:
- ./nebula.env
command:
- --meta_server_addrs=20.198.80.192:45500,20.200.96.156:45500,20.200.96.150:45500
- --local_ip=20.200.96.156
- --ws_ip=20.200.96.156
- --port=44500
- --ws_http_port=12000
- --data_path=/data/storage
- --log_dir=/logs
- --v=0
- --minloglevel=0
deploy:
replicas: 1
restart_policy:
condition: on-failure
placement:
constraints:
- node.hostname == slaves1
depends_on:
- metad0
- metad1
- metad2
healthcheck:
test: ["CMD", "curl", "-f", "http://20.200.96.156:12000/status"]
interval: 30s
timeout: 10s
retries: 3
start_period: 20s
ports:
- target: 12000
published: 12000
protocol: tcp
mode: host
- target: 12002
published: 12004
protocol: tcp
mode: host
volumes:
- data-storaged1:/data/storage
- logs-storaged1:/logs
networks:
- nebula-net
storaged2:
image: vesoft/nebula-storaged:v3.2.0
env_file:
- ./nebula.env
command:
- --meta_server_addrs=20.198.80.192:45500,20.200.96.156:45500,20.200.96.150:45500
- --local_ip=20.200.96.150
- --ws_ip=20.200.96.150
- --port=44500
- --ws_http_port=12000
- --data_path=/data/storage
- --log_dir=/logs
- --v=0
- --minloglevel=2
deploy:
replicas: 1
restart_policy:
condition: on-failure
placement:
constraints:
- node.hostname == slaves2
depends_on:
- metad0
- metad1
- metad2
healthcheck:
test: ["CMD", "curl", "-f", "http://20.200.96.150:12000/status"]
interval: 30s
timeout: 10s
retries: 3
start_period: 20s
ports:
- target: 12000
published: 12000
protocol: tcp
mode: host
- target: 12002
published: 12006
protocol: tcp
mode: host
volumes:
- data-storaged2:/data/storage
- logs-storaged2:/logs
networks:
- nebula-net
graphd0:
image: vesoft/nebula-graphd:v3.2.0
env_file:
- ./nebula.env
command:
- --meta_server_addrs=20.198.80.192:45500,20.200.96.156:45500,20.200.96.150:45500
- --port=3669
- --ws_ip=20.198.80.192
- --ws_http_port=13000
- --log_dir=/logs
- --v=0
- --minloglevel=2
deploy:
replicas: 1
restart_policy:
condition: on-failure
placement:
constraints:
- node.hostname == uatdata1
depends_on:
- metad0
- metad1
- metad2
healthcheck:
test: ["CMD", "curl", "-f", "http://20.198.80.192:13000/status"]
interval: 30s
timeout: 10s
retries: 3
start_period: 20s
ports:
- target: 3699
published: 3699
protocol: tcp
mode: host
- target: 13000
published: 13000
protocol: tcp
mode: host
- target: 13002
published: 13002
protocol: tcp
mode: host
volumes:
- logs-graphd0:/logs
networks:
- nebula-net
graphd1:
image: vesoft/nebula-graphd:v3.2.0
env_file:
- ./nebula.env
command:
- --meta_server_addrs=20.198.80.192:45500,20.200.96.156:45500,20.200.96.150:45500
- --port=3699
- --ws_ip=20.200.96.156
- --ws_http_port=13000
- --log_dir=/logs
- --v=0
- --minloglevel=0
deploy:
replicas: 1
restart_policy:
condition: on-failure
placement:
constraints:
- node.hostname == slaves1
depends_on:
- metad0
- metad1
- metad2
healthcheck:
test: ["CMD", "curl", "-f", "http://20.200.96.156:13000/status"]
interval: 30s
timeout: 10s
retries: 3
start_period: 20s
ports:
- target: 3699
published: 3699
protocol: tcp
mode: host
- target: 13000
published: 13000
protocol: tcp
mode: host
- target: 13002
published: 13002
protocol: tcp
mode: host
volumes:
- logs-graphd1:/logs
networks:
- nebula-net
graphd2:
image: vesoft/nebula-graphd:v3.2.0
env_file:
- ./nebula.env
command:
- --meta_server_addrs=20.198.80.192:45500,20.200.96.156:45500,20.200.96.150:45500
- --port=3699
- --ws_ip=20.200.96.150
- --ws_http_port=13000
- --log_dir=/logs
- --v=0
- --minloglevel=2
deploy:
replicas: 1
restart_policy:
condition: on-failure
placement:
constraints:
- node.hostname == slaves2
depends_on:
- metad0
- metad1
- metad2
healthcheck:
test: ["CMD", "curl", "-f", "http://20.200.96.150:13000/status"]
interval: 30s
timeout: 10s
retries: 3
start_period: 20s
ports:
- target: 3699
published: 3699
protocol: tcp
mode: host
- target: 13000
published: 13000
protocol: tcp
mode: host
- target: 13002
published: 13002
protocol: tcp
mode: host
volumes:
- logs-graphd2:/logs
networks:
- nebula-net
networks:
nebula-net:
external: true
attachable: true
name: host
volumes:
data-metad0:
logs-metad0:
data-metad1:
logs-metad1:
data-metad2:
logs-metad2:
data-storaged0:
logs-storaged0:
data-storaged1:
logs-storaged1:
data-storaged2:
logs-storaged2:
logs-graphd0:
logs-graphd1:
logs-graphd2: