Automatically ading a server to a replication document

11 views
Skip to first unread message

Sean Farrow

unread,
Aug 28, 2014, 4:12:02 PM8/28/14
to rav...@googlegroups.com

Hi,

 

Is there a way to add a server to the replication document automatically?

Is there a class representing this document?

Any help appreciated.

Kind regards

Sean.

Kijana Woodard

unread,
Aug 28, 2014, 4:44:17 PM8/28/14
to rav...@googlegroups.com
I've never done it myself, but several non-devs were able to script this setting using curl, etc without asking questions. 
I guess I should have looked, but I had bigger fish to fry. :-D

Are you going to try and update the document piece by piece or are you going to always do a full replacement?
If this isn't in the docs, this would be a great PR.


--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Chris Marisic

unread,
Aug 28, 2014, 4:59:11 PM8/28/14
to rav...@googlegroups.com
Just remember gaining value out of sharding is difficult. You can't just blindly add servers and think it will all somehow work positively (unless you want to throw excessive amounts of hardware at a problem, then by all means you're just vertically scaling and there is always a vertical scale solution if money is unlimited).

Make sure you read about all the sharding articles on ayende's blog. I also believe MSNBC when they used RavenDB that they wrote their own tool for serverops that would allow them to add and pull servers off and deal with shard balances. That might provide you some key information.

And pretty much everything is ultimately a document so you would be able to load it and modify it. I don't know which document(s) specifically off hand would be relevant.

It's also possible that you will need to build into your applications a way to update the ShardStrategy while the app is hot since that looks pretty cooked in.

Oren Eini (Ayende Rahien)

unread,
Aug 28, 2014, 8:27:48 PM8/28/14
to ravendb
Yes, you can just edit the Raven/Replication/Destinations

Look at Raven.Abstractions.ReplicationDocument class for the model for this.



Oren Eini

CEO


Mobile: + 972-52-548-6969

Office:  + 972-4-622-7811

Fax:      + 972-153-4622-7811





--
Reply all
Reply to author
Forward
0 new messages