-
Notifications
You must be signed in to change notification settings - Fork 69
Expand file tree
/
Copy pathconfig-second.toml
More file actions
238 lines (209 loc) · 9.53 KB
/
config-second.toml
File metadata and controls
238 lines (209 loc) · 9.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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
76
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
#
# Example configuration file for running a second Nexus instance locally
# alongside the stack started by `omicron-dev run-all`. See the
# how-to-run-simulated instructions for details.
#
################################################################################
# INSTRUCTIONS: To run Nexus against an existing stack started with #
# `omicron-dev run-all`, see the very bottom of this file. #
################################################################################
[console]
# Directory for static assets. Absolute path or relative to CWD.
static_dir = "out/console-assets"
session_idle_timeout_minutes = 480 # 8 hours
session_absolute_timeout_minutes = 1440 # 24 hours
# List of authentication schemes to support.
[authn]
schemes_external = ["session_cookie", "access_token", "scim_token"]
[log]
# Show log messages of this level and more severe
level = "info"
# Example output to a terminal (with colors)
mode = "stderr-terminal"
# Example output to a file, appending if it already exists.
#mode = "file"
#path = "logs/server.log"
#if_exists = "append"
# Configuration for interacting with the timeseries database
[timeseries_db]
address = "[::1]:8123"
[deployment]
# Identifier for this instance of Nexus
id = "a4ef738a-1fb0-47b1-9da2-4919c7ec7c7f"
rack_id = "c19a698f-c6f9-4a17-ae30-20d711b8f7dc"
# Since we expect to be the second instance of Nexus running on this system,
# pick any available port.
techport_external_server_port = 0
# Nexus may need to resolve external hosts (e.g. to grab IdP metadata).
# These are the DNS servers it should use.
external_dns_servers = ["1.1.1.1", "9.9.9.9"]
[deployment.dropshot_external]
# IP Address and TCP port on which to listen for the external API
# This config file uses 12222 to avoid colliding with the usual 12220 that's
# used by `omicron-dev run-all`
bind_address = "127.0.0.1:12222"
default_request_body_max_bytes = 1048576
# To have Nexus's external HTTP endpoint use TLS, uncomment the line below. You
# will also need to provide an initial TLS certificate during rack
# initialization. If you're using this config file, you're probably running a
# simulated system. In that case, the initial certificate is provided to the
# simulated sled agent (acting as RSS) via command-line arguments.
#tls = true
[deployment.dropshot_internal]
# IP Address and TCP port on which to listen for the internal API
# This config file uses 12223 to avoid colliding with the usual 12221 that's
# used by `omicron-dev run-all`
bind_address = "[::1]:12223"
default_request_body_max_bytes = 1048576
[deployment.dropshot_lockstep]
# IP Address and TCP port on which to listen for the lockstep API
# This config file uses 12233 to avoid colliding with the usual 12232 that's
# used by `omicron-dev run-all`
bind_address = "[::1]:12233"
default_request_body_max_bytes = 1048576
#[deployment.internal_dns]
## These values are overridden at the bottom of this file.
#type = "from_address"
#address = "[::1]:3535"
#[deployment.database]
## These values are overridden at the bottom of this file.
#type = "from_url"
#url = "postgresql://root@[::1]:32221/omicron?sslmode=disable"
# Tunable configuration parameters, for testing or experimentation
[tunables]
# The maximum allowed prefix (thus smallest size) for a VPC Subnet's
# IPv4 subnetwork. This size allows for ~60 hosts.
max_vpc_ipv4_subnet_prefix = 26
# Configuration for interacting with the dataplane daemon
[dendrite.switch0]
address = "[::1]:12224"
[background_tasks]
dns_internal.period_secs_config = 60
dns_internal.period_secs_servers = 60
dns_internal.period_secs_propagation = 60
dns_internal.max_concurrent_server_updates = 5
dns_external.period_secs_config = 60
dns_external.period_secs_servers = 60
dns_external.period_secs_propagation = 60
dns_external.max_concurrent_server_updates = 5
metrics_producer_gc.period_secs = 60
# How frequently we check the list of stored TLS certificates. This is
# approximately an upper bound on how soon after updating the list of
# certificates it will take _other_ Nexus instances to notice and stop serving
# them (on a sunny day).
external_endpoints.period_secs = 60
nat_cleanup.period_secs = 30
bfd_manager.period_secs = 30
# How frequently to check for a new inventory collection (made by any Nexus).
# This is cheap, so we should check frequently.
inventory.period_secs_load = 15
# How frequently to collect hardware/software inventory from the whole system
# (even if we don't have reason to believe anything has changed).
inventory.period_secs_collect = 600
# Maximum number of past collections to keep in the database
inventory.nkeep = 5
# Disable inventory collection altogether (for emergencies)
inventory.disable_collect = false
phantom_disks.period_secs = 30
physical_disk_adoption.period_secs = 30
support_bundle_collector.period_secs = 30
decommissioned_disk_cleaner.period_secs = 60
blueprints.period_secs_load = 10
blueprints.period_secs_plan = 60
blueprints.period_secs_execute = 60
blueprints.period_secs_rendezvous = 300
blueprints.period_secs_collect_crdb_node_ids = 180
blueprints.period_secs_load_reconfigurator_config = 5
sync_service_zone_nat.period_secs = 30
switch_port_settings_manager.period_secs = 30
region_replacement.period_secs = 30
region_replacement_driver.period_secs = 30
# How frequently to query the status of active instances.
instance_watcher.period_secs = 30
# How frequently to schedule new instance update sagas.
instance_updater.period_secs = 30
# How frequently to attempt to restart Failed instances?
instance_reincarnation.period_secs = 60
service_firewall_propagation.period_secs = 300
v2p_mapping_propagation.period_secs = 30
abandoned_vmm_reaper.period_secs = 60
saga_recovery.period_secs = 600
lookup_region_port.period_secs = 60
region_snapshot_replacement_start.period_secs = 30
region_snapshot_replacement_garbage_collection.period_secs = 30
region_snapshot_replacement_step.period_secs = 30
region_snapshot_replacement_finish.period_secs = 30
tuf_artifact_replication.period_secs = 300
tuf_artifact_replication.min_sled_replication = 1
tuf_repo_pruner.period_secs = 300
# How many extra recent target releases to keep
# The system always keeps two: the current release and the previous one.
# This number is in addition to that.
tuf_repo_pruner.nkeep_extra_target_releases = 1
# How many extra recently uploaded repos to keep
# The system always keeps one, assuming that the operator may be about to
# update to it. This number is in addition to that.
tuf_repo_pruner.nkeep_extra_newly_uploaded = 1
# In general, the webhook dispatcher will be activated when events are queued,
# so we don't need to periodically activate it *that* frequently.
alert_dispatcher.period_secs = 60
webhook_deliverator.period_secs = 60
read_only_region_replacement_start.period_secs = 30
sp_ereport_ingester.period_secs = 30
# How frequently to check for a new fault management sitrep (made by any
# Nexus).
# This is cheap, so we should check frequently.
fm.sitrep_load_period_secs = 15
# Sitrep GC, on the other hand, does not need to be activated very frequently,
# as it does not impact the responsiveness of the fault management system, and
# is activated every time the current sitrep changes. Periodic activations are
# only necessary to ensure that it always happens eventually.
fm.sitrep_gc_period_secs = 600
probe_distributor.period_secs = 60
multicast_reconciler.period_secs = 60
# TTL for sled-to-backplane-port mapping cache
# Default: 3600 seconds (1 hour) - detects new sleds and inventory changes
# multicast_reconciler.sled_cache_ttl_secs = 3600
# TTL for backplane topology cache (static platform configuration)
# Default: 86400 seconds (24 hours) - refreshed on-demand when validation fails
# multicast_reconciler.backplane_cache_ttl_secs = 86400
trust_quorum.period_secs = 60
[default_region_allocation_strategy]
# allocate region on 3 random distinct zpools, on 3 random distinct sleds.
type = "random_with_distinct_sleds"
# the same as random_with_distinct_sleds, but without requiring distinct sleds
# type = "random"
# setting `seed` to a fixed value will make dataset selection ordering use the
# same shuffling order for every region allocation.
# seed = 0
[omdb]
# In production omdb is shipped alongside Nexus in its zone; this doesn't happen
# (and isn't needed) in simulated environments.
bin_path = "/cannot/fetch/omdb/in/simulated/environments"
################################################################################
# INSTRUCTIONS: To run Nexus against an existing stack started with #
# `omicron-dev run-all`, you should only have to modify values in this #
# section. #
# #
# Modify the port numbers below based on the output of `omicron-dev run-all` #
################################################################################
[mgd]
# Look for "management gateway: http://[::1]:49188 (switch0)"
# The "http://" does not go in this string -- just the socket address.
switch0.address = "[::1]:49188"
# Look for "management gateway: http://[::1]:39352 (switch1)"
# The "http://" does not go in this string -- just the socket address.
switch1.address = "[::1]:39352"
[deployment.internal_dns]
# Look for "internal DNS: [::1]:54025"
# and adjust the port number below.
address = "[::1]:54025"
# You should not need to change this.
type = "from_address"
[deployment.database]
# Look for "cockroachdb URL: postgresql://root@[::1]:43256/omicron?sslmode=disable"
# and adjust the port number below.
url = "postgresql://root@[::1]:43256/omicron?sslmode=disable"
# You should not need to change this.
type = "from_url"
################################################################################