Home | History | Annotate | Download | only in puppylab
      1 # Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
      2 # Use of this source code is governed by a BSD-style license that can be
      3 # found in the LICENSE file.
      4 
      5 """Manifest of settings for the test lab created via clusterctl.
      6 
      7 This module contains datastructures clusterctl uses to create a test cluster:
      8 1. Ports:
      9     - master_afe_port: The port on which the master afe is listening
     10             for heartbeats. Autocorrection of ports on collision is
     11             currently an experimental feature, so freeing up the
     12             specified port is more reliable.
     13     - shards_base_port: The base port from which to assign ports to
     14             shards. The afe on shards does not __need__ to be exposed.
     15             It is useful for debugging, and a link to their afes will
     16             show up on the host page of hosts sent to shards on the
     17             master frontend.
     18     - vm_host_name: Prepended to the specified ports to discover
     19             cluster services. For example, with a hostname like
     20             'abc' the shards will do their heartbeat against
     21             'abc:master_afe_port'.
     22 2. Shards: A list of boards for which to create shards. Note
     23     that currently to add a new shard you will have to perform 3 steps:
     24     - Add a new shard to this list
     25     - Copy the existing shard section in the ClusterTemplate
     26     - Pass num_shards=num_shards+1 to clusterctl
     27     Automating this process is a wip.
     28 """
     29 
     30 # The port on which the master afe appears on.
     31 master_afe_port = 8001
     32 # Shards will have their afes listening on base_port + shard number.
     33 shards_base_port = 8003
     34 # Hostname of the vm host (generally your desktop).
     35 vm_host_name = 'localhost'
     36 # Boards for which to create shards.
     37 shards = ['board:stumpy']
     38