Skip to content

Commit 47aa2a9

Browse files
authored
[nexus] Auto-update schema on boot (#9030)
Fixes #8912 Should be merged after the rest of Nexus quiesce/handoff is complete.
1 parent cd9b6f1 commit 47aa2a9

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

smf/nexus/multi-sled/config-partial.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,10 @@ mode = "file"
1818
path = "/dev/stdout"
1919
if_exists = "append"
2020

21-
# TODO: Uncomment the following lines to enable automatic schema
22-
# migration on boot.
23-
#
24-
# [schema]
25-
# schema_dir = "/var/nexus/schema/crdb"
21+
# This allows Nexus to see the CRDB schema, and apply schema updates when it
22+
# boots.
23+
[schema]
24+
schema_dir = "/var/nexus/schema/crdb"
2625

2726
[background_tasks]
2827
dns_internal.period_secs_config = 60

smf/nexus/single-sled/config-partial.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,10 @@ mode = "file"
1818
path = "/dev/stdout"
1919
if_exists = "append"
2020

21-
# TODO: Uncomment the following lines to enable automatic schema
22-
# migration on boot.
23-
#
24-
# [schema]
25-
# schema_dir = "/var/nexus/schema/crdb"
21+
# This allows Nexus to see the CRDB schema, and apply schema updates when it
22+
# boots.
23+
[schema]
24+
schema_dir = "/var/nexus/schema/crdb"
2625

2726
[background_tasks]
2827
dns_internal.period_secs_config = 60

0 commit comments

Comments
 (0)