aws / amazon-mwaa-docker-images

Apache License 2.0
27 stars 12 forks source link

Reduce CONSECUTIVE_IDLENESS_CHECK_THRESHOLD to 2 #107

Closed rafidka closed 4 months ago

rafidka commented 4 months ago

Issue #, if available: N/A

Description of changes:

Reducing CONSECUTIVE_IDLENESS_CHECK_THRESHOLD from 15 to 2 to avoid lengthy wait before shutting down an idle worker. This setting, when applied to the internal code, resulted in ~ 15 seconds of delay, but the new open source image are designed differently and our checks are executed once 1 minute, so 15 consecutive checks means 15 minutes, which is considerable time. So, reducing this to 2 to keep the idleness wait to roughly 2 minutes.


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.