Tarantool 什么';主塔兰托复制设置的初始脚本是否正确?

Tarantool 什么';主塔兰托复制设置的初始脚本是否正确?,tarantool,Tarantool,我正在尝试使用相同的配置文件来复制tarantool。这是主机1和主机2的tester.lua box.cfg{ listen=3301, custom_proc_title='tester',

我正在尝试使用相同的配置文件来复制tarantool。这是主机1和主机2的tester.lua

box.cfg{                                                                             
  listen=3301,                                                                       
  custom_proc_title='tester',      
  memtx_memory=6442450944,                                                   
  replication={'replicator:password@host1:3301','replicator:password@host2:3301'}  
}                                                                                    
box.schema.space.create('tester',{id=512, if_not_exists=true})                       
box.schema.user.grant('guest', 'read,write,execute', 'universe')                     
s=box.space.tester                                                                   
s:create_index('primary',{type='tree',parts={1,'unsigned'}})                         
box.schema.user.create('replicator',{password='password'})          
box.schema.user.grant('replicator','execute','role','replication')  
box.snapshot()                                                      
但是当我在主机1上运行时

tarantoolctl start tester
在2号旅社

tarantoolctl start tester
我发现这个配置文件创建了两个独立的tarantool,没有复制功能

如果我按如下所示更改host2的tester.lua,它将正常工作

box.cfg{                                                                             
  listen=3301,                                                                       
  custom_proc_title='tester',      
  memtx_memory=6442450944,                                                   
  replication={'replicator:password@host1:3301','replicator:password@host2:3301'}  
}                                                   

我想知道如何使用相同的配置文件?

自从复制以来,您不能使用相同的配置进行复制。您必须有单独的复制配置

以下是M-M复制示例(我喜欢用这种方式配置此功能):

-它已动态配置复制

-它具有静态配置的复制

我希望这有帮助