I installed Vault on my IoT device and ran Vault by making the necessary settings. I use Filesystem as the storage backend and I use the KV engine as secret engine. Here is my HCL file:
When I work with Vault on my Ubuntu machine, I don’t have any performance problems. But when I run Vault on the board, I see that it uses about 70% of the CPU when reading or writing, and that Vault operations are slowing down. I use the Yocto operating system on the board. And I use Variscite’s iMX-DART-6UL as an embedded device. (Variscite DART-6UL : NXP iMX6UL / iMX6ULL / iMX6ULZ System on Module / Computer on Module)
What can I do to fix this problem? Many services are running in my project and Vault consumes more than all of them. What can I do to prevent this and reduce Vault’s CPU consumption?
I’d say it is definitely not a Vault performance problem, looks to me more like IO bottleneck of this board Do you use eMMC or NAND? Why do you need Vault permanently running, what if you’d try to run it periodically?
I am working on PKI certificates in my project and I save the certificates in Vault. So Vault always be standing. By the way I use eMMC flash in my board.
My guess is that you are running on a system that does not have AES offloading in hardware. Vault does a lot of encryption/decryption, so if your CPU doesn’t have AES capability all of it must be done in the CPU.