Giter Site home page Giter Site logo

Comments (5)

rnagpal avatar rnagpal commented on July 1, 2024

@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.

from azure-cosmos-python.

skasturi avatar skasturi commented on July 1, 2024

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

from azure-cosmos-python.

rnagpal avatar rnagpal commented on July 1, 2024

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

/cc: @mimig1

from azure-cosmos-python.

skasturi avatar skasturi commented on July 1, 2024

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?

from azure-cosmos-python.

dennyglee avatar dennyglee commented on July 1, 2024

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

from azure-cosmos-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.