File size of vault.db

Hi, the file vault.db is growing strong.
We use vault since 6 weeks and the file has now 8 GB.
We have about 30 keys, 15 policies and 350 entities.

I don´t understand this rapid growth.
Is it possible to reduce the file oder remove all expired tokens?

Can somebody please help me?

3 Likes

Hi @ad-software

any news on this? We detect a similar growth for a comparable small kv database. The vault runs in HA mode on Kubernetes.

Cheers

Hi,
it happend in our environment, because we created to many token with too long life time.
We reduced the token life time and everything was fine.

Hi,

thanks for your response. It seems we got a plethora of leases in our vault.db (over 500.000) @hsimon-hashicorp: How can we check from where theses leases were generated and how can we reduce the number to shrink our vault.db file?

Cheers

You may wish to use quotas: Protecting Vault with Resource Quotas | Vault - HashiCorp Learn
This will help prevent a large number of leases, and also can show you where your leases are coming from. Once you identify the core issue, you will probably want to revoke those leases in batches, as it is a resource-intensive process. Please let me know if that helps.

Hi @hsimon-hashicorp , thanks for your response, I’ll take a look at it.