Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

RavenDB Replication Setup Basics

Can someone explain the basic steps of setting up replication for RavenDB? I'm using build 888. From what I've found online, I can guess at what might need to be done, but I'd rather know for sure.

I believe this is the official documentation for replication: http://ravendb.net/docs/server/bundles/replication

First, that documentation states:

"Raven replication can be enabled by dropping the Raven.Bundles.Replication.dll to Raven's Plugins directory."

I see that DLL in the Bundles folder, but there is no Plugins folder. Am I supposed to create that? Should it already be there?

It looks like we need to do this to specify the replication servers:

enter image description here

What is that? Do I need to actually save this document to the database? Or is that in a config file on the file system somewhere? If I need to write that to the DB, do I just put that in my application and have it run the first time? Every time?

If these questions can get answered, I may have the basic info to get started. Then maybe I could blog, step-by-step, as a tutorial.

like image 592
Bob Horn Avatar asked Oct 09 '22 03:10

Bob Horn


1 Answers

Bob, yes you need to put the dll from the Bundles folder of your raven root directory into the Plugins folder, which is - by default - under the Server folder. You can, however, change that location with an app.config setting if you want.

Raven/Replication/Destinations is actually the id of the document that you need to create in order to tell ravendb the urls of the other servers in the replication cluster. Replication is truly an infrastructure concern, so I wouldn't put this document by your application at all - instead, I'd create this document by management studio on my own, which is what I suggest to you.

like image 161
Daniel Lang Avatar answered Oct 12 '22 11:10

Daniel Lang