Hibernating Rhinos Ltd
Oren Eini l CEO l Mobile: + 972-52-548-6969
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811
--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+u...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
var store = new DocumentStore { Url = "http://foo-domain:8080" };
store.DefaultDatabase = "TestDb";
store.Initialize();
store.Conventions.FailoverBehavior = FailoverBehavior.ReadFromAllWriteToLeaderWithFailovers;
var sw = new Stopwatch();
sw.Start();
while (true)
{
using (var session = store.OpenSession())
using (var repository = new SystemRepository(session, new DateTimeService()))
{
try
{
Console.WriteLine(store.Conventions.FailoverBehavior + " Running for " + sw.ElapsedMilliseconds/1000 + " CurrentTradeDate: " + repository.GetCurrentTradeDate());
}
catch (Exception e)
{
Console.WriteLine(e.Message);
}
Thread.Sleep(500);
}
}
clusterAwareRequestExecuter.UpdateTopology(this, new OperationMetadata(Url, PrimaryCredentials, topology.ClusterInformation), topology, serverHash, prevLeader);
// when the leader is not responsive to its follower but clients may still communicate to the leader node we have // a problem, we will send requests to the leader and they will fail, we must fetch the topology from all nodes // to make sure we have the latest one, since our primary may be a non-responsive leader.
await clusterAwareRequestExecuter.UpdateReplicationInformationIfNeededAsync(this, force: force).ConfigureAwait(false);
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
var store = new DocumentStore { Url = "http://raven-node-1.fex-sydney.local:8080" }; store.DefaultDatabase = "TestDb"; store.Initialize(); store.Conventions.TimeToWaitBetweenReplicationTopologyUpdates = TimeSpan.FromSeconds(30);
var sw = new Stopwatch(); sw.Start(); while (true) { using (var session = store.OpenSession())
{ Console.WriteLine(DateTime.Now + " " + session.Load<Alerts>("Raven/Alerts")); Thread.Sleep(1000); } }
var majorityOfNodesAgreeThereIsLeader = Nodes.Count == 1 || hasLeaderCount > (newestTopology?.Task.Result.Destinations.Count + 1) / 2;
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
i dont know how they did this as they did not go in and manually change the replication settings.
sorry about the hassles - well i had a nice tour of your source code for half a day...
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.