Raven DB client API not able to make graceful connection with slave server when master is unavailable.
In my web application I am using Raven DB Client .NET API (NuGet package v 2.0.2261 ) to talk with Raven DB server(database).
I am following below steps with Master – Master replication
1) Host 2 Raven DB servers (A and B) in IIS.
2) Perform below steps on both server
a. Create database with expiration and replication bundle.
b. Create / Add windows Authentication user and assign database.
c. Create API Key.
d. Assign API Key to database.
e. Setup replication settings (Url, Client visible Url, database, domain and ApiKey).
Till here replication works fine (as observed from studio).
For scalability testing
a) Run application, observed documents got created/modified on server A are replicated on server B
b) Took down Raven DB server A (by stopping IIS App Pool)
c) Run application again. This time application not able to establish connection with Server B (as Server A is down). It throw exception “The remote server returned an error: (503) Server Unavailable.”
Raven.Abstractions.OAuth.SecuredAuthenticator.DoOAuthRequest(String oauthSource) in c:\Builds\RavenDB-Stable\Raven.Abstractions\OAuth\SecuredAuthenticator.cs:143
Please suggest what steps I am missing ?
Thanks
Satish
Satish
--
You received this message because you are subscribed to the Google Groups "ravendb" 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/groups/opt_out.