Raven DB 复制设置问题
任何人都可以帮助我设置 Raven DB 复制吗?尝试了很多 花了很多时间但没有成功。
故事是这样的:
1)我下载了 raven 包。复印一份。跑步 这两个文件夹中的 Raven.Server.Exe。两个实例都运行 在单个端口上成功。然后我创建了一个名为 作为“Raven/Replication/Destinations”并记录为
{ "目的地": [{"Url":"http://vishal-pc:8081"}], "Id": "Raven/复制/目的地" 但
它不起作用。请有人放一些光,不,我怎样才能 设置复制。
我想在这里提到的另一件事是,我能够运行 通过从样本/运行“start raven.ps1”进行复制 Raven.Sample.Replication 来自捆绑包。两个实例都已拥有 Raven/Replication/Destinations”文档如下所示(没有 url 目标节点): { “目的地”:[], "Id": "Raven/复制/目的地" 然后
我用另一个实例的 url 更新了一个实例。后 更新文档如下: { “目的地”:[“网址”:“http://vishal-pc:8081”], "Id": "Raven/复制/目的地" 并且
复制效果非常好。
我无法弄清楚这里有什么区别。为什么不是 当我分别运行两个实例时能够复制以及为什么会这样 运行“start raven.ps1”工作正常。
请有人在这里放一些光。
注意:我正在使用网络界面来更改文档。
谢谢 维沙尔
Can any one help me in setting up Raven DB Replication? Tried a lot of
ways a lot of time but no success.
Here is the story:
1) I downloaded the raven bundle. Make a copy of it. Run
Raven.Server.Exe from both of the folders. Both instances run
successfully on individual port. Then I created a document with name
as "Raven/Replication/Destinations" and document as
{
"Destinations": [{"Url":"http://vishal-pc:8081"}],
"Id": "Raven/Replication/Destinations"
}
But it's not working. Please some one put some light no How can I
setup replication.
One more thing I want to mention here is, I was able to run the
replication by running "start raven.ps1" from samples/
Raven.Sample.Replication from bundle.Both instances are already has
the Raven/Replication/Destinations" document like below (no url in
destination node):
{
"Destinations": [],
"Id": "Raven/Replication/Destinations"
}
Then I updated one instance with url of another instance. After
updating document was like below:
{
"Destinations": ["Url":"http://vishal-pc:8081"],
"Id": "Raven/Replication/Destinations"
}
and replication works fantastically.
I am not able to figure out what is the difference here. Why It's not
able to replication When I run two instances separately and why it is
working fine by running "start raven.ps1".
Please please please some one put some light here.
Note : I am using web interface to make changes in document.
Thanks
Vishal
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看您正在执行的 Raven.Server.exe 文件的文件夹。确保您有一个名为
Plugins
的子目录,并且它包含复制捆绑包 DLL。这篇博文将引导您完成整个过程这个过程相当顺利。
Look in the folder of the Raven.Server.exe file you are executing. Make sure you have a subdirectory called
Plugins
and that it contains the replication bundle DLL.This blog post walks you through that process pretty well.