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

dekaf: Introduce IDLE_SESSION_TIMEOUT to allow configuring the idle session timeout #1773

Merged
merged 1 commit into from
Nov 19, 2024

Conversation

jshearer
Copy link
Contributor

@jshearer jshearer commented Nov 13, 2024

Introducing this because I want to see if raising the session timeout resolves issues with static consumer group memberships.


This change is Reviewable

@jshearer jshearer changed the title dekaf: Introduce IDLE_SESSION_TIMEOUT_MS to allow configuring the idle session timeout dekaf: Introduce IDLE_SESSION_TIMEOUT to allow configuring the idle session timeout Nov 13, 2024
@jshearer jshearer force-pushed the dekaf/configurable_timeout branch 2 times, most recently from 5ef5d67 to f3a0f73 Compare November 13, 2024 18:14
@jshearer jshearer requested a review from a team November 13, 2024 18:48
@@ -27,6 +27,7 @@ axum = { workspace = true }
axum-extra = { workspace = true }
axum-server = { workspace = true }
base64 = { workspace = true }
humantime = { workspace = true }
Copy link
Member

Choose a reason for hiding this comment

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

Given that we use Go's ParseDuration in all other places I know of, maybe we should use https://docs.rs/go-parse-duration/latest/go_parse_duration/

Thoughts? @williamhbaker @jgraettinger @psFried

Copy link
Member

Choose a reason for hiding this comment

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

We've been using humantime for a while for this, I think we should stick with it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looks like humantime's parse_duration supports:

nsec, ns – nanoseconds
usec, us – microseconds
msec, ms – milliseconds
seconds, second, sec, s
minutes, minute, min, m
hours, hour, hr, h
days, day, d
weeks, week, w
months, month, M – defined as 30.44 days
years, year, y – defined as 365.25 days

And go-parse-duration says:

Valid time units are “ns”, “us” (or “µs”), “ms”, “s”, “m”, “h”.

So humantime supports a superset of the time units that go-parse-duration does... I'd say this is good?

Copy link
Member

@jgraettinger jgraettinger left a comment

Choose a reason for hiding this comment

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

LGTM

@jshearer jshearer merged commit c09d135 into master Nov 19, 2024
6 checks passed
@jshearer jshearer deleted the dekaf/configurable_timeout branch November 20, 2024 17:37
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.

3 participants