更正资源池化场景下wal_segment_size的参数值

This commit is contained in:
zhangyukai
2025-01-07 16:17:58 +08:00
committed by congzhou2603
parent 0099a1a98c
commit e448b16efb
3 changed files with 5 additions and 2 deletions

View File

@ -76,6 +76,8 @@
#define InvalidPid ((pid_t)(-1))
const char* DSS_WAL_SEGMENT_SIZE_STR = "131072";
Alarm alarmItemTooManyDbUserConn[1] = {ALM_AI_Unknown, ALM_AS_Normal, 0, 0, 0, 0, {0}, {0}, NULL};
/* ----------------------------------------------------------------
@ -2167,4 +2169,5 @@ void initDSSConf(void)
/* set xlog seg size to 1GB */
XLogSegmentSize = DSS_XLOG_SEG_SIZE;
SetConfigOption("wal_segment_size", DSS_WAL_SEGMENT_SIZE_STR, PGC_INTERNAL, PGC_S_OVERRIDE);
}

View File

@ -3117,7 +3117,7 @@ static void InitStorageConfigureNamesInt()
&u_sess->attr.attr_storage.wal_segment_size,
(XLOG_SEG_SIZE / XLOG_BLCKSZ),
(XLOG_SEG_SIZE / XLOG_BLCKSZ),
(XLOG_SEG_SIZE / XLOG_BLCKSZ),
(DSS_XLOG_SEG_SIZE / XLOG_BLCKSZ),
NULL,
NULL,
NULL},

View File

@ -816,7 +816,7 @@ select name,vartype,unit,min_val,max_val from pg_settings where name <> 'qunit_c
wal_receiver_connect_timeout | integer | s | 0 | 2147483
wal_receiver_status_interval | integer | s | 0 | 2147483
wal_receiver_timeout | integer | ms | 0 | 2147483647
wal_segment_size | integer | 8kB | 2048 | 2048
wal_segment_size | integer | 8kB | 2048 | 131072
walsender_max_send_size | integer | kB | 8 | 2147483647
wal_sender_timeout | integer | ms | 0 | 2147483647
wal_sync_method | enum | | |