Dose galera cluster perform read load balancing?












0















Hi Now I'm doing benchmark test with several type mariadb replication with sysbench.



1 Master - 2 Slave MariaDB on kubernetes with ceph stroage.
3 Master with Galera Cluster on kubernetes with ceph storage.
sysbench attach directly each master without LB. I expect that Master-Slave and Galera Cluster's Read performance similarly. Because I know that galera dosen't perform read load balaning, only depending LB in front of Galera Cluster. But Galera-Cluster read performance is much better. below is command to run sysbench with 1 Thread.



-- 1 Master - 2 Slave --



# sysbench --db-driver=mysql --mysql-host=10.233.4.251 --mysql-user=root --mysql-password=root --mysql-db=bmt --range_size=10000 --table_size=100000 --tables=2 --threads=1 --events=0 --time=300 --rand-type=uniform /usr/share/sysbench/oltp_read_only.lua run
transactions: 4135 (13.78 per sec.)`


-- 3 Master Galera Cluster --



# sysbench --db-driver=mysql --mysql-host=10.233.25.60 --mysql-user=root --mysql-password=root --mysql-db=bmt --range_size=10000 --table_size=100000 --tables=2 --threads=1 --events=0 --time=300 --rand-type=uniform /usr/share/sysbench/oltp_read_only.lua run
transactions: 17548 (58.49 per sec.)


Maria Options such as innodb_autoinc_lock_mode, innodb_flush_log_at_trx_commit, innodb_buffer_pool_size is the same.



Could i get some advice or opinion?? Thanks.










share|improve this question













migrated from superuser.com Jan 3 at 8:21


This question came from our site for computer enthusiasts and power users.














  • 1





    I'm lost -- Were you running 3 sysbenches in each test? Were any writes going on? Was there a load-balancer in use in either configuration? Were the times an average across the nodes?

    – Rick James
    Jan 3 at 16:40
















0















Hi Now I'm doing benchmark test with several type mariadb replication with sysbench.



1 Master - 2 Slave MariaDB on kubernetes with ceph stroage.
3 Master with Galera Cluster on kubernetes with ceph storage.
sysbench attach directly each master without LB. I expect that Master-Slave and Galera Cluster's Read performance similarly. Because I know that galera dosen't perform read load balaning, only depending LB in front of Galera Cluster. But Galera-Cluster read performance is much better. below is command to run sysbench with 1 Thread.



-- 1 Master - 2 Slave --



# sysbench --db-driver=mysql --mysql-host=10.233.4.251 --mysql-user=root --mysql-password=root --mysql-db=bmt --range_size=10000 --table_size=100000 --tables=2 --threads=1 --events=0 --time=300 --rand-type=uniform /usr/share/sysbench/oltp_read_only.lua run
transactions: 4135 (13.78 per sec.)`


-- 3 Master Galera Cluster --



# sysbench --db-driver=mysql --mysql-host=10.233.25.60 --mysql-user=root --mysql-password=root --mysql-db=bmt --range_size=10000 --table_size=100000 --tables=2 --threads=1 --events=0 --time=300 --rand-type=uniform /usr/share/sysbench/oltp_read_only.lua run
transactions: 17548 (58.49 per sec.)


Maria Options such as innodb_autoinc_lock_mode, innodb_flush_log_at_trx_commit, innodb_buffer_pool_size is the same.



Could i get some advice or opinion?? Thanks.










share|improve this question













migrated from superuser.com Jan 3 at 8:21


This question came from our site for computer enthusiasts and power users.














  • 1





    I'm lost -- Were you running 3 sysbenches in each test? Were any writes going on? Was there a load-balancer in use in either configuration? Were the times an average across the nodes?

    – Rick James
    Jan 3 at 16:40














0












0








0








Hi Now I'm doing benchmark test with several type mariadb replication with sysbench.



1 Master - 2 Slave MariaDB on kubernetes with ceph stroage.
3 Master with Galera Cluster on kubernetes with ceph storage.
sysbench attach directly each master without LB. I expect that Master-Slave and Galera Cluster's Read performance similarly. Because I know that galera dosen't perform read load balaning, only depending LB in front of Galera Cluster. But Galera-Cluster read performance is much better. below is command to run sysbench with 1 Thread.



-- 1 Master - 2 Slave --



# sysbench --db-driver=mysql --mysql-host=10.233.4.251 --mysql-user=root --mysql-password=root --mysql-db=bmt --range_size=10000 --table_size=100000 --tables=2 --threads=1 --events=0 --time=300 --rand-type=uniform /usr/share/sysbench/oltp_read_only.lua run
transactions: 4135 (13.78 per sec.)`


-- 3 Master Galera Cluster --



# sysbench --db-driver=mysql --mysql-host=10.233.25.60 --mysql-user=root --mysql-password=root --mysql-db=bmt --range_size=10000 --table_size=100000 --tables=2 --threads=1 --events=0 --time=300 --rand-type=uniform /usr/share/sysbench/oltp_read_only.lua run
transactions: 17548 (58.49 per sec.)


Maria Options such as innodb_autoinc_lock_mode, innodb_flush_log_at_trx_commit, innodb_buffer_pool_size is the same.



Could i get some advice or opinion?? Thanks.










share|improve this question














Hi Now I'm doing benchmark test with several type mariadb replication with sysbench.



1 Master - 2 Slave MariaDB on kubernetes with ceph stroage.
3 Master with Galera Cluster on kubernetes with ceph storage.
sysbench attach directly each master without LB. I expect that Master-Slave and Galera Cluster's Read performance similarly. Because I know that galera dosen't perform read load balaning, only depending LB in front of Galera Cluster. But Galera-Cluster read performance is much better. below is command to run sysbench with 1 Thread.



-- 1 Master - 2 Slave --



# sysbench --db-driver=mysql --mysql-host=10.233.4.251 --mysql-user=root --mysql-password=root --mysql-db=bmt --range_size=10000 --table_size=100000 --tables=2 --threads=1 --events=0 --time=300 --rand-type=uniform /usr/share/sysbench/oltp_read_only.lua run
transactions: 4135 (13.78 per sec.)`


-- 3 Master Galera Cluster --



# sysbench --db-driver=mysql --mysql-host=10.233.25.60 --mysql-user=root --mysql-password=root --mysql-db=bmt --range_size=10000 --table_size=100000 --tables=2 --threads=1 --events=0 --time=300 --rand-type=uniform /usr/share/sysbench/oltp_read_only.lua run
transactions: 17548 (58.49 per sec.)


Maria Options such as innodb_autoinc_lock_mode, innodb_flush_log_at_trx_commit, innodb_buffer_pool_size is the same.



Could i get some advice or opinion?? Thanks.







mysql mariadb






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 3 at 1:54







Supsupi











migrated from superuser.com Jan 3 at 8:21


This question came from our site for computer enthusiasts and power users.









migrated from superuser.com Jan 3 at 8:21


This question came from our site for computer enthusiasts and power users.










  • 1





    I'm lost -- Were you running 3 sysbenches in each test? Were any writes going on? Was there a load-balancer in use in either configuration? Were the times an average across the nodes?

    – Rick James
    Jan 3 at 16:40














  • 1





    I'm lost -- Were you running 3 sysbenches in each test? Were any writes going on? Was there a load-balancer in use in either configuration? Were the times an average across the nodes?

    – Rick James
    Jan 3 at 16:40








1




1





I'm lost -- Were you running 3 sysbenches in each test? Were any writes going on? Was there a load-balancer in use in either configuration? Were the times an average across the nodes?

– Rick James
Jan 3 at 16:40





I'm lost -- Were you running 3 sysbenches in each test? Were any writes going on? Was there a load-balancer in use in either configuration? Were the times an average across the nodes?

– Rick James
Jan 3 at 16:40










0






active

oldest

votes











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%2f226233%2fdose-galera-cluster-perform-read-load-balancing%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown
























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















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%2f226233%2fdose-galera-cluster-perform-read-load-balancing%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

If I really need a card on my start hand, how many mulligans make sense? [duplicate]

Alcedinidae

Can an atomic nucleus contain both particles and antiparticles? [duplicate]