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