我有一个卡特里奇机群的测试台。起立与对接-合成(使用塔兰工具2.10.3对接-图像与墨盒-cli内)。
集装箱-1:
集装箱-2:
启动容器-1上的所有实例后,BASH脚本执行命令:
sh# cartridge replicasets join --replicaset group-1 instance-1-1
sh# cartridge replicasets join --replicaset group-2 instance-1-2一切都好
但是,在启动容器-2并调用相同的命令后,会发生以下错误:
sh# cartridge replicasets join --replicaset group-1 instance-2-1
• Join instance(s) instance-2-1 to replica set group-1
⨯ Failed to connect to Tarantool instance: Failed to dial: dial unix /opt/tarantool/tmp/run/test.instance-1-1.control: connect: no such file or directory在WEB中,但是我想使用CLI来实现它或者类似的东西(用于自动化)
发布于 2022-11-10 13:33:07
问题似乎是墨盒-cli只适用于本地instances.yml文件。如果在启动所有容器后,我在容器-1中更改了instance.yml (从容器-2中添加实例),那么一切都正常。但这是个奇怪的决定。
发布于 2022-11-16 16:46:32
正如正确地指出的,墨盒-cli在本地工作(在运行它的主机上)。目前正在开发中的tt cli (计划于2023年发布)将通过合并和扩展它们的功能来取代墨盒-cli和tarantoolctl。请参阅:https://github.com/tarantool/tt#working-with-tt-daemon-experimental
https://stackoverflow.com/questions/74378030
复制相似问题