--- layout: default navsection: installguide title: Configuration file ... {% comment %} Copyright (C) The Arvados Authors. All rights reserved. SPDX-License-Identifier: CC-BY-SA-3.0 {% endcomment %} The configuration file is normally found at @/etc/arvados/config.yml@. This configuration file should be kept in sync across every node in the cluster, except compute nodes (which usually do not require config.yml). We recommend using a devops configuration management tool such as Puppet to synchronize the config file. h2. Syntax The configuration file is in "YAML":https://yaml.org/ format. This is a block syntax where indentation is significant (similar to Python). By convention we use two space indent. The first line of the file is always "Clusters:", underneath it at the first indent level is the cluster id. All the actual cluster configuration comes under the cluster id. This means all configuration parameters are indented by at least two levels (four spaces). Comments start with @#@ . Example
Clusters:                         # Clusters block, everything else is listed under this
  abcde:                          # Cluster ID
    ExampleConfigKey: "fghijk"    # An example configuration string for cluster 'abcde'
    ExampleConfigGroup:           # A group of keys
      ExampleDurationConfig: 12s  # Example duration
      ExampleSizeConfig: 99KiB    # Example with a size suffix
Each configuration group may only appear once. When a configuration key is within a config group, it will be written with the group name leading, for example @ExampleConfigGroup.ExampleSizeConfig@. Duration suffixes are s=seconds, m=minutes or h=hours. Size suffixes are K=10 ^3^, Ki=2 ^10^ , M=10 ^6^, Mi=2 ^20^, G=10 ^9^, Gi=2 ^30^, T=10 ^12^, Ti=2 ^40^, P=10 ^15^, Pi=2 ^50^, E=10 ^18^, Ei=2 ^60^. You can optionally follow with a "B" (eg "MB" or "MiB") for readability (it does not affect the units.) h2. Essential Configuration @SystemRootToken@ is used by Arvados system services to authenticate as the system (root) user when communicating with the API server. @ManagementToken@ is used to authenticate access to system metrics. @API.RailsSessionSecretToken@ is required by the API server. @Collections.BlobSigningKey@ is used to construct blob signatures, as part of storage layer access control. You can generate a random token for each of these items at the command line like this:
~$ tr -dc 0-9a-zA-Z </dev/urandom | head -c40; echo
Sample configuration file fragment. Fill in each configuration item with the tokens you generate.
Clusters:
  abcde:
    SystemRootToken: "$system_root_token"
    ManagementToken: "$management_token"
    API:
      RailsSessionSecretToken: "$secret_token"
    Collections:
      BlobSigningKey: "$blob_signing_key"
h2. Services The @Services@ section of the configuration helps Arvados components contact one another. Each service has one or more @InternalURLs@ and an @ExternalURL@. The @InternalURLs@ describe where the service actually runs. The @ExternalURL@ is how clients contact the service.
Clusters:
  abcde:
    Services:
      Controller:
        ExternalURL: "https://abcde.example.com"
        InternalURLs:
          "http://abcde.example.com:8000": {}
      RailsAPI:
        # Does not have an ExternalURL
        InternalURLs:
          "http://abcde.example.com:8001": {}