Comments (5)
@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.
Yes. It does answer the question. I was confused with the documentation on Doc DB.
from azure-cosmos-python.
@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.
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. """
- 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.
- What happens if we do NOT have any preferred list?
from azure-cosmos-python.
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.
HTH!
Denny
from azure-cosmos-python.
Related Issues (20)
- Query Partitioned Collection HOT 4
- Documentation outdated
- ChangeFeed gets all the history records instead of current record.
- How to send a query or stored procedure execution to a specific region/location ? HOT 1
- Documentation does not include how to create a database with provisioned throughput
- No method get_database_client in CosmosClient HOT 2
- pydocumentdb 2.3.5 install failed with homebrew HOT 3
- synchronized_request._Request is_media sniff bug HOT 1
- When can we expect 4.* release? HOT 2
- Documentation is broken due to bad doc string
- SQL queries with DISTINCT and ORDER BY does not work
- old version pydocumentdb source code is missing
- Missing information HOT 1
- SyntaxWarning: "is not" with a literal
- AttributeError: 'CosmosClient' object has no attribute 'ExecuteStoredProcedure' HOT 5
- Moving to a new repo HOT 2
- enable autoscaling for database HOT 1
- Using Python to connect to cosmosDB throws Authorization header doesn't confirm to the required format HOT 2
- Python SDK - Update Autoscale Throughput HOT 1
- This repo is missing important files HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-cosmos-python.