-
Notifications
You must be signed in to change notification settings - Fork 80
DNM: Coordinator nodes (an addition to read-only nodes) #3646
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
Open
mariadb-AlexanderPresniakov
wants to merge
11
commits into
stable-23.10
Choose a base branch
from
coordinator-nodes
base: stable-23.10
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
edb67d0
to
0fc2664
Compare
* feat(cmapi): add read_only param for API add node endpoint * style(cmapi): fixes for string length and quotes Add dbroots of other nodes to the read-only node On every node change adjust dbroots in the read-only nodes Fix logging (trace level) in tests
…th DML This patch changes logic from counting all nodes to counting only read-write nodes when messaging about DML operations.
This patch introduces centralized logic of selecting what dbroot is accessible in PrimProc on what node. The logic is in OamCache for time being and can be moved later.
d9212ae
to
5aa2a82
Compare
…at do not add dbroot of other nodes)
75350df
to
573b492
Compare
573b492
to
a193104
Compare
…cause nodes are only deactivated)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
@drrtuy requested a new mode to be implemented: coordinator-only mode is almost identical to read-only mode, but it doesn't add dbroots of other nodes to the node.
So this new mode it is a subset of functionality of read-only mode. To avoid over-complicating everything, i added a new parameter
add_other_nodes_dbroots
toadd_node
, it is true by default.So
read_only=false and add_other_nodes_dbroots=false --> normal mode
read_only=true and add_other_nodes_dbroots=true --> read_only mode
read_only=true and add_other_nodes_dbroots=false --> coordinator_only mode
read_only=false and add_other_nodes_dbroots=true --> invalid combination, will raise an exception