Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raft.db increases infinitely and fills the disk #21875

Open
PavelYadrov opened this issue Oct 25, 2024 · 0 comments
Open

Raft.db increases infinitely and fills the disk #21875

PavelYadrov opened this issue Oct 25, 2024 · 0 comments

Comments

@PavelYadrov
Copy link

PavelYadrov commented Oct 25, 2024

Overview of the Issue

Consul Version: 1.14.7

Recently we've found out that consul was unable to become alive with following error:

2024-10-22T07:30:11.652Z [ERROR] agent.server.raft: failed to append to logs: error="unable to store logs within log store, err: "write /consul/data/raft/raft.db: no space left on device""

For some reason, Raft.db started to grow from constant size (Around 800Mb) and then overloaded provided PV (3G)

We were able to make it work only after full PV cleanup on all nodes and deleting raft folders.

Then we've tried to tune raft logs compaction and overall logs size with following parameters

"raft_boltdb": {
"NoFreelistSync" : true
},
"raft_snapshot_interval": "5s",
"raft_snapshot_threshold": 8192,
"raft_trailing_logs": 5000

But this only reduced raft.db grow (it was around 10Mb per minute, currently we have around 3.5Mb per minute)

We understand that consul might be overloaded, metrics show 3-4 KV operations per second, but consul itself works just fine.

We need to understand how to handle this situation with Raft.db size size, because eventually it will exceed any PV size that we will provide to it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant