Space requirements for a small step certificate authority and how to reduce disk space usage #634
-
Hello! First of all, I want to say thank you for your work done. You have developed an excellent product for easy certificate administration 👍 🥇 We want to integrate small step ca solution into our infrastructure. For testing, I created a cloud server with 32 GB of disk space.
On this server, I have successfully set up a small step CA listening on port 4343. I have issued certificates for all servers in our infrastructure (the default expiration is 1 day). And I configured the automatically renew of these certificates as described here: https://smallstep.com/docs/step-ca/certificate-authority-server-production#the-standalone-step-renewal-daemon Thus, I have 30+ servers daily requesting a certification authority to update a certificate. After some time with the system running, I found that all my disk space was full.
So I would like to ask about the memory requirement of the certification authority. My config file:
I found that most of the space is taken up by these files (using ncdu):
I read in the documentation that this ".vlog" is meta information for the work of a certification authority. Is it possible to somehow clean them and reduce the consumption of space? Thank you <3 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
@andrei-kondakov My guess is that most of the data are ACME-related data, which is not really necessary after a sign has been completed. I think @dopey has some kind of script that drops some of this data and does some garbage collection to reduce the size on disk. Unfortunately, you will need to stop step-ca to do this. A better alternative would be to use the MySQL backend on a different container that would be easy to clean if it grows. |
Beta Was this translation helpful? Give feedback.
-
Ended up working closely with @andrei-kondakov over on our discord. Seems like they had gotten into an unusual situation where they were requesting far too many certificates (likely renewals) from their DB. >11million over the course of 3 days. Looks like their usage has settled, but I've asked @andrei-kondakov to let us know if a similar situation begins to develop. |
Beta Was this translation helpful? Give feedback.
Ended up working closely with @andrei-kondakov over on our discord. Seems like they had gotten into an unusual situation where they were requesting far too many certificates (likely renewals) from their DB. >11million over the course of 3 days. Looks like their usage has settled, but I've asked @andrei-kondakov to let us know if a similar situation begins to develop.