I install a cluster on version 7.6.4 with 1 master agg, 1 child agg and 2 leaves. after load some data I remove child agg and add leaf instead of it.
I rebalanced the database. the rebalancing end quickly and status OK.
But system doesnt use new leaf. and I create a new db and create the tables on this db. I load the data to new database. again system doesnt use the new leaf.
when I look the leaves, I see there is no pair host on new leaf.
You can use 3 nodes with HA. You donât need an even number of nodes if you use HA in âload_balancedâ mode instead of âpairedâ mode. See the second section in this article: Enabling High Availability · SingleStore Documentation
Hi @prerak
I change mode to load balanced and add a new leaf. after that rebalanced the db. after these my node data distribution be like below. 2 node has same size, but 3rd has 2 time more data. is it normal ?
thanks
In my experience, disk usage is not a good measure of whether all nodes have equal number of partitions. Singlestore disk usage is somewhat unpredictable because of preallocated files, etc.
I would ask you try this command, and if that produces an empty set, then you are fully rebalanced: EXPLAIN REBALANCE ALL DATABASES
Another useful command is: SHOW CLUSTER STATUS
If you want to see how many partitions are on each leaf node, try this:
select node_id, host, count(*) from information_schema.MV_CLUSTER_STATUS
where node_id in (select distinct node_id from information_schema.LEAVES)
group by 1;
If you find that equal(ish) number of partitions, then that is another confirmation.
Lastly, if all looks good, you can possibly release some disk space by issuing SNAPSHOT DATABASE <db_name> for all of your databases.