Skip to content

*: disable bbolt stat usage - #13721

Merged
mxpv merged 1 commit into
containerd:mainfrom
fuweid:disable-bbolt-stat-api
Jul 5, 2026
Merged

mxpv merged 1 commit into
containerd:mainfrom
fuweid:disable-bbolt-stat-api

Conversation

@fuweid

@fuweid fuweid commented Jul 4, 2026

Copy link
Copy Markdown
Member

Disable stat usage since we never consume the data.
This can reduce unnecessary contention during transactions.

Disable stat usage since we never consume the data.
This can reduce unnecessary contention during transactions.

Signed-off-by: Wei Fu <[email protected]>
Copilot AI review requested due to automatic review settings July 4, 2026 16:09
@github-project-automation github-project-automation Bot moved this to Needs Triage in Pull Request Review Jul 4, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR disables bbolt statistics collection for containerd’s BoltDB-backed metadata stores, reducing contention during transactions because the stats data is not consumed by containerd.

Changes:

  • Set bolt.Options.NoStatistics = true for the mount manager’s mounts.db.
  • Set bolt.Options.NoStatistics = true for the main metadata plugin’s meta.db.
  • Set NoStatistics by default for snapshotter MetaStore BoltDB options.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
plugins/mount/manager.go Opens the mounts metadata DB with NoStatistics enabled to reduce transaction contention.
plugins/metadata/plugin.go Disables bbolt stats for the primary metadata DB options alongside existing options tuning.
core/snapshots/storage/metastore.go Makes NoStatistics the default for snapshot metastore options to avoid stats overhead.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-project-automation github-project-automation Bot moved this from Needs Triage to Review In Progress in Pull Request Review Jul 5, 2026
@mxpv
mxpv added this pull request to the merge queue Jul 5, 2026
Merged via the queue into containerd:main with commit 2cb1afb Jul 5, 2026
50 checks passed
@github-project-automation github-project-automation Bot moved this from Review In Progress to Done in Pull Request Review Jul 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants