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

Send shutdown event on LDM #4405

Merged
merged 2 commits into from Aug 21, 2023
Merged

Send shutdown event on LDM #4405

merged 2 commits into from Aug 21, 2023

Conversation

neilalexander
Copy link
Member

@neilalexander neilalexander commented Aug 18, 2023

If we send an event when entering lame duck mode, other nodes will mark the server as offline immediately, therefore R1 assets will not be placed onto that node. This is not a problem with R3 or higher because an LDM server operates as a Raft observer only and therefore cannot take the leadership role from an election, but R1 assets can in theory be placed onto any node that is not marked as offline.

A final shutdown event will still be sent when the server actually shuts down so there is no change there.

Signed-off-by: Neil Twigg neil@nats.io

@neilalexander neilalexander requested a review from a team as a code owner August 18, 2023 10:32
…he LDM node

Signed-off-by: Neil Twigg <neil@nats.io>
Copy link
Member

@derekcollison derekcollison left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Neil Twigg <neil@nats.io>
@neilalexander neilalexander merged commit 3377f04 into main Aug 21, 2023
2 checks passed
@neilalexander neilalexander deleted the neil/r1ldm branch August 21, 2023 21:29
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.

None yet

2 participants