main.conf 3.79 KB
Newer Older
1
[MAIN]
2 3 4 5 6
#
# This is a default config file with values that are appropriate for all applications.
# Use a more specific config in real experiments or set options via command line.
# To see description of all options, run: `python bin/elasticslice.py -h`
#
7 8 9 10 11 12 13 14 15

#
# Use this URN as the default slice URN so you don't have to specify
# one every time.
#
slicename=
#
# Certificate and passphrase files.
#
16 17
cert=~/.ssl/encrypted.pem
passphrasefile=~/.ssl/password
18 19 20 21 22
#
# The CM targeted by default -- i.e., the cluster at which your
# nodes will be allocated by default.  Make sure your certificate
# will be accepted here.
#
23
default_cm=
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
#
# A certificate for the CM, so it can be verified.
#
cacert=
#
# A node type to use by default when adding nodes, or computing
# type-specific availability thresholds in the manager.
#
nodetype=c6220
#
# Use a simple cache to alleviate load on XMLRPC server.  Certain
# methods are very expensive (i.e., GetResources on the Emulab CM
# takes many seconds); and some return values are useful until they
# expire (i.e., credentials).
#
fscache=True
#
# The directory in which cache files are stored.
#
43
fscachedir=~/.protogeni/cache
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
#
# An image to use by default when adding nodes.
#
image_urn=

#
# DAEMON (AUTO-MANAGEMENT) MODE SETTINGS
#
# If `automanage` is True, the daemon's automatic manager thread
# will run immediately at program start and create, renew, and
# add/delete nodes to/from the slice as necessary, according to policy.
#
# If `autostart` is True, the client's internal XMLRPC server will
# be automatically started at program start as well.  This server
# accepts notifications from a daemon running at the CM.  For
# instance, the CM's daemon will notify this client of new
# server-side resource values, and also if/when it needs to reclaim
# elastically-added nodes from this slice.
#
# If you don't plan to run in daemon mode, set these to False.
#
automanage=False
autostart=False
#
# These options specify Python classes for the manager, helper, and
# clientserver endpoint.  The defaults are the SimpleElasticSlice*
# classes below; but of course you can extend or replace them.  Note
# that the SimpleElasticSliceManager also currently provides the
# clientserver endpoint interface; thus that option is unspecified.
#
manager_class=elasticslice.managers.core.SimpleElasticSliceManager
helper_class=elasticslice.managers.core.SimpleElasticSliceHelper
76
clientserver_endpoint_class=
77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
#
# These options provide several basic policy knobs to the
# SimpleElasticSlice* family of classes.  In management mode, the
# manager will always maintain at least `minthreshold` nodes in your
# slice, and will never add more than `maxthreshold` nodes.
# Furthermore, it will maintain the slice's allocation to respect
# the `percent_available_minimum` threshold, which is a minimum
# amount of free nodes to ensure are available at the CM.  In other
# words, the manager will continuously poll the amount of available
# nodes at the CM, and adjust its own allocation to ensure that
# there are at least `percent_available_minimum` percentage of free
# nodes at the CM.  That said, it will never reduce below the
# `minthreshold`, and never add nodes above the `maxthreshold`.
#
minthreshold=3
maxthreshold=10
percent_available_minimum=0.33
#
# If automatic manager deletion is enabled, wait at least this many
# seconds in between successive node deletions (removals of a node
# from your slice).
#
node_delete_wait_time=
#
# If True, the manager is allowed to automatically delete nodes.
#
enable_delete=False

105 106 107 108 109 110 111
#
# This option allows privileged users to invoke server-side
# development code (i.e., to test a new feature in the RPC
# implementation that isn't yet installed in the default RPC
# invocation path).  Don't set it unless instructed by a developer.
#
devuser=
112

113 114
server=
port=
115
nocerthostchecking=
116 117
username=
password=
118 119
ext_addr=
ext_port=