ReverentGeek
unread,May 9, 2012, 11:35:53 AM5/9/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ravendb
We currently have two RavenDB servers in a master <--> master
configuration. The current Client API configuration is set to
AllowReadsFromSecondariesAndWritesToSecondaries so that if the primary
server goes down, clients will automatically fail over to the other
server. I have two questions:
1. From what I've read, FailoverBehavior.ReadFromAllServers will
utilize all available servers for reads, and writes go only to the
primary. Does the AllowReadsFromSecondariesAndWritesToSecondaries
option also utilize all available servers for reads? This would be
ideal for our scenario: automatic failover for writes and load
balancing for reads.
2. As I understand it, the client API connects to the primary server
and learns about the other secondaries from the primary. If the
primary fails, it knows what secondaries to try. However, what if the
client is restarted while the primary is down? Is there a way to let
the client know about the secondaries available as part of the
DocumentStore configuration?
Thanks!
David