Skip to content

Commit

Permalink
database script change
Browse files Browse the repository at this point in the history
  • Loading branch information
peterfox committed Mar 21, 2024
1 parent f89b721 commit 25f6a55
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions database.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,14 @@
heredoc);

$statements = [
'SET CLUSTER SETTING kv.raft_log.disable_synchronization_unsafe = true;',
'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" = 5;',
'ALTER DATABASE system CONFIGURE ZONE USING "gc.ttlseconds" = 5;',
'ALTER RANGE default CONFIGURE ZONE USING "gc.ttlseconds" = 600;',
'ALTER DATABASE system CONFIGURE ZONE USING "gc.ttlseconds" = 600;',
];

foreach ($statements as $statement) {
Expand Down

0 comments on commit 25f6a55

Please sign in to comment.