MySQL InnoDB or MySQL NDB Cluster which one to use












1















We have an application with 8000 users accessing in parallel(max). We are trying to bring in horizontal scaling. I came across MySQL NDB cluster. Should I go with it? Just for auto sharding and other features if I go with it, will it impact performance?



Note:




  1. Most of the tables in our database has foreign key relationship.

  2. It is a B2B application.

  3. This is one of the deployments.

  4. The db size is 900 MB.

  5. As customers grow the size is expected to grow.

  6. Both outer as well as inner Joins are used frequently.

  7. Host machine is Windows Server 2012

  8. The present 8000 user count is expected to grow to 100000 within 2 weeks.

  9. Queries per second with 8000 users = 110.086.


If not NDB Cluster, then what is the best way to bring in horizontal scaling? with less pain like auto sharding, auto replication,...etc.










share|improve this question
















bumped to the homepage by Community 11 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • How many queries per second?

    – Rick James
    Mar 18 '18 at 20:12











  • What is the size of the database? Also, do you mean horizontal scaling, i.e. adding more servers rather than upgrading the ones you have?

    – dbdemon
    Mar 18 '18 at 22:59











  • @dbdemon as ofnow db size is 900MiB. I meant horizontal scaling. This is to be done in future if data increases.

    – Mani
    Mar 19 '18 at 1:37











  • @RickJames currently total no of users=8000 and queries per second=110.086 per second.Used this to get queries/second

    – Mani
    Mar 19 '18 at 4:31


















1















We have an application with 8000 users accessing in parallel(max). We are trying to bring in horizontal scaling. I came across MySQL NDB cluster. Should I go with it? Just for auto sharding and other features if I go with it, will it impact performance?



Note:




  1. Most of the tables in our database has foreign key relationship.

  2. It is a B2B application.

  3. This is one of the deployments.

  4. The db size is 900 MB.

  5. As customers grow the size is expected to grow.

  6. Both outer as well as inner Joins are used frequently.

  7. Host machine is Windows Server 2012

  8. The present 8000 user count is expected to grow to 100000 within 2 weeks.

  9. Queries per second with 8000 users = 110.086.


If not NDB Cluster, then what is the best way to bring in horizontal scaling? with less pain like auto sharding, auto replication,...etc.










share|improve this question
















bumped to the homepage by Community 11 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • How many queries per second?

    – Rick James
    Mar 18 '18 at 20:12











  • What is the size of the database? Also, do you mean horizontal scaling, i.e. adding more servers rather than upgrading the ones you have?

    – dbdemon
    Mar 18 '18 at 22:59











  • @dbdemon as ofnow db size is 900MiB. I meant horizontal scaling. This is to be done in future if data increases.

    – Mani
    Mar 19 '18 at 1:37











  • @RickJames currently total no of users=8000 and queries per second=110.086 per second.Used this to get queries/second

    – Mani
    Mar 19 '18 at 4:31
















1












1








1








We have an application with 8000 users accessing in parallel(max). We are trying to bring in horizontal scaling. I came across MySQL NDB cluster. Should I go with it? Just for auto sharding and other features if I go with it, will it impact performance?



Note:




  1. Most of the tables in our database has foreign key relationship.

  2. It is a B2B application.

  3. This is one of the deployments.

  4. The db size is 900 MB.

  5. As customers grow the size is expected to grow.

  6. Both outer as well as inner Joins are used frequently.

  7. Host machine is Windows Server 2012

  8. The present 8000 user count is expected to grow to 100000 within 2 weeks.

  9. Queries per second with 8000 users = 110.086.


If not NDB Cluster, then what is the best way to bring in horizontal scaling? with less pain like auto sharding, auto replication,...etc.










share|improve this question
















We have an application with 8000 users accessing in parallel(max). We are trying to bring in horizontal scaling. I came across MySQL NDB cluster. Should I go with it? Just for auto sharding and other features if I go with it, will it impact performance?



Note:




  1. Most of the tables in our database has foreign key relationship.

  2. It is a B2B application.

  3. This is one of the deployments.

  4. The db size is 900 MB.

  5. As customers grow the size is expected to grow.

  6. Both outer as well as inner Joins are used frequently.

  7. Host machine is Windows Server 2012

  8. The present 8000 user count is expected to grow to 100000 within 2 weeks.

  9. Queries per second with 8000 users = 110.086.


If not NDB Cluster, then what is the best way to bring in horizontal scaling? with less pain like auto sharding, auto replication,...etc.







mysql performance optimization sharding mysql-cluster






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 21 '18 at 6:06







user37701

















asked Mar 18 '18 at 18:00









ManiMani

1064




1064





bumped to the homepage by Community 11 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 11 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • How many queries per second?

    – Rick James
    Mar 18 '18 at 20:12











  • What is the size of the database? Also, do you mean horizontal scaling, i.e. adding more servers rather than upgrading the ones you have?

    – dbdemon
    Mar 18 '18 at 22:59











  • @dbdemon as ofnow db size is 900MiB. I meant horizontal scaling. This is to be done in future if data increases.

    – Mani
    Mar 19 '18 at 1:37











  • @RickJames currently total no of users=8000 and queries per second=110.086 per second.Used this to get queries/second

    – Mani
    Mar 19 '18 at 4:31





















  • How many queries per second?

    – Rick James
    Mar 18 '18 at 20:12











  • What is the size of the database? Also, do you mean horizontal scaling, i.e. adding more servers rather than upgrading the ones you have?

    – dbdemon
    Mar 18 '18 at 22:59











  • @dbdemon as ofnow db size is 900MiB. I meant horizontal scaling. This is to be done in future if data increases.

    – Mani
    Mar 19 '18 at 1:37











  • @RickJames currently total no of users=8000 and queries per second=110.086 per second.Used this to get queries/second

    – Mani
    Mar 19 '18 at 4:31



















How many queries per second?

– Rick James
Mar 18 '18 at 20:12





How many queries per second?

– Rick James
Mar 18 '18 at 20:12













What is the size of the database? Also, do you mean horizontal scaling, i.e. adding more servers rather than upgrading the ones you have?

– dbdemon
Mar 18 '18 at 22:59





What is the size of the database? Also, do you mean horizontal scaling, i.e. adding more servers rather than upgrading the ones you have?

– dbdemon
Mar 18 '18 at 22:59













@dbdemon as ofnow db size is 900MiB. I meant horizontal scaling. This is to be done in future if data increases.

– Mani
Mar 19 '18 at 1:37





@dbdemon as ofnow db size is 900MiB. I meant horizontal scaling. This is to be done in future if data increases.

– Mani
Mar 19 '18 at 1:37













@RickJames currently total no of users=8000 and queries per second=110.086 per second.Used this to get queries/second

– Mani
Mar 19 '18 at 4:31







@RickJames currently total no of users=8000 and queries per second=110.086 per second.Used this to get queries/second

– Mani
Mar 19 '18 at 4:31












1 Answer
1






active

oldest

votes


















0














NDB is more complex to set up, but may provide a faster way to get to 13K qps sharded across multiple machines.






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "182"
    };
    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: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    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
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f201603%2fmysql-innodb-or-mysql-ndb-cluster-which-one-to-use%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














    NDB is more complex to set up, but may provide a faster way to get to 13K qps sharded across multiple machines.






    share|improve this answer




























      0














      NDB is more complex to set up, but may provide a faster way to get to 13K qps sharded across multiple machines.






      share|improve this answer


























        0












        0








        0







        NDB is more complex to set up, but may provide a faster way to get to 13K qps sharded across multiple machines.






        share|improve this answer













        NDB is more complex to set up, but may provide a faster way to get to 13K qps sharded across multiple machines.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 19 '18 at 14:11









        Rick JamesRick James

        43.5k22259




        43.5k22259






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Database Administrators Stack Exchange!


            • 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%2fdba.stackexchange.com%2fquestions%2f201603%2fmysql-innodb-or-mysql-ndb-cluster-which-one-to-use%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

            Liste der Baudenkmale in Friedland (Mecklenburg)

            Single-Malt-Whisky

            Czorneboh