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

Added connection & read timeout configuration for pushgateway sink #61

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

Arnovsky
Copy link
Contributor

@Arnovsky Arnovsky commented Jul 1, 2024

Hey, this PR adds the capability to configure the timeout for the PushGateway http connection, we have observed cases where large spark jobs (hundreds - thousands) of stages are lagging due to the generous 5000ms default timeout, our aim is to allow this behaviour to be configurable.

I also fixed some inconsistencies with the formatting, please let me know if this is an issue and you'd like me to revert.

@Arnovsky
Copy link
Contributor Author

Arnovsky commented Jul 1, 2024

There are other issues that are related to the pushgateway implementation, no keep-alive on the connection, no connection pooling, no batching, we can fix these as well, but not in the context of this PR.

@Arnovsky
Copy link
Contributor Author

@LucaCanali Is it possible to get a review? Thanks!

@LucaCanali LucaCanali merged commit f3660f4 into LucaCanali:master Jul 16, 2024
4 checks passed
@LucaCanali
Copy link
Owner

Thank you @Arnovsky for your contribution.

@Arnovsky Arnovsky deleted the pushgateway-timeout branch July 16, 2024 10:38
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