X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/ef11ca4b86beb111acb6a99d4eadbc7b0a0d27ef..10d70a1c08984a699ac3f6b893fe6d2141c5ad9e:/doc/install/configure-azure-blob-storage.html.textile.liquid diff --git a/doc/install/configure-azure-blob-storage.html.textile.liquid b/doc/install/configure-azure-blob-storage.html.textile.liquid index 92deea3683..8a0e7bfa07 100644 --- a/doc/install/configure-azure-blob-storage.html.textile.liquid +++ b/doc/install/configure-azure-blob-storage.html.textile.liquid @@ -3,12 +3,25 @@ layout: default navsection: installguide title: Configure Azure Blob storage ... +{% comment %} +Copyright (C) The Arvados Authors. All rights reserved. -As an alternative to local and network-attached POSIX filesystems, Keepstore can store data in an Azure Storage container. +SPDX-License-Identifier: CC-BY-SA-3.0 +{% endcomment %} -h2. Create a container +Keepstore can store data in one or more Azure Storage containers. -Normally, all keepstore services are configured to share a single Azure Storage container. +h2. Set up VMs and Storage Accounts + +Before starting the configuration of individual keepstore servers is good to have an idea of the keepstores servers' final layout. One key decision is the amount of servers and type of VM to run. Azure may change over time the bandwith capacity of each type. After conducting some empirical saturation tests, the conclusion was that the bandwith is proportional to the amount of cores with some exceptions. As a rule of thumb, is better to invest resources in more cores instead of memory or IOps. + +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. + +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. + +h2. Create a storage container Using the Azure web portal or command line tool, create or choose a storage account with a suitable redundancy profile and availability region. Use the storage account keys to create a new container. @@ -16,47 +29,85 @@ Using the Azure web portal or command line tool, create or choose a storage acco
~$ azure config mode arm
~$ azure login
~$ azure group create exampleGroupName eastus
-~$ azure storage account create --type LRS --location eastus --resource-group exampleGroupName exampleAccountName
-~$ azure storage account keys list --resource-group exampleGroupName exampleAccountName
+~$ azure storage account create --type LRS --location eastus --resource-group exampleGroupName exampleStorageAccountName
+~$ azure storage account keys list --resource-group exampleGroupName exampleStorageAccountName
info: Executing command storage account keys list
+ Getting storage account keys
data: Primary: zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz==
data: Secondary: yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy==
info: storage account keys list command OK
-~$ AZURE_STORAGE_ACCOUNT="exampleAccountName" \
+~$ AZURE_STORAGE_ACCOUNT="exampleStorageAccountName" \
AZURE_STORAGE_ACCESS_KEY="zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz==" \
azure storage container create exampleContainerName
+Note that Keepstore services may be configued to use multiple Azure Storage accounts and multiple containers within a storage account.
+
h2. Configure keepstore
Copy the primary storage account key to a file where it will be accessible to keepstore at startup time.
~$ sudo sh -c 'cat >/etc/sv/keepstore/exampleAccountName.key <<EOF'
+~$ sudo sh -c 'cat >/etc/arvados/keepstore/azure_storage_account_key.txt <<EOF'
zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz==
EOF
-~$ sudo chmod 0400 /etc/sv/keepstore/exampleAccountName.key
+~$ sudo chmod 0400 /etc/arvados/keepstore/azure_storage_account_key.txt
#!/bin/sh
+
+Volumes:
+- # The volume type, this indicates Azure blob storage
+ Type: Azure
-exec 2>&1
-exec keepstore \
- -azure-storage-account-key-file /etc/sv/keepstore/exampleAccountName.key \
- -azure-storage-account-name exampleAccountName \
- -azure-storage-container-volume exampleContainerName
-
-2015/10/26 21:06:24 Using volume azure-storage-container:"exampleContainerName" (writable=true)
-
-