我希望在一个集群中至少有两个节点的分布式模式下运行OrientDB。因此,我想知道是否将分布式标志设置为true就足够了,还是应该有更多的配置?
我的停靠撰写文件如下所示:
node1:
image: orientdb:latest
ports:
- "2424:2424"
- "2480:2480"
environment:
ORIENTDB_ROOT_PASSWORD: 'pwd'
ORIENTDB_NODE_NAME: node1
volumes:
- /orientdb/config:/opt/orientdb/config
- /orientdb/databases:/orientdb/databases
- /orientdb/backup:/orientdb/backup
- ./data:/orientdb/bin/data
command: /orientdb/bin/server.sh -Ddistributed=true发布于 2018-11-08 12:24:28
我为每个节点创建了两个服务,每个节点都有一个单独的信任集:
version: '3'
services:
node1:
image: orientdb:latest
entrypoint: /orientdb/bin/server.sh -Ddistributed=true
volumes:
- /orientdb/config:/orientdb/config
- /orientdb/databases:/orientdb/databases
- /orientdb/backup:/orientdb/backup
- ./data:/orientdb/bin/data
environment:
ORIENTDB_ROOT_PASSWORD: 'pwd'
ORIENTDB_NODE_NAME: node1
ports:
- "2424:2424"
- "2480:2480"
node2:
image: orientdb:latest
entrypoint: /orientdb/bin/server.sh -Ddistributed=true
volumes:
- /orientdb/config2:/orientdb/config
- /orientdb/databases2:/orientdb/databases
- /orientdb/backup2:/orientdb/backup
- ./data:/orientdb/bin/data
environment:
ORIENTDB_ROOT_PASSWORD: 'pwd'
ORIENTDB_NODE_NAME: node2
depends_on:
- node1https://stackoverflow.com/questions/52364126
复制相似问题