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

server: add config version and replica config update handling #892

Merged
merged 3 commits into from
Jan 15, 2024

Conversation

LucioFranco
Copy link
Contributor

No description provided.

@LucioFranco LucioFranco changed the title Lucio/config session server: add config version and replica config update handling Jan 11, 2024
@LucioFranco LucioFranco marked this pull request as ready for review January 12, 2024 19:45
// We don't store the version in the sqlitedb due to the session token
// changed each time we start the primary, this will cause the replica to
// handshake again and get the latest config.
let (tx, _) = watch::channel(InnerConfig { version: 0, config });
Copy link
Contributor

Choose a reason for hiding this comment

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

this is only ok for now, because we keep the config for all namespaces in memory at all time. When we allow the number of namespaces to grow, we'll want to tie the config's lifetime to the namespace's lifetime in memory, which won't work anymore. To keep in mind for when we implement that.

@MarinPostma MarinPostma added this pull request to the merge queue Jan 15, 2024
Merged via the queue into main with commit 4fe3622 Jan 15, 2024
12 checks passed
@MarinPostma MarinPostma deleted the lucio/config-session branch January 15, 2024 09:57
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