Galera cluster is still accepting writes on a single node when 2 of 3 nodes are down The 2019...

Working through the single responsibility principle (SRP) in Python when calls are expensive

Can the DM override racial traits?

A phrase ”follow into" in a context

Is an up-to-date browser secure on an out-of-date OS?

One-dimensional Japanese puzzle

Do working physicists consider Newtonian mechanics to be "falsified"?

Why don't hard Brexiteers insist on a hard border to prevent illegal immigration after Brexit?

What information about me do stores get via my credit card?

Can withdrawing asylum be illegal?

Sub-subscripts in strings cause different spacings than subscripts

How did the audience guess the pentatonic scale in Bobby McFerrin's presentation?

Is every episode of "Where are my Pants?" identical?

Do warforged have souls?

What force causes entropy to increase?

How to make Illustrator type tool selection automatically adapt with text length

What to do when moving next to a bird sanctuary with a loosely-domesticated cat?

Keeping a retro style to sci-fi spaceships?

Can the Right Ascension and Argument of Perigee of a spacecraft's orbit keep varying by themselves with time?

What aspect of planet Earth must be changed to prevent the industrial revolution?

For what reasons would an animal species NOT cross a *horizontal* land bridge?

Does Parliament need to approve the new Brexit delay to 31 October 2019?

60's-70's movie: home appliances revolting against the owners

Loose spokes after only a few rides

Single author papers against my advisor's will?



Galera cluster is still accepting writes on a single node when 2 of 3 nodes are down



The 2019 Stack Overflow Developer Survey Results Are In
Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar Manaratorque in ClusterInstalling Sun/Oracle Grid Engine on a single machineMySQL Cluster ndb_restore fails with no errortwo screen layer: reconection via sshCorosync dependency on unmanaged serviceHow to make MySQL cluster completely failsafe?RabbitMQ high disk usageWhy is nodes=n:ppn=m request not being properly honored by torque/moab?Arangodb Cluster - Unable to interact with Coordinator node in cluster after restarting the cluster when there is data in the data directoryRemoving cluster node from always on cluster





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







1















I am running a 3 clusters galera database, and during redundancy tests, I saw that if I shutdown properly 2 of 3 nodes, the last one still accepts writes, even being the only only one up.



I am not sure that this is the way I want my cluster to work. Is it possible to set the cluster to reject writes when only 1 node is up?










share|improve this question







New contributor




Dazul is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



























    1















    I am running a 3 clusters galera database, and during redundancy tests, I saw that if I shutdown properly 2 of 3 nodes, the last one still accepts writes, even being the only only one up.



    I am not sure that this is the way I want my cluster to work. Is it possible to set the cluster to reject writes when only 1 node is up?










    share|improve this question







    New contributor




    Dazul is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      1












      1








      1








      I am running a 3 clusters galera database, and during redundancy tests, I saw that if I shutdown properly 2 of 3 nodes, the last one still accepts writes, even being the only only one up.



      I am not sure that this is the way I want my cluster to work. Is it possible to set the cluster to reject writes when only 1 node is up?










      share|improve this question







      New contributor




      Dazul is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I am running a 3 clusters galera database, and during redundancy tests, I saw that if I shutdown properly 2 of 3 nodes, the last one still accepts writes, even being the only only one up.



      I am not sure that this is the way I want my cluster to work. Is it possible to set the cluster to reject writes when only 1 node is up?







      linux mysql cluster






      share|improve this question







      New contributor




      Dazul is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      Dazul is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      Dazul is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked yesterday









      DazulDazul

      82




      82




      New contributor




      Dazul is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Dazul is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Dazul is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          1 Answer
          1






          active

          oldest

          votes


















          0














          The cluster size (wsrep_cluster_size) is a dynamic value that scales up and down as you bring up and take down nodes in your Galera Cluster.



          When you gracefully shut down two of your three nodes, you're effectively handing the Primary Component status to the remaining node. There is no risk of data diverging (split-brain), so it is still safe for the last node to serve requests. The cluster size becomes 1, and you're practically left running a single MySQL server.




          Is it possible to set the cluster to reject writes when only 1 node is up?




          I don't think Galera Cluster works like this. Conceptually, the nodes just care about forming a quorum. For each of the nodes, if it is in the majority, it holds the Primary Component status. The isolated nodes become non-primary.



          If you abruptly lost two of your three nodes, then the remaining node will find itself in the minority, enter the non-primary status (shown in wsrep_cluster_status), and refuse reads and writes.





          Additional Resources





          • Weighted Quorum in the Galera Cluster Documentation


          • How the Primary Component status stays with the majority:



            How the Primary Component status stays with the majority




          • How Galera Cluster protects itself from split-brain scenarios by putting nodes without a majority into the non-primary status:



            Example of split-brain








          share|improve this answer
























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });






            Dazul is a new contributor. Be nice, and check out our Code of Conduct.










            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1424205%2fgalera-cluster-is-still-accepting-writes-on-a-single-node-when-2-of-3-nodes-are%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            The cluster size (wsrep_cluster_size) is a dynamic value that scales up and down as you bring up and take down nodes in your Galera Cluster.



            When you gracefully shut down two of your three nodes, you're effectively handing the Primary Component status to the remaining node. There is no risk of data diverging (split-brain), so it is still safe for the last node to serve requests. The cluster size becomes 1, and you're practically left running a single MySQL server.




            Is it possible to set the cluster to reject writes when only 1 node is up?




            I don't think Galera Cluster works like this. Conceptually, the nodes just care about forming a quorum. For each of the nodes, if it is in the majority, it holds the Primary Component status. The isolated nodes become non-primary.



            If you abruptly lost two of your three nodes, then the remaining node will find itself in the minority, enter the non-primary status (shown in wsrep_cluster_status), and refuse reads and writes.





            Additional Resources





            • Weighted Quorum in the Galera Cluster Documentation


            • How the Primary Component status stays with the majority:



              How the Primary Component status stays with the majority




            • How Galera Cluster protects itself from split-brain scenarios by putting nodes without a majority into the non-primary status:



              Example of split-brain








            share|improve this answer




























              0














              The cluster size (wsrep_cluster_size) is a dynamic value that scales up and down as you bring up and take down nodes in your Galera Cluster.



              When you gracefully shut down two of your three nodes, you're effectively handing the Primary Component status to the remaining node. There is no risk of data diverging (split-brain), so it is still safe for the last node to serve requests. The cluster size becomes 1, and you're practically left running a single MySQL server.




              Is it possible to set the cluster to reject writes when only 1 node is up?




              I don't think Galera Cluster works like this. Conceptually, the nodes just care about forming a quorum. For each of the nodes, if it is in the majority, it holds the Primary Component status. The isolated nodes become non-primary.



              If you abruptly lost two of your three nodes, then the remaining node will find itself in the minority, enter the non-primary status (shown in wsrep_cluster_status), and refuse reads and writes.





              Additional Resources





              • Weighted Quorum in the Galera Cluster Documentation


              • How the Primary Component status stays with the majority:



                How the Primary Component status stays with the majority




              • How Galera Cluster protects itself from split-brain scenarios by putting nodes without a majority into the non-primary status:



                Example of split-brain








              share|improve this answer


























                0












                0








                0







                The cluster size (wsrep_cluster_size) is a dynamic value that scales up and down as you bring up and take down nodes in your Galera Cluster.



                When you gracefully shut down two of your three nodes, you're effectively handing the Primary Component status to the remaining node. There is no risk of data diverging (split-brain), so it is still safe for the last node to serve requests. The cluster size becomes 1, and you're practically left running a single MySQL server.




                Is it possible to set the cluster to reject writes when only 1 node is up?




                I don't think Galera Cluster works like this. Conceptually, the nodes just care about forming a quorum. For each of the nodes, if it is in the majority, it holds the Primary Component status. The isolated nodes become non-primary.



                If you abruptly lost two of your three nodes, then the remaining node will find itself in the minority, enter the non-primary status (shown in wsrep_cluster_status), and refuse reads and writes.





                Additional Resources





                • Weighted Quorum in the Galera Cluster Documentation


                • How the Primary Component status stays with the majority:



                  How the Primary Component status stays with the majority




                • How Galera Cluster protects itself from split-brain scenarios by putting nodes without a majority into the non-primary status:



                  Example of split-brain








                share|improve this answer













                The cluster size (wsrep_cluster_size) is a dynamic value that scales up and down as you bring up and take down nodes in your Galera Cluster.



                When you gracefully shut down two of your three nodes, you're effectively handing the Primary Component status to the remaining node. There is no risk of data diverging (split-brain), so it is still safe for the last node to serve requests. The cluster size becomes 1, and you're practically left running a single MySQL server.




                Is it possible to set the cluster to reject writes when only 1 node is up?




                I don't think Galera Cluster works like this. Conceptually, the nodes just care about forming a quorum. For each of the nodes, if it is in the majority, it holds the Primary Component status. The isolated nodes become non-primary.



                If you abruptly lost two of your three nodes, then the remaining node will find itself in the minority, enter the non-primary status (shown in wsrep_cluster_status), and refuse reads and writes.





                Additional Resources





                • Weighted Quorum in the Galera Cluster Documentation


                • How the Primary Component status stays with the majority:



                  How the Primary Component status stays with the majority




                • How Galera Cluster protects itself from split-brain scenarios by putting nodes without a majority into the non-primary status:



                  Example of split-brain









                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered yesterday









                DeltikDeltik

                13.5k144988




                13.5k144988






















                    Dazul is a new contributor. Be nice, and check out our Code of Conduct.










                    draft saved

                    draft discarded


















                    Dazul is a new contributor. Be nice, and check out our Code of Conduct.













                    Dazul is a new contributor. Be nice, and check out our Code of Conduct.












                    Dazul is a new contributor. Be nice, and check out our Code of Conduct.
















                    Thanks for contributing an answer to Super User!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1424205%2fgalera-cluster-is-still-accepting-writes-on-a-single-node-when-2-of-3-nodes-are%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Couldn't open a raw socket. Error: Permission denied (13) (nmap)Is it possible to run networking commands...

                    VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...

                    Why not use the yoke to control yaw, as well as pitch and roll? Announcing the arrival of...