Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

For Azure, support multiple storage accounts and secondary endpoints (which are readonly) #13228

Closed
wants to merge 1 commit into from

Commits on Aug 31, 2015

  1. Port changes in https://github.com/craigwi/elasticsearch-cloud-azure

    …to ES master.
    
    Enhancements as discussed on https://github.com/craigwi/elasticsearch-cloud-azure/releases/tag/v2.7.1-craigwi:
    
    1.supports multiple storage accounts; cloud.azure.storage.account and cloud.azure.storage.key may now be an array of accounts / keys; the arrays must be the same length; the account at an index must match the key at the same index.
    
    2.an Azure repository specification ("type" : "azure") allows for two new settings. "account" specifies the name of the account to be used and must be one of the items in cloud.azure.storage.account. If "account" is not specified, the first item in the list of accounts is used. The other new setting "location_mode" may be used to specify the endpoint. This defaults to "primary_only" and may also be "primary_then_secondary", "secondary_only" or "secondary_then_primary".
    
    3.when a repository is registered using "secondary_only" or "secondary_then_primary" as the "location_mode", the verification of the repository is limited to checking that the container specified exists; in particular the tests-* files are not created because the secondary endpoint is read only.
    
    NOTE: for a given storage account, only one location_mode can be active at a time.
    
    An example showing settings in elasticsearch.yml:
    
    cloud.azure.storage.account: [ "azstorageaccount1", "mystorage2" ]
    cloud.azure.storage.key: [ "", "" ]
    
    A sample repository specification using the secondary endpoint:
    
    { "type": "azure", "settings": { "account" : "mystorage2", "container": "snapshots-20150701",
     "location_mode": "secondary_only"}}
    craigwi committed Aug 31, 2015
    Configuration menu
    Copy the full SHA
    8964b6d View commit details
    Browse the repository at this point in the history