Cassandra - Heavy reads and moderate updates with large data in one column - Performance issue









up vote
2
down vote

favorite












I have initial data which when loaded in Cassandra, the total size shown is 3.5GB



After that I do heavy read like 10k reads per second and moderate update like 1k updates per second but in update one of the column size is updated to larger size such that the total size of the row increases from 1k to almost 5k



The storage thing is that size of the Node keeps increasing non stop to even going up to 300GB and only heading up



Compaction is running, read performances keeps on degrading nonstop. Is Cassandra having trouble with updates of row to 5k from 2k ?



This is a AWS 30GB RAM machine with 16 processors and 1TB SSD with 32k IOPS activated. Compaction throughput set at 256 and compactors at 8, still the deviation of reads continue and size of SS Tables increasing



Reads per second degrades from 22k per second to as bad as 5k per second over a period of 1 day



Please let me know what is wrong in the configuration










share|improve this question





















  • On the update are you updating the same row repeatedly? Are you updating the entire row or just a column? Can you provide your schema and queries here?
    – bechbd
    Nov 11 at 13:57










  • There are 30 million rows first pre populated and then sequentially updating them one by one from initial size of 2k to 5k. All values randomised and especially that one column which is most sized compared to all columns in the row
    – Tahseen
    Nov 11 at 14:01










  • can you include your existing schema (including compaction settings) and tablestats output?
    – Chris Lohfink
    Nov 11 at 21:18










  • Which compaction strategy are you using? Can you post the output of "nodetool compactionstats" and also ssh to the node and check how many SSTable files are present in the data directory? Also, which version of Cassandra are you using?
    – Justin Cameron
    Nov 12 at 0:31











  • Levelled Compaction pending tasks: 582 - t.cc: 299 - t.ss: 283
    – Tahseen
    Nov 12 at 12:13














up vote
2
down vote

favorite












I have initial data which when loaded in Cassandra, the total size shown is 3.5GB



After that I do heavy read like 10k reads per second and moderate update like 1k updates per second but in update one of the column size is updated to larger size such that the total size of the row increases from 1k to almost 5k



The storage thing is that size of the Node keeps increasing non stop to even going up to 300GB and only heading up



Compaction is running, read performances keeps on degrading nonstop. Is Cassandra having trouble with updates of row to 5k from 2k ?



This is a AWS 30GB RAM machine with 16 processors and 1TB SSD with 32k IOPS activated. Compaction throughput set at 256 and compactors at 8, still the deviation of reads continue and size of SS Tables increasing



Reads per second degrades from 22k per second to as bad as 5k per second over a period of 1 day



Please let me know what is wrong in the configuration










share|improve this question





















  • On the update are you updating the same row repeatedly? Are you updating the entire row or just a column? Can you provide your schema and queries here?
    – bechbd
    Nov 11 at 13:57










  • There are 30 million rows first pre populated and then sequentially updating them one by one from initial size of 2k to 5k. All values randomised and especially that one column which is most sized compared to all columns in the row
    – Tahseen
    Nov 11 at 14:01










  • can you include your existing schema (including compaction settings) and tablestats output?
    – Chris Lohfink
    Nov 11 at 21:18










  • Which compaction strategy are you using? Can you post the output of "nodetool compactionstats" and also ssh to the node and check how many SSTable files are present in the data directory? Also, which version of Cassandra are you using?
    – Justin Cameron
    Nov 12 at 0:31











  • Levelled Compaction pending tasks: 582 - t.cc: 299 - t.ss: 283
    – Tahseen
    Nov 12 at 12:13












up vote
2
down vote

favorite









up vote
2
down vote

favorite











I have initial data which when loaded in Cassandra, the total size shown is 3.5GB



After that I do heavy read like 10k reads per second and moderate update like 1k updates per second but in update one of the column size is updated to larger size such that the total size of the row increases from 1k to almost 5k



The storage thing is that size of the Node keeps increasing non stop to even going up to 300GB and only heading up



Compaction is running, read performances keeps on degrading nonstop. Is Cassandra having trouble with updates of row to 5k from 2k ?



This is a AWS 30GB RAM machine with 16 processors and 1TB SSD with 32k IOPS activated. Compaction throughput set at 256 and compactors at 8, still the deviation of reads continue and size of SS Tables increasing



Reads per second degrades from 22k per second to as bad as 5k per second over a period of 1 day



Please let me know what is wrong in the configuration










share|improve this question













I have initial data which when loaded in Cassandra, the total size shown is 3.5GB



After that I do heavy read like 10k reads per second and moderate update like 1k updates per second but in update one of the column size is updated to larger size such that the total size of the row increases from 1k to almost 5k



The storage thing is that size of the Node keeps increasing non stop to even going up to 300GB and only heading up



Compaction is running, read performances keeps on degrading nonstop. Is Cassandra having trouble with updates of row to 5k from 2k ?



This is a AWS 30GB RAM machine with 16 processors and 1TB SSD with 32k IOPS activated. Compaction throughput set at 256 and compactors at 8, still the deviation of reads continue and size of SS Tables increasing



Reads per second degrades from 22k per second to as bad as 5k per second over a period of 1 day



Please let me know what is wrong in the configuration







cassandra datastax






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 11 at 12:08









Tahseen

315220




315220











  • On the update are you updating the same row repeatedly? Are you updating the entire row or just a column? Can you provide your schema and queries here?
    – bechbd
    Nov 11 at 13:57










  • There are 30 million rows first pre populated and then sequentially updating them one by one from initial size of 2k to 5k. All values randomised and especially that one column which is most sized compared to all columns in the row
    – Tahseen
    Nov 11 at 14:01










  • can you include your existing schema (including compaction settings) and tablestats output?
    – Chris Lohfink
    Nov 11 at 21:18










  • Which compaction strategy are you using? Can you post the output of "nodetool compactionstats" and also ssh to the node and check how many SSTable files are present in the data directory? Also, which version of Cassandra are you using?
    – Justin Cameron
    Nov 12 at 0:31











  • Levelled Compaction pending tasks: 582 - t.cc: 299 - t.ss: 283
    – Tahseen
    Nov 12 at 12:13
















  • On the update are you updating the same row repeatedly? Are you updating the entire row or just a column? Can you provide your schema and queries here?
    – bechbd
    Nov 11 at 13:57










  • There are 30 million rows first pre populated and then sequentially updating them one by one from initial size of 2k to 5k. All values randomised and especially that one column which is most sized compared to all columns in the row
    – Tahseen
    Nov 11 at 14:01










  • can you include your existing schema (including compaction settings) and tablestats output?
    – Chris Lohfink
    Nov 11 at 21:18










  • Which compaction strategy are you using? Can you post the output of "nodetool compactionstats" and also ssh to the node and check how many SSTable files are present in the data directory? Also, which version of Cassandra are you using?
    – Justin Cameron
    Nov 12 at 0:31











  • Levelled Compaction pending tasks: 582 - t.cc: 299 - t.ss: 283
    – Tahseen
    Nov 12 at 12:13















On the update are you updating the same row repeatedly? Are you updating the entire row or just a column? Can you provide your schema and queries here?
– bechbd
Nov 11 at 13:57




On the update are you updating the same row repeatedly? Are you updating the entire row or just a column? Can you provide your schema and queries here?
– bechbd
Nov 11 at 13:57












There are 30 million rows first pre populated and then sequentially updating them one by one from initial size of 2k to 5k. All values randomised and especially that one column which is most sized compared to all columns in the row
– Tahseen
Nov 11 at 14:01




There are 30 million rows first pre populated and then sequentially updating them one by one from initial size of 2k to 5k. All values randomised and especially that one column which is most sized compared to all columns in the row
– Tahseen
Nov 11 at 14:01












can you include your existing schema (including compaction settings) and tablestats output?
– Chris Lohfink
Nov 11 at 21:18




can you include your existing schema (including compaction settings) and tablestats output?
– Chris Lohfink
Nov 11 at 21:18












Which compaction strategy are you using? Can you post the output of "nodetool compactionstats" and also ssh to the node and check how many SSTable files are present in the data directory? Also, which version of Cassandra are you using?
– Justin Cameron
Nov 12 at 0:31





Which compaction strategy are you using? Can you post the output of "nodetool compactionstats" and also ssh to the node and check how many SSTable files are present in the data directory? Also, which version of Cassandra are you using?
– Justin Cameron
Nov 12 at 0:31













Levelled Compaction pending tasks: 582 - t.cc: 299 - t.ss: 283
– Tahseen
Nov 12 at 12:13




Levelled Compaction pending tasks: 582 - t.cc: 299 - t.ss: 283
– Tahseen
Nov 12 at 12:13












1 Answer
1






active

oldest

votes

















up vote
0
down vote













Basically observe pending compactions and if they increase first start increasing the compaction throughput using nodetool.



If you see that the pending compactions has started reducing then increase it a bit more from that configuration as a buffer.



Also you can increase the concurrent compactors also by small amount if you usee CPU is not overloaded during operations + compaction






share|improve this answer




















    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    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',
    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
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53248581%2fcassandra-heavy-reads-and-moderate-updates-with-large-data-in-one-column-per%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








    up vote
    0
    down vote













    Basically observe pending compactions and if they increase first start increasing the compaction throughput using nodetool.



    If you see that the pending compactions has started reducing then increase it a bit more from that configuration as a buffer.



    Also you can increase the concurrent compactors also by small amount if you usee CPU is not overloaded during operations + compaction






    share|improve this answer
























      up vote
      0
      down vote













      Basically observe pending compactions and if they increase first start increasing the compaction throughput using nodetool.



      If you see that the pending compactions has started reducing then increase it a bit more from that configuration as a buffer.



      Also you can increase the concurrent compactors also by small amount if you usee CPU is not overloaded during operations + compaction






      share|improve this answer






















        up vote
        0
        down vote










        up vote
        0
        down vote









        Basically observe pending compactions and if they increase first start increasing the compaction throughput using nodetool.



        If you see that the pending compactions has started reducing then increase it a bit more from that configuration as a buffer.



        Also you can increase the concurrent compactors also by small amount if you usee CPU is not overloaded during operations + compaction






        share|improve this answer












        Basically observe pending compactions and if they increase first start increasing the compaction throughput using nodetool.



        If you see that the pending compactions has started reducing then increase it a bit more from that configuration as a buffer.



        Also you can increase the concurrent compactors also by small amount if you usee CPU is not overloaded during operations + compaction







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 18 at 19:11









        Tahseen

        315220




        315220



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • 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.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • 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%2fstackoverflow.com%2fquestions%2f53248581%2fcassandra-heavy-reads-and-moderate-updates-with-large-data-in-one-column-per%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







            這個網誌中的熱門文章

            What does pagestruct do in Eviews?

            Dutch intervention in Lombok and Karangasem

            Channel Islands