Is it normal to have a SQLite datastore state.db of 5Gb in size? #13011
-
|
Hallo, I don't know if this is normal (all documentation says that it should be around 500mb) but the sqlite datastore is 5gb in size. On the kine table, there is a lot of data for cert-manager. The analytics rows (see below) shows but I don't know if I can minimize it and if I should May be the answer is that there is nothing to do or I should get my certificates in another way. Thanks More infoVersion
What did I doI already restart/vacuum it. Sizedu -sh /var/lib/rancher/k3s/server/db/*The analytics querysqlite3 /var/lib/rancher/k3s/server/db/state.db << EOF
.header on
.mode column
.dbinfo
SELECT COUNT(*), name FROM kine GROUP BY name ORDER BY COUNT(*) DESC LIMIT 50;
EOFoutput |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
|
Check the logs for compact messages. You should see compact running, or erroring, every 5 minutes or so. |
Beta Was this translation helpful? Give feedback.
Those counts are all really high. If compaction is working there should not be that many entries present for any key.
What do the compact logs show?