- Newest
- Most votes
- Most comments
Below what we can try to locate and fix the issue:
- Use multiple crypto users: Create and log in with multiple CU accounts, each owning a copy of the key. This can help distribute load across sessions.
- Parallelize across HSMs: The 1000 TPS figure assumes multiple HSMs in a cluster. With just one HSM, you're unlikely to hit that number. Consider scaling horizontally.
- Use CaviumKey directly: If you're using standard JCE PrivateKey objects, you might be missing out on performance optimizations available with CaviumKey objects.
- Profile with native SDK: If performance is critical, consider bypassing the JCE layer and using the native SDK or PKCS#11 interface directly. It’s more complex but gives you finer control.
Hey,
Hope you're keeping well.
With CloudHSM, the TPS numbers in the documentation are for a fully utilized cluster with multiple HSMs and parallel client sessions. A single hsm1.medium instance will cap throughput based on its own CPU and crypto engine limits, so you won’t see 1000 TPS from one HSM or one client session. To increase signing throughput, you need multiple HSMs in the cluster and ensure your client is opening multiple authenticated sessions to them in parallel. Also, avoid reusing a single CloudHsmKeyStore object across threads — create independent CloudHsmProvider or PKCS#11 sessions per thread to remove contention.
Thanks and regards,
Taz
answered a year ago
Relevant content
asked 3 years ago
asked a year ago
