Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Failover to other regions #88

Closed
skasturi opened this issue Feb 28, 2017 · 5 comments
Closed

Failover to other regions #88

skasturi opened this issue Feb 28, 2017 · 5 comments

Comments

@skasturi
Copy link
Member

Hello,
Does this SDK fail over to other Document DB replicated regions when one region is down?

Thanks,
Sasidhar.

@rnagpal
Copy link
Contributor

rnagpal commented Mar 8, 2017

@skasturi Failover is a service feature and not SDK feature. The only way you can trigger manual failover is through Azure portal. Automatic failover happens when your primary region is down.

If the failover happens, your client requests will automatically be directed to new primary, so no action needed from your end from SDK perspective.

Let me know if that answers your question.

@skasturi skasturi closed this as completed Mar 8, 2017
@skasturi
Copy link
Member Author

skasturi commented Mar 8, 2017

Yes. It does answer the question. I was confused with the documentation on Doc DB.

@rnagpal
Copy link
Contributor

rnagpal commented Mar 8, 2017

@skasturi Can you please point the documentation that confused you? If needed, we will fix it to avoid such confusion to others.

/cc: @mimig1

@skasturi
Copy link
Member Author

skasturi commented Mar 8, 2017

https://docs.microsoft.com/en-us/azure/documentdb/documentdb-regional-failovers

It says the following:

""" In the rare event of an Azure regional outage, DocumentDB automatically triggers failovers of all DocumentDB accounts with a presence in the affected region. """

  1. What happens if I have data in West US 2 and West Central US? Would it fail over or not? Its shows only across regions and is NOT clear.
  2. What happens if we do NOT have any preferred list?

@dennyglee
Copy link

Hi @skasturi

If you have data in West US 2 and West Central US, if there is a failure within West US 2 (which was set as your default write region) then DocumentDB automatically fails over to West Central US. Region in this case is in reference to the data centers (i.e. West US 2 and West Central US are separate regions).

As for the preferred list, when you setup geo-replication within DocumentDB, automatically there is a preferred list. Within the portal (for example), when you setup geo-replication (under the blade "Replicate Data Globally"), the priority list is set as you add regions. You can re-order them by clicking on "Failover Priorities" and setting the priorities in that dialog.

screen shot 2017-03-09 at 06 43 16

HTH!
Denny

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants