Skip to content

Commit

Permalink
fix: add missing data files
Browse files Browse the repository at this point in the history
Add the missing data file and remove unused constants.
  • Loading branch information
stevenh committed Nov 8, 2024
1 parent 6dc9c5c commit 9a49d25
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
8 changes: 2 additions & 6 deletions modules/cockroachdb/cockroachdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,8 @@ const (
envDatabase = "COCKROACH_DATABASE"

// cert files.
certsDir = cockroachDir + "/certs"
fileCACert = certsDir + "/ca.crt"
fileNodeCert = certsDir + "/node.crt"
fileNodeKey = certsDir + "/node.key"
fileClientCert = certsDir + "/client.root.crt"
fileClientKey = certsDir + "/client.root.key"
certsDir = cockroachDir + "/certs"
fileCACert = certsDir + "/ca.crt"
)

//go:embed data/cluster_defaults.sql
Expand Down
8 changes: 8 additions & 0 deletions modules/cockroachdb/data/cluster_defaults.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
SET CLUSTER SETTING kv.range_merge.queue_interval = '50ms';
SET CLUSTER SETTING jobs.registry.interval.gc = '30s';
SET CLUSTER SETTING jobs.registry.interval.cancel = '180s';
SET CLUSTER SETTING jobs.retention_time = '15s';
SET CLUSTER SETTING sql.stats.automatic_collection.enabled = false;
SET CLUSTER SETTING kv.range_split.by_load_merge_delay = '5s';
ALTER RANGE default CONFIGURE ZONE USING "gc.ttlseconds" = 600;
ALTER DATABASE system CONFIGURE ZONE USING "gc.ttlseconds" = 600;
1 change: 1 addition & 0 deletions modules/cockroachdb/testdata/__init.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
SET CLUSTER SETTING jobs.registry.interval.gc = '50s';

0 comments on commit 9a49d25

Please sign in to comment.