Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Lots of writes to state.db #11313

Closed
adamfur opened this issue Nov 13, 2024 · 1 comment
Closed

Lots of writes to state.db #11313

adamfur opened this issue Nov 13, 2024 · 1 comment

Comments

@adamfur
Copy link

adamfur commented Nov 13, 2024

Environmental Info:
K3s Version:
k3s version v1.30.6+k3s1 (1829eaa)
go version go1.22.8

Node(s) CPU architecture, OS, and Version:
Linux pi5 6.6.51+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.6.51-1+rpt3 (2024-10-08) aarch64 GNU/Linux

Cluster Configuration:
1 server

Describe the bug:

fatrace -f W

k3s-server(892): W /var/lib/rancher/k3s/server/db/state.db-wal
k3s-server(892): W /var/lib/rancher/k3s/server/db/state.db-wal
k3s-server(892): W /var/lib/rancher/k3s/server/db/state.db-wal
k3s-server(892): W /var/lib/rancher/k3s/server/db/state.db-wal
k3s-server(892): W /var/lib/rancher/k3s/server/db/state.db-wal
k3s-server(892): W /var/lib/rancher/k3s/server/db/state.db-wal
k3s-server(892): W /var/lib/rancher/k3s/server/db/state.db-wal
k3s-server(892): W /var/lib/rancher/k3s/server/db/state.db-wal
k3s-server(892): W /var/lib/rancher/k3s/server/db/state.db-wal
k3s-server(892): W /var/lib/rancher/k3s/server/db/state.db-wal

I see these write calls several times a second, is there anything I can do to reduce the amount? Wore out a high endurance SDcard in less than 6 months on pods that are pretty much stale.

@brandond
Copy link
Member

Nope. The Kubernetes datastore is pretty chatty, and every write must be synced to the WAL in order to ensure that data is not lost in case of a power outage.

@k3s-io k3s-io locked and limited conversation to collaborators Nov 13, 2024
@brandond brandond converted this issue into discussion #11317 Nov 13, 2024
@github-project-automation github-project-automation bot moved this from New to Done Issue in K3s Development Nov 13, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
Status: Done Issue
Development

No branches or pull requests

2 participants