MySQL Forums
Forum List  »  NDB clusters

Re: Setting up partitioning (5.0)
Posted by: dave irving
Date: February 06, 2006 08:16AM

Mikael Ronstrom wrote:

> First partition goes to first group, next partition to next group
> and so forth. Each partition is placed on all nodes in the node group it is placed.

I think Im still not quite getting this 100% :o)
My understanding was based on http://dev.mysql.com/doc/refman/5.0/en/mysql-cluster-db-definition.html, which says:

"Node groups are formed implicitly. The first node group is formed by the set of data nodes with the lowest node IDs, the next node group by the set of the next lowest node identities, and so on".

I also believed that the number of partitions == number of node groups (http://dev.mysql.com/doc/refman/5.0/en/mysql-cluster-nodes-groups.html).

So for setting up node groups and partitions, the only variables I could see were:

a) The number of data nodes
b) The value of the NoOfReplicas parameter

Hence my example: If I have 4 data nodes (1, 2, 3, 4) and number of replicas == 2, I thought that nodes 1 and 2 would form the first group (partition "A") and nodes 3 and 4 would form the second group (partition "B"). Thus I thought that data would be partitioned across groups A and B, and replicated within them.

Likewise, If I have 2 data nodes (1, 2) and number of replicas == 2, I thought that nodes 1 and 2 would form the first and only group (partition "A"). Thus I thought that data would be replicated across nodes 1 and 2, but not partitioned.

So I guess Im not getting something, as my understanding does not tally with your comment:

> Actually the number of partitions is equal to the number of data nodes.

Could you possibly elaborate to help me clear up my confusion?

Many thanks,

Dave

Options: Reply• Quote


Subject
Views
Written By
Posted
3026
February 01, 2006 08:19AM
1618
February 01, 2006 08:37AM
1632
February 01, 2006 10:37AM
Re: Setting up partitioning (5.0)
1643
February 06, 2006 08:16AM
1658
February 06, 2006 08:36AM
1568
February 06, 2006 09:11AM
1597
February 06, 2006 04:36PM
1438
February 07, 2006 05:31AM
1754
February 16, 2006 04:44PM
1696
February 18, 2006 04:23PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.