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

feat: Change health connection to SSE #209

Merged
merged 2 commits into from
Jan 29, 2025
Merged

feat: Change health connection to SSE #209

merged 2 commits into from
Jan 29, 2025

Conversation

Threated
Copy link
Member

No description provided.

TKussel
TKussel previously approved these changes Jan 15, 2025
Copy link
Member

@TKussel TKussel left a comment

Choose a reason for hiding this comment

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

Does the ConnectGuard protect against the same client id connecting multiple times?

@Threated
Copy link
Member Author

Threated commented Jan 15, 2025

Have to double check that. Besides I think I have a few new ideas on how to go about it having done something similar in a private project 😄

@Threated
Copy link
Member Author

This is now stacked on top of #226 so I can do further refactors here

@Threated Threated force-pushed the health-sse branch 4 times, most recently from f53fd2c to 1b7d1e0 Compare January 22, 2025 15:03
@Threated
Copy link
Member Author

Have not tested this yet but this should solve a lot of the flaky problems we have and should still be compatible with beamctls health check as it only expects last_disconnect.
This also solves the problem of 2 beam proxies with the same id by returning a 409 status code when a second one wants to connect.

@TKussel TKussel dismissed their stale review January 22, 2025 15:24

Outdated

@Threated Threated requested a review from TKussel January 29, 2025 12:10
Copy link
Member

@TKussel TKussel left a comment

Choose a reason for hiding this comment

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

The code looks great, thank you! Once the API changes are documented in the Readme, this is good to go

broker/Cargo.toml Outdated Show resolved Hide resolved
proxy/src/main.rs Show resolved Hide resolved
broker/src/serve_health.rs Outdated Show resolved Hide resolved
@Threated Threated requested a review from TKussel January 29, 2025 14:08
@Threated Threated merged commit 945af5b into develop Jan 29, 2025
33 checks passed
@Threated Threated deleted the health-sse branch January 29, 2025 15:25
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