Skip to content

Commit 15e977e

Browse files
Daniel Gottliebevergreen
authored andcommitted
SERVER-43075: Reintroduce startup options for journal flush frequency.
They were mistakenly removed when purging MMAPv1 options.
1 parent 6b5aab0 commit 15e977e

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

src/mongo/db/mongod_options_storage.idl

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,15 @@ configs:
7878
gte: 0.0
7979
lte: { expr: 'StorageGlobalParams::kMaxSyncdelaySecs' }
8080

81+
'storage.journal.commitIntervalMs':
82+
description: 'how often to group/batch commit (ms)'
83+
short_name: 'journalCommitInterval'
84+
arg_vartype: Int
85+
default: 100
86+
validator:
87+
gte: 1
88+
lte: { expr: 'StorageGlobalParams::kMaxJournalCommitIntervalMs' }
89+
8190
'storage.indexBuildRetry':
8291
description: "Do not retry any index builds that were interrupted by shutdown"
8392
arg_vartype: Switch
@@ -112,4 +121,3 @@ configs:
112121
deprecated_short_name: nodur
113122
arg_vartype: Switch
114123
source: [ cli, ini ]
115-

src/mongo/db/storage/storage_parameters.idl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,8 @@ server_parameters:
5151
lte: { expr: 'StorageGlobalParams::kMaxSyncdelaySecs' }
5252
journalCommitInterval:
5353
description: 'Number of milliseconds between journal commits'
54-
set_at: runtime
54+
set_at: [ startup, runtime ]
5555
cpp_varname: 'storageGlobalParams.journalCommitIntervalMs'
56-
default: 100
5756
validator:
5857
gte: 1
5958
lte: { expr: 'StorageGlobalParams::kMaxJournalCommitIntervalMs' }

0 commit comments

Comments
 (0)