-
Notifications
You must be signed in to change notification settings - Fork 617
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reduce the acs inactivity timeout to 1 minute #912
Conversation
Could you please check the boxes in the summary and also add an explanation as to why the jitter was removed in the commit message body? Thanks |
@@ -45,8 +45,7 @@ import ( | |||
const ( | |||
// heartbeatTimeout is the maximum time to wait between heartbeats | |||
// without disconnecting | |||
heartbeatTimeout = 5 * time.Minute | |||
heartbeatJitter = 3 * time.Minute | |||
heartbeatTimeout = 1 * time.Minute |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was the jitter removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@richardpen Can you explain the removal of the jitter here for posterity?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have added it back in the new commit after understanding why it was there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reading is hard. Thanks!
20f2c51
to
7d33b69
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢
This will reduce the acs disconnection period, the maximum disconnection period of acs would be 2 minutes before agent try to connect to acs again.
7d33b69
to
af6e51e
Compare
Summary
This will reduce the acs disconnection period, the maximum disconnection period of acs would be 1 minute before agent try to connect to acs again. This should mitigate the issue #781.
Implementation details
Change the default heartbeat timeout from 5 minute + random(3minutes) to 1 minute.
Testing
make release
)go build -out amazon-ecs-agent.exe ./agent
)make test
) passgo test -timeout=25s ./agent/...
) passmake run-integ-tests
) pass.\scripts\run-integ-tests.ps1
) passmake run-functional-tests
) pass.\scripts\run-functional-tests.ps1
) passNew tests cover the changes:
Description for the changelog
Licensing
This contribution is under the terms of the Apache 2.0 License:
yes