Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
QuarkDB
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eos
QuarkDB
Commits
3dbabc5b
Commit
3dbabc5b
authored
4 years ago
by
Georgios Bitzes
Browse files
Options
Downloads
Patches
Plain Diff
raft: reduce default trimming batch size to 200k
parent
d55b9a77
No related branches found
No related tags found
No related merge requests found
Pipeline
#2022128
failed
4 years ago
Stage: koji
Stage: build
Stage: test
Stage: publish
Changes
3
Pipelines
16
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG.md
+2
-0
2 additions, 0 deletions
CHANGELOG.md
docs/docs/journal-trimming.md
+2
-2
2 additions, 2 deletions
docs/docs/journal-trimming.md
src/raft/RaftConfig.cc
+1
-1
1 addition, 1 deletion
src/raft/RaftConfig.cc
with
5 additions
and
3 deletions
CHANGELOG.md
+
2
−
0
View file @
3dbabc5b
...
...
@@ -19,6 +19,8 @@ for earnest only if it has a good chance of winning.
-
Checkpoint creation through
``quarkdb-checkpoint``
will now fail if a different
physical filesystem is specified.
-
RPMs now available for CentOS 8.
-
Print explicit warnings in the log in case of write stalling.
-
Reduce default trimming batch size to 200k.
Many thanks to Franck Eyraud (JRC) for the bug report concerning erroneous
``MANIFEST``
-related
warning.
...
...
This diff is collapsed.
Click to expand it.
docs/docs/journal-trimming.md
+
2
−
2
View file @
3dbabc5b
...
...
@@ -15,8 +15,8 @@ journal entries. Values below 1 million are probably not reasonable for a produc
deployment, and values below 100k are disallowed.
*
The batch size to use during trimming: This many entries will be deleted at once
when it's time to apply trimming. Default value is
1 million. Aim for
batch sizes
around
`1/50`
of the total number of entries to keep
.
when it's time to apply trimming. Default value is
200k. Too high
batch sizes
might cause write stalls -- values higher than 1 million are not recommended
.
You can change the above values with the following command towards the leader. This
sets total number of entries to keep at 10M, and batch size at 200k.
...
...
This diff is collapsed.
Click to expand it.
src/raft/RaftConfig.cc
+
1
−
1
View file @
3dbabc5b
...
...
@@ -89,7 +89,7 @@ TrimmingConfig RaftConfig::getTrimmingConfig() {
if
(
st
.
IsNotFound
())
{
// Return default values
return
{
50000000
,
10
00000
};
return
{
50000000
,
2
00000
};
}
else
if
(
!
st
.
ok
())
{
qdb_throw
(
"Error when retrieving journal trim limit: "
<<
st
.
ToString
());
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment