8784: Fix test for latest firefox.
[arvados.git] / services / nodemanager / tests / fake.cfg.template
1 # Azure configuration for Arvados Node Manager.
2 # All times are in seconds unless specified otherwise.
3
4 [Manage]
5 # The management server responds to http://addr:port/status.json with
6 # a snapshot of internal state.
7
8 # Management server listening address (default 127.0.0.1)
9 #address = 0.0.0.0
10
11 # Management server port number (default -1, server is disabled)
12 #port = 8989
13
14 [Daemon]
15 # The dispatcher can customize the start and stop procedure for
16 # cloud nodes.  For example, the SLURM dispatcher drains nodes
17 # through SLURM before shutting them down.
18 #dispatcher = slurm
19
20 # Node Manager will ensure that there are at least this many nodes running at
21 # all times.  If node manager needs to start new idle nodes for the purpose of
22 # satisfying min_nodes, it will use the cheapest node type.  However, depending
23 # on usage patterns, it may also satisfy min_nodes by keeping alive some
24 # more-expensive nodes
25 min_nodes = 0
26
27 # Node Manager will not start any compute nodes when at least this
28 # many are running.
29 max_nodes = 8
30
31 # Upper limit on rate of spending (in $/hr), will not boot additional nodes
32 # if total price of already running nodes meets or exceeds this threshold.
33 # default 0 means no limit.
34 max_total_price = 0
35
36 # Poll Azure nodes and Arvados for new information every N seconds.
37 poll_time = 5
38
39 # Polls have exponential backoff when services fail to respond.
40 # This is the longest time to wait between polls.
41 max_poll_time = 300
42
43 # If Node Manager can't succesfully poll a service for this long,
44 # it will never start or stop compute nodes, on the assumption that its
45 # information is too outdated.
46 poll_stale_after = 600
47
48 # If Node Manager boots a cloud node, and it does not pair with an Arvados
49 # node before this long, assume that there was a cloud bootstrap failure and
50 # shut it down.  Note that normal shutdown windows apply (see the Cloud
51 # section), so this should be shorter than the first shutdown window value.
52 boot_fail_after = 45
53
54 # "Node stale time" affects two related behaviors.
55 # 1. If a compute node has been running for at least this long, but it
56 # isn't paired with an Arvados node, do not shut it down, but leave it alone.
57 # This prevents the node manager from shutting down a node that might
58 # actually be doing work, but is having temporary trouble contacting the
59 # API server.
60 # 2. When the Node Manager starts a new compute node, it will try to reuse
61 # an Arvados node that hasn't been updated for this long.
62 node_stale_after = 14400
63
64 # Scaling factor to be applied to nodes' available RAM size. Usually there's a
65 # variable discrepancy between the advertised RAM value on cloud nodes and the
66 # actual amount available.
67 # If not set, this value will be set to 0.95
68 node_mem_scaling = 0.95
69
70 # File path for Certificate Authorities
71 certs_file = /etc/ssl/certs/ca-certificates.crt
72
73 [Logging]
74 # Log file path
75 #file = node-manager.log
76
77 # Log level for most Node Manager messages.
78 # Choose one of DEBUG, INFO, WARNING, ERROR, or CRITICAL.
79 # WARNING lets you know when polling a service fails.
80 # INFO additionally lets you know when a compute node is started or stopped.
81 level = DEBUG
82
83 # You can also set different log levels for specific libraries.
84 # Pykka is the Node Manager's actor library.
85 # Setting this to DEBUG will display tracebacks for uncaught
86 # exceptions in the actors, but it's also very chatty.
87 pykka = WARNING
88
89 # Setting apiclient to INFO will log the URL of every Arvados API request.
90 apiclient = WARNING
91
92 [Arvados]
93 host = {host}
94 token = {token}
95 timeout = 15
96 jobs_queue = no
97
98 # Accept an untrusted SSL certificate from the API server?
99 insecure = yes
100
101 [Cloud]
102 provider = azure
103 driver_class = {driver_class}
104
105 # Shutdown windows define periods of time when a node may and may not be shut
106 # down.  These are windows in full minutes, separated by commas.  Counting from
107 # the time the node is booted, the node WILL NOT shut down for N1 minutes; then
108 # it MAY shut down for N2 minutes; then it WILL NOT shut down for N3 minutes;
109 # and so on.  For example, "20, 999999" means the node may shut down between
110 # the 20th and 999999th minutes of uptime.
111 # Azure bills by the minute, so it makes sense to agressively shut down idle
112 # nodes.  Specify at least two windows.  You can add as many as you need beyond
113 # that.
114 shutdown_windows = 1, 999999
115
116 [Cloud Credentials]
117 # Use "azure account list" with the azure CLI to get these values.
118 tenant_id = 00000000-0000-0000-0000-000000000000
119 subscription_id = 00000000-0000-0000-0000-000000000000
120
121 # The following directions are based on
122 # https://azure.microsoft.com/en-us/documentation/articles/resource-group-authenticate-service-principal/
123 #
124 # azure config mode arm
125 # azure ad app create --name "<Your Application Display Name>" --home-page "<https://YourApplicationHomePage>" --identifier-uris "<https://YouApplicationUri>" --password <Your_Password>
126 # azure ad sp create "<Application_Id>"
127 # azure role assignment create --objectId "<Object_Id>" -o Owner -c /subscriptions/<subscriptionId>/
128 #
129 # Use <Application_Id> for "key" and the <Your_Password> for "secret"
130 #
131 key = 00000000-0000-0000-0000-000000000000
132 secret = PASSWORD
133 timeout = 60
134 region = East US
135
136 [Cloud List]
137 # The resource group in which the compute node virtual machines will be created
138 # and listed.
139 ex_resource_group = ArvadosResourceGroup
140
141 [Cloud Create]
142 # The image id, in the form "Publisher:Offer:SKU:Version"
143 image = Canonical:UbuntuServer:14.04.3-LTS:14.04.201508050
144
145 # Path to a local ssh key file that will be used to provision new nodes.
146 ssh_key = {ssh_key}
147
148 # The account name for the admin user that will be provisioned on new nodes.
149 ex_user_name = arvadosuser
150
151 # The Azure storage account that will be used to store the node OS disk images.
152 ex_storage_account = arvadosstorage
153
154 # The virtual network the VMs will be associated with.
155 ex_network = ArvadosNetwork
156
157 # Optional subnet of the virtual network.
158 #ex_subnet = default
159
160 # Node tags
161 tag_arvados-class = dynamic-compute
162 tag_cluster = zyxwv
163
164 # the API server to ping
165 ping_host = {host}
166
167 # You can define any number of Size sections to list Azure sizes you're willing
168 # to use.  The Node Manager should boot the cheapest size(s) that can run jobs
169 # in the queue.  You must also provide price per hour as the Azure driver
170 # compute currently does not report prices.
171 #
172 # See https://azure.microsoft.com/en-us/pricing/details/virtual-machines/
173 # for a list of known machine types that may be used as a Size parameter.
174 #
175 # Each size section MUST define the number of cores are available in this
176 # size class (since libcloud does not provide any consistent API for exposing
177 # this setting).
178 # You may also want to define the amount of scratch space (expressed
179 # in GB) for Crunch jobs.  You can also override Microsoft's provided
180 # data fields by setting them here.
181
182 [Size Standard_D3]
183 cores = 4
184 price = 0.56
185
186 [Size Standard_D4]
187 cores = 8
188 price = 1.12