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 As an alternative to local and network-attached POSIX filesystems, 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:
30 - # The volume type, this indicates object storage compatible with the S3 API
33 # Storage provider (blank uses Amazon S3 by default)
36 # The bucket to use for the backing store.
37 Bucket: example-bucket-name
39 # The region where the bucket is located.
42 # The credentials to use to access the bucket.
43 AccessKeyFile: /etc/arvados/keepstore/aws_s3_access_key.txt
44 SecretKeyFile: /etc/arvados/keepstore/aws_s3_secret_key.txt
46 # Maximum time to wait making the initial connection to the backend before
47 # failing the request.
50 # Page size for s3 "list bucket contents" requests
53 # True if the region requires a LocationConstraint declaration
54 LocationConstraint: false
56 # Maximum eventual consistency latency
59 # If true, do not accept write or trash operations, only reads.
62 # Maximum time to wait for a complete response from the backend before
63 # failing the request.
66 # How much replication is performed by the underlying bucket.
67 # This is used to inform replication decisions at the Keep layer.
70 # Storage classes to associate with this volume. See "Configuring
71 # storage classes" in the "Admin" section of doc.arvados.org.
74 # Enable deletion (garbage collection) even when TrashLifetime is
75 # zero. WARNING: eventual consistency may result in race conditions
76 # that can cause data loss. Do not enable this unless you know what
80 - # Example configuration using alternate storage provider
81 # Configuration for Google cloud storage
82 Endpoint: https://storage.googleapis.com
85 AccessKeyFile: /etc/arvados/keepstore/gce_s3_access_key.txt
86 SecretKeyFile: /etc/arvados/keepstore/gce_s3_secret_key.txt
87 Bucket: example-bucket-name
90 LocationConstraint: false
99 Start (or restart) keepstore, and check its log file to confirm it is using the new configuration.