From 25f6a55eb9cd3f4cd8538589bb49aa5b6891bf5c Mon Sep 17 00:00:00 2001 From: Peter Fox Date: Thu, 21 Mar 2024 23:29:39 +0000 Subject: [PATCH] database script change --- database.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/database.php b/database.php index 8c1e7a0..7b27b2d 100644 --- a/database.php +++ b/database.php @@ -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) {