Skip to content
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

[backport 40] Fix Consul connections over consumtion on task monitoring #748

Conversation

loicalbertin
Copy link
Member

Pull Request description

Description of the change

What I did

Just added the context to the consul query options.
This context is then passed to the http request used by the Consul client and finally can be used for request cancellation

How to verify it

Generate a high load of job monitoring actions for exemple by using a monitoring interval of 0.5s and monitor the consul connections using for instance lsof. It should remain constant

Description for the changelog

  • Over-consumption of Consul connections (GH-745)

Applicable Issues

Fixes #745
Backported from PR #746

This will allow the underlying http request to handle
context cancellation and release the connection
as soon as the local execution is done not after an http timeout
Copy link
Contributor

@laurentganne laurentganne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok!

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@loicalbertin loicalbertin merged commit f2019f6 into release/4.0 Jun 11, 2021
@loicalbertin loicalbertin deleted the backport_40/bugfix/GH-745_Over_consumption_of_Consul_connections branch June 11, 2021 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants