13647: Update Azure volume docs.
authorTom Clegg <tclegg@veritasgenetics.com>
Wed, 11 Sep 2019 18:42:42 +0000 (14:42 -0400)
committerTom Clegg <tclegg@veritasgenetics.com>
Wed, 11 Sep 2019 18:42:42 +0000 (14:42 -0400)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tclegg@veritasgenetics.com>

doc/_includes/_assign_volume_uuid.liquid
doc/install/configure-azure-blob-storage.html.textile.liquid

index 999d7d664395590df8276d98200ec3eaf3cd987d..cdd0f1a6dbd933d41d63083f419fe6ea8c42b79b 100644 (file)
@@ -4,4 +4,4 @@ Copyright (C) The Arvados Authors. All rights reserved.
 SPDX-License-Identifier: CC-BY-SA-3.0
 {% endcomment %}
 
-Note that each volume has a UUID, like "zzzzz-nyw5e-0123456789abcde". You assign these manually: replace "zzzzz" with your cluster ID, and replace "0123456789abcde" with an arbitrary string of alphanumerics. Once assigned, they should not be changed.
+Note that each volume has a UUID, like @zzzzz-nyw5e-0123456789abcde@. You assign these manually: replace @zzzzz@ with your cluster ID, and replace @0123456789abcde@ with an arbitrary string of 15 alphanumerics. Once assigned, UUIDs should not be changed.
index 8a0e7bfa077743b30329cd619ef4da6d1228c172..174cb6a9394f53dca60d35ff54e9dfd2bc1a8ba8 100644 (file)
@@ -17,9 +17,9 @@ Before starting the configuration of individual keepstore servers is good to hav
 
 Another decision is how many VMs should be running keepstore. For example there could be 8 VMs with one core each or one machine with 8 cores. Or anything in between. Assuming is the same cost for Cloud resources, there is always the benefit of distributing the risk of faulty VMs. The recommendation is to start with 2 VMs and expand in pairs. Having a minimum of 2 cores each. The total amount of VMs will be a function of the budget and the pipeline traffic to avoid saturation during periods of high usage. Standard D v3 family is a balanced choice, making Standard_D2_v3 the 2-core option
 
-There are many options for storage accounts. You can read details from Azure on their documentation https://docs.microsoft.com/en-us/azure/storage/common/storage-introduction. The type of storage and access tier will be a function of the budget and desired responsiveness. A balanced option is to have General-purpose Standard Storage account and use Blob storage, hot access tiers.
+There are many options for storage accounts. You can read details from Azure on their documentation "https://docs.microsoft.com/en-us/azure/storage/common/storage-introduction":https://docs.microsoft.com/en-us/azure/storage/common/storage-introduction. The type of storage and access tier will be a function of the budget and desired responsiveness. A balanced option is to have General-purpose Standard Storage account and use Blob storage, hot access tiers.
 
-Keepstore can be configure to reflect the level of underlaying redundancy the storage will have. This is call data replication option. For example LRS (Locally Redundant Storage) saves 3 copies of the data. There desired redundancy can be chosen at the keepstore layer or at the Storage Accunt layer. The decision where the redundancy will be done and the type of Storage Account data replication (LRS, ZRS, GRS and RA-GRS) has trade-offs. Please read more on https://docs.microsoft.com/en-us/azure/storage/common/storage-redundancy and decide what is best for your needs.
+Keepstore can be configure to reflect the level of underlaying redundancy the storage will have. This is call data replication option. For example LRS (Locally Redundant Storage) saves 3 copies of the data. There desired redundancy can be chosen at the keepstore layer or at the Storage Accunt layer. The decision where the redundancy will be done and the type of Storage Account data replication (LRS, ZRS, GRS and RA-GRS) has trade-offs. Please read more on "https://docs.microsoft.com/en-us/azure/storage/common/storage-redundancy":https://docs.microsoft.com/en-us/azure/storage/common/storage-redundancy and decide what is best for your needs.
 
 h2. Create a storage container
 
@@ -46,68 +46,83 @@ Note that Keepstore services may be configued to use multiple Azure Storage acco
 
 h2. Configure keepstore
 
-Copy the primary storage account key to a file where it will be accessible to keepstore at startup time.
-
-<notextile>
-<pre><code>~$ <span class="userinput">sudo sh -c 'cat &gt;/etc/arvados/keepstore/azure_storage_account_key.txt &lt;&lt;EOF'
-zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz==
-EOF</span>
-~$ <span class="userinput">sudo chmod 0400 /etc/arvados/keepstore/azure_storage_account_key.txt</span>
-</code></pre>
-</notextile>
-
-Next, edit the @Volumes@ section of the @keepstore.yml@ config file:
-
-<pre>
-Volumes:
-- # The volume type, this indicates Azure blob storage
-  Type: Azure
-
-  # How much replication is performed by the underlying container.
-  # This is used to inform replication decisions at the Keep layer.
-  AzureReplication: 3
-
-  # The storage container to use for the backing store.
-  ContainerName: exampleContainerName
-
-  # If true, do not accept write or trash operations, only reads.
-  ReadOnly: false
-
-  # Amount of time to wait for a response before failing the request
-  RequestTimeout: 2m0s
-
-  # The storage account name, used for authentication
-  StorageAccountName: exampleStorageAccountName
-
-  # The storage account secret key, used for authentication
-  StorageAccountKeyFile: /etc/arvados/keepstore/azure_storage_account_key.txt
-
-  # The cloud environment to use.  If blank, use the default cloud
-  # environment.  See below for an example of an alternate cloud environment.
-  StorageBaseURL: ""
-
-  # Storage classes to associate with this volume.  See "Storage
-  # classes" in the "Admin" section of doc.arvados.org.
-  StorageClasses: null
-
-- # Example configuration to use Azure China.
-  #
-  # The alternate cloud environment to use.
-  # Note that cloud environments are different from regions.  A
-  # cloud environment is an entirely separate instance of Azure with
-  # separate accounts, requiring separate credentials.
-  #
-  StorageBaseURL: core.chinacloudapi.cn
-  StorageAccountKeyFile: /etc/arvados/keepstore/azure_cn_storage_account_key.txt
-  StorageAccountName: cn-account-name
-  ContainerName: exampleChinaContainerName
-
-  # The rest are the same as above
-  Type: Azure
-  AzureReplication: 3
-  ReadOnly: false
-  RequestTimeout: 10m0s
-  StorageClasses: null
-</pre>
-
-Start (or restart) keepstore, and check its log file to confirm it is using the new configuration.
+Volumes are configured in the @Volumes@ section of the cluster configuration file.
+
+{% include 'assign_volume_uuid' %}
+
+<notextile><pre><code>Clusters:
+  <span class="userinput">uuid_prefix</span>:
+    Volumes:
+      <span class="userinput">uuid_prefix</span>-nyw5e-<span class="userinput">000000000000000</span>:
+        AccessViaHosts:
+          # This section determines which keepstore servers access the
+          # volume. In this example, keep0 has read/write access, and
+          # keep1 has read-only access.
+          #
+          # If the AccessViaHosts section is empty, all keepstore
+          # servers will have read/write access to the volume.
+          "http://keep0.zzzzz.example.com:25107/": {}
+          "http://keep1.zzzzz.example.com:25107/": {ReadOnly: true}
+
+        Driver: Azure
+        DriverParameters:
+          # Storage account name and secret key, used for
+          # authentication.
+          StorageAccountName: exampleStorageAccountName
+          StorageAccountKey: zzzzzzzzzzzzzzzzzzzzzzzzzz
+
+          # The cloud environment to use,
+          # e.g. "core.chinacloudapi.cn". Defaults to
+          # "core.windows.net" if blank or omitted.
+          StorageBaseURL: ""
+
+          # Storage container name.
+          ContainerName: exampleContainerName
+
+          # Time to wait for an upstream response before failing the
+          # request.
+          RequestTimeout: 10m
+
+          # Time to wait before retrying a failed "list blobs" Azure
+          # API call.
+          ListBlobsRetryDelay: 10s
+
+          # Maximum attempts at a "list blobs" Azure API call before
+          # giving up.
+          ListBlobsMaxAttempts: 12
+
+          # If non-zero, use multiple concurrent requests (each
+          # requesting MaxGetBytes bytes) when retrieving data. If
+          # zero or omitted, get the entire blob with one request.
+          #
+          # Normally this is zero but if you find that 4 small
+          # requests complete faster than a single large request, for
+          # example, you might set this to 16777216 (64 MiB รท 4).
+          MaxGetBytes: 0
+
+          # Time to wait for an unexpectedly empty blob to become
+          # non-empty. Azure's create-and-write operation is not
+          # atomic. The default value typically allows concurrent GET
+          # and PUT requests to succeed despite the race window.
+          WriteRaceInterval: 15s
+
+          # Time to wait between GET attempts while waiting for
+          # WriteRaceInterval to expire.
+          WriteRacePollTime: 1s
+
+        # How much replication is provided by the underlying storage
+        # container.  This is used to inform replication decisions at
+        # the Keep layer.
+        Replication: 3
+
+        # If true, do not accept write or trash operations, even if
+        # AccessViaHosts.*.ReadOnly is false.
+        #
+        # If false or omitted, enable write access (subject to
+        # AccessViaHosts.*.ReadOnly, where applicable).
+        ReadOnly: false
+
+        # Storage classes to associate with this volume.  See "Storage
+        # classes" in the "Admin" section of doc.arvados.org.
+        StorageClasses: null
+</code></pre></notextile>