3 navsection: installguide
4 title: Configure S3 object storage
7 Copyright (C) The Arvados Authors. All rights reserved.
9 SPDX-License-Identifier: CC-BY-SA-3.0
12 Keepstore can store data in object storage compatible with the S3 API, such as Amazon S3, Google Cloud Storage, or Ceph RADOS.
14 h2. Configure keepstore
16 Copy the "access key" and "secret key" to files where they will be accessible to keepstore at startup time.
19 <pre><code>~$ <span class="userinput">sudo sh -c 'cat >/etc/arvados/keepstore/aws_s3_access_key.txt <<EOF'
20 zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz==
22 ~$ <span class="userinput">sudo chmod 0400 /etc/arvados/keepstore/aws_s3_access_key.txt</span>
26 Next, edit the @Volumes@ section of the @keepstore.yml@ config file.
28 h3. Example config for Amazon S3
32 - # The volume type, this indicates object storage compatible with the S3 API
35 # Storage provider. If blank, uses Amazon S3 by default.
36 # See below for example alternate configuration for Google cloud
40 # The bucket to use for the backing store.
41 Bucket: example-bucket-name
43 # The region where the bucket is located.
46 # The credentials to use to access the bucket.
47 AccessKeyFile: /etc/arvados/keepstore/aws_s3_access_key.txt
48 SecretKeyFile: /etc/arvados/keepstore/aws_s3_secret_key.txt
50 # Maximum time to wait making the initial connection to the backend before
51 # failing the request.
54 # Page size for s3 "list bucket contents" requests
57 # True if the region requires a LocationConstraint declaration
58 LocationConstraint: false
60 # Maximum eventual consistency latency
63 # If true, do not accept write or trash operations, only reads.
66 # Maximum time to wait for a complete response from the backend before
67 # failing the request.
70 # How much replication is performed by the underlying bucket.
71 # This is used to inform replication decisions at the Keep layer.
74 # Storage classes to associate with this volume. See
75 # "Storage classes" in the "Admin" section of doc.arvados.org.
78 # Enable deletion (garbage collection) even when TrashLifetime is
79 # zero. WARNING: eventual consistency may result in race conditions
80 # that can cause data loss. Do not enable this unless you know what
85 Start (or restart) keepstore, and check its log file to confirm it is using the new configuration.
87 h3. Example config for Google cloud storage
89 See previous section for documentation of configuration fields.
93 - # Example configuration using alternate storage provider
94 # Configuration for Google cloud storage
95 Endpoint: https://storage.googleapis.com
98 AccessKeyFile: /etc/arvados/keepstore/gce_s3_access_key.txt
99 SecretKeyFile: /etc/arvados/keepstore/gce_s3_secret_key.txt
100 Bucket: example-bucket-name
103 LocationConstraint: false
112 Start (or restart) keepstore, and check its log file to confirm it is using the new configuration.