MySQL Forums
Forum List  »  NDB clusters

Re: Setting up partitioning (5.0)
Posted by: Mikael Ronström
Date: February 06, 2006 08:36AM

Hi,

dave irving wrote:
> 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-clust
> er-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-clus
> ter-nodes-groups.html).
>

No, number of partitions == number of nodes, It seems that there is a bug in the
manual in this area. I'll notify the docs team of this.

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

Correct

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

Correct.

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

Correct but data will still be partitioned in two partitions so that one
shares the primary replica role over the 2 nodes as well.

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

Pro
> > 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

Mikael Ronstrom
Senior Software Architect, MySQL AB
My blog: http://mikaelronstrom.blogspot.com

Options: Reply• Quote


Subject
Views
Written By
Posted
3026
February 01, 2006 08:19AM
1616
February 01, 2006 08:37AM
1631
February 01, 2006 10:37AM
1642
February 06, 2006 08:16AM
Re: Setting up partitioning (5.0)
1656
February 06, 2006 08:36AM
1567
February 06, 2006 09:11AM
1596
February 06, 2006 04:36PM
1437
February 07, 2006 05:31AM
1754
February 16, 2006 04:44PM
1695
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.