Skip to content

increase renewal frequency to 15secs - #292

Merged
scott-cotton merged 2 commits into
mainfrom
short-session-params
Dec 16, 2025
Merged

scott-cotton merged 2 commits into
mainfrom
short-session-params

Conversation

@scott-cotton

Copy link
Copy Markdown
Member

Comment thread internal/devbox/session_manager.go Outdated
const (
// RenewalInterval is how often to renew the devbox session
RenewalInterval = 1 * time.Minute
RenewalInterval = 15 * time.Second

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I would configure this as 30s, any reason to do it every 15s?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I don't see any difference other than faster recovery from network issues.

Is it important to increase it in your view? why?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

well.. to reduce banging clients on our API, I thought adding a 50% of buffer was enough, but anyway...

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

bumped to 22 as a compromise.

@daniel-de-vera daniel-de-vera left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, just left one comment.

@scott-cotton
scott-cotton merged commit a707bc2 into main Dec 16, 2025
@scott-cotton
scott-cotton deleted the short-session-params branch December 16, 2025 11:05
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