Pythian has openings for MySQL and MS SQL Server DBAs in each of our offices in Ottawa, Canada; Boston, USA; Dubai, UAE; and Hyderabad, India. If you are a MySQL and/or SQL Server DBA and would like to evaluate this opportunity, please send us your résumé with an introductory paragraph to hr@pythian.com.

Pop Quiz: MySQL Cluster

March 15th, 2008 - by Sheeri Cabral

If you have a 12-server MySQL Cluster with:

1 Management Node
3 SQL Nodes
2 Data Node Groups, 4 Data Nodes per group

And each machine is configured to allocate 1G of memory for its function, how much data (data + indexes) can you store in total in your cluster?

You can guess, but you get bonus points if you explain why and the explanation is correct.

Bookmark online using:These icons link to social bookmarking sites where readers can share and discover new web pages.
  • del.icio.us
  • digg
  • Reddit
  • Spurl
  • Furl
  • blogmarks

Tags:

6 Responses to “Pop Quiz: MySQL Cluster”

  1. Matthew Montgomery Says:

    Slightly less than 2GB of usable DataMemory+IndexMemory

    All nodes in a node group will be identical replicas. So each node group will only hold 1GB. Your usable memory is limited by the number of node groups you have. You will also use some memory for operation records and log buffers (MaxNoOfConcurrentOperations, RedoBuffer, UndoDataBuffer, etc…)

    p.s. 4 nodes per node group is not so thoroughly tested and just plain silly.

    [[Matthew — you’re right! BTW, I only used 4 nodes per node group so I could have a 2,3,4 pattern — easier to understand if it’s something multiplied or divided by 2, 3 or 4 then it relates to that. I could have said 4 node groups with 2 nodes in each group instead.]]

  2. Artem Russakovskii Says:

    2GB? Each node group would have 1GB of memory since they share the same data and there’s 2 of them?

    [[Artem — you are correct!]]

  3. Matic Says:

    4GB. Data is stored in data nodes (8 nodes total). Each node has 1/2 of memory dedicated to live dataset and the other half to redundant dataset.

  4. Sheeri Cabral Says:

    Matic — nope, that’s not it. See the other 2 comments before yours for the correct answer, and why.

  5. Artem Russakovskii Says:

    Hehe, it looks as if I just copied the answer above mine, but in reality it’s because none of the comments were visible at the time :-]

  6. Log Buffer #89: a Carnival of the Vanities for DBAs Says:

    […] the MySQL world, Sheeri Cabral challenges anyone who thinks they know MySQL to a pop-quiz. She asks, “If you have a 12-server MySQL Cluster with: 1 Management Node, 3 SQL Nodes, 2 […]

Leave a Reply

Filling out the following captcha not only allows us to cut down on automated blogspam but also helps digitize books. Please feel free to send comments on this approach directly to Paul at vallee@pythian.com.

NOTE: After submitting your comment, verify that it is added to the blog. New comments will be marked as "waiting for moderation" (we only moderate for spam). If the level of spam is as low as we hope, we will bypass this step.