Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix deadlock in DecreaseTargetSize by filtering placeholders
This commit resolves an issue where the DecreaseTargetSize function could enter a deadlock state by attempting to scale down when only placeholder nodes, marked as 'placeholderUnfulfillableStatus', are present. The updated function now filters out these placeholder nodes before calculating if a decrease in target size is permissible, ensuring that only operational nodes are considered in the scaling process. This prevents erroneous scaling activities that could impact cluster stability and node management in AWS Auto Scaling Groups. - Added checks to exclude placeholders in DecreaseTargetSize calculations. - Enhanced logging for better clarity when instance statuses are fetched but continue despite errors. Fixes #6128
- Loading branch information