[QUERY] Accessing secondary site of RA-GRS storage account
See original GitHub issueQuery/Question
How can we read from the secondary site of a storage account configured using RA-GRS using the v12 SDK? Previous versions had awareness of the LocationMode
, but this version doesn’t appear to.
Why is this not a Bug or a feature Request? Request for information on how to do something that was possible in previous SDK versions (e.g. the sample here: https://github.com/Azure-Samples/storage-java-ha-ra-grs/blob/master/RAGRS/src/main/java/AzureApp/App.java)
Issue Analytics
- State:
- Created 3 years ago
- Comments:15 (9 by maintainers)
Top Results From Across the Web
Azure Storage - Data redundancy - Microsoft Learn
With GRS or GZRS, the data in the secondary region isn't available for read or write access unless there's a failover to the...
Read more >Read-Access Geo-Redundant Storage Accounts (RA-GRS)
Because GRS and RA-GRS Accounts are replicated asynchronously to the Secondary Region, data written to the Primary Region of the storage account will...
Read more >Accessing your geo-redundant endpoint - Cerebrata
Accessing the replicated data is done with the same credentials and API conventions, except that '-secondary' is appended to the subdomain for ...
Read more >Azure — Storage Replication Overview - Medium
Read-access Geo-redundant storage (RA-GRS) ... With GRS, your secondary region isn't available for read access until the primary region fails.
Read more >Azure Storage Account and its Complete Overview
Even loose files can be stored using services like Azure Files and Azure Blobs. What is Azure Storage Account? A storage account is...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I see. Thank you for sharing. As I said, I was just curious. And thank you again for bringing this to our attention.
It looks like we perhaps do need to update our builder logic. The request should be signed as though it is going to the primary, and we are simply using the url passed in, which is a secondary in your case. I’m not sure if we need to check if it’s a secondary and strip “-secondary” or request that customers still pass in the primary if they are passing in a secondary. We’ll have some discussion over here and figure out the best way to support this scenario.
@rickle-msft We’re trying to make use of RA-GRS, for example as outlined in https://docs.microsoft.com/en-us/azure/storage/common/storage-designing-ha-apps-with-ragrs but the SDK no longer supports LocationMode. In case of error on the primary, we don’t want to try all requests to the primary and let them fail before trying the secondary.