- Newest
- Most votes
- Most comments
This issue occurs when the CloudHSM client attempts to connect to HSMs that are in DELETE_IN_PROGRESS state, causing delays and connection timeouts during initialization.
There are a few approaches you can take to address this:
-
Disable the key availability check by using the
--disable-key-availability-checkparameter in your configure tool. This can be set in the configuration file for your JCE provider. When using the configure-jce tool, you can specify this option to disable key availability checks during key use. -
The key availability check is likely causing the client to attempt connections to all HSMs in the cluster, including those in DELETE_IN_PROGRESS state. By disabling this check, you may avoid these connection attempts.
-
If you're using Client SDK 5.8 or above but below 5.16.2, be aware that there was a known issue where the SDK would not retry some HSM throttled operations. This has been resolved in Client SDK 5.16.2 and later, so upgrading to at least this version might help with connection handling.
-
As a best practice, maintain at least three HSMs in your cluster. This provides better availability and can help mitigate issues when one HSM is being deleted or replaced.
-
If you're using the JCE provider, you could try creating your CloudHsmProviderConfig with specific configuration options that might help control connection behavior.
The long-running connection attempts to HSMs in DELETE_IN_PROGRESS state are likely related to how the client handles key availability checks across the cluster. By disabling these checks or ensuring you have enough active HSMs, you should be able to improve the initialization experience.
Sources
AWS CloudHSM error seen during key availability check - AWS CloudHSM
AWS CloudHSM Client SDK 5 configuration syntax - AWS CloudHSM
Known issues for AWS CloudHSM hsm2m.medium instances - AWS CloudHSM
answered a year ago
Relevant content
asked a year ago
