{"id":926,"date":"2008-05-27T10:43:56","date_gmt":"2008-05-27T00:43:56","guid":{"rendered":"http:\/\/www.flamingspork.com\/blog\/?p=926"},"modified":"2013-12-18T08:47:05","modified_gmt":"2013-12-17T22:47:05","slug":"ndbinfo","status":"publish","type":"post","link":"https:\/\/www.flamingspork.com\/blog\/2008\/05\/27\/ndbinfo\/","title":{"rendered":"NDB$INFO"},"content":{"rendered":"<p>There&#8217;s been talk over the years of better monitoring for NDB (<a href=\"http:\/\/www.mysql.com\/products\/database\/cluster\/\">MySQL Cluster<\/a>). This has been dubiously named NDB$INFO, after some special magical naming convention for tables holding information on the insides of NDB.  Otherwise known as <a href=\"http:\/\/web.archive.org\/web\/20111102182220\/http:\/\/forge.mysql.com\/worklog\/task.php?id=3363\">Worklog 3363<\/a> (viewable on <a href=\"http:\/\/forge.mysql.com\">MySQL Forge<\/a>).<\/p>\n<p>The basic idea is to get a bunch of things that are already known inside NDB available through a rather standard interface (SQL is preferred).<\/p>\n<p>My top examples are &#8220;How much DataMemory is used?&#8221; and &#8220;Do I need to increase MaxNoOf(Tables|Attributes|ConcurrentTransactions)?&#8221;. You can get some of this information now either through the management client (ndb_mgm -e &#8220;all report MemoryUsage&#8221;) or the <a href=\"http:\/\/dev.mysql.com\/doc\/ndbapi\/en\/mgm-api.html\">MGM API<\/a> using events and some other foo.<\/p>\n<p>This is a rather limited interface though. It would be great if you could point all your monitoring stuff to a MySQL Server,  throwing queries at it and finding out the state of your cluster.<\/p>\n<p>So this year I&#8217;ve been working on implementing NDB$INFO. The big requirements (for me at least) are:<\/p>\n<ol>\n<li>Everything can be queried easly from SQL<\/li>\n<li>It&#8217;s easy to add a new NDB$INFO table (for a NDB developer)<\/li>\n<li>you can use NDB$INFO tables to diagnose problems (such as nodes not connecting)<\/li>\n<\/ol>\n<p>Among the 492 things I&#8217;m currently doing, is fixing up a basic patchset for NDB$INFO and working on getting it into the tree. It&#8217;s all going to be basic scan interfaces in the current version, so things may be slow if there&#8217;s lots of rows, but they&#8217;ll get there.<\/p>\n<p>What would you like to see exposed?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There&#8217;s been talk over the years of better monitoring for NDB (MySQL Cluster). This has been dubiously named NDB$INFO, after some special magical naming convention for tables holding information on the insides of NDB. Otherwise known as Worklog 3363 (viewable &hellip; <a href=\"https:\/\/www.flamingspork.com\/blog\/2008\/05\/27\/ndbinfo\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[14],"tags":[628,54],"class_list":["post-926","post","type-post","status-publish","format-standard","hentry","category-mysql","tag-mysql","tag-ndb"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/s5a6n8-ndbinfo","jetpack-related-posts":[{"id":1783,"url":"https:\/\/www.flamingspork.com\/blog\/2010\/02\/03\/ndbinfo-with-sql-hits-beta\/","url_meta":{"origin":926,"position":0},"title":"NDB$INFO with SQL hits beta","author":"Stewart Smith","date":"2010-02-03","format":false,"excerpt":"\u00ef\u00bb\u00bfBernhard blogged over at http:\/\/ocklin.blogspot.com\/2010\/02\/mysql-cluster-711-is-there.html that MySQL Cluster 7.1.1 Beta has been released. The big feature (from my point of view) is the SQL interface on top of NDB$INFO. This means there is now full infrastructure from the NDB data nodes right out to SQL in the MySQL Server for\u2026","rel":"","context":"In &quot;General&quot;","block_context":{"text":"General","link":"https:\/\/www.flamingspork.com\/blog\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1316,"url":"https:\/\/www.flamingspork.com\/blog\/2008\/12\/18\/ndbinfo-sql-interface\/","url_meta":{"origin":926,"position":1},"title":"NDB$INFO SQL Interface","author":"Stewart Smith","date":"2008-12-18","format":false,"excerpt":"Just saw a brief \"this is how it's currently working\" on Martin's implementation of the SQL frontend to the NDB$INFO work. It's awesome.","rel":"","context":"In &quot;mysql&quot;","block_context":{"text":"mysql","link":"https:\/\/www.flamingspork.com\/blog\/category\/work-et-al\/mysql\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":776,"url":"https:\/\/www.flamingspork.com\/blog\/2007\/01\/08\/ndb-ndb-the-storage-engine-for-me\/","url_meta":{"origin":926,"position":2},"title":"NDB! NDB! The storage engine for me!","author":"Stewart Smith","date":"2007-01-08","format":false,"excerpt":"Today I set up a mysqld connected to my not-quite-HA cluster at home here to replicate from my MythTV database into cluster. The idea behind this is to eat an increasing amount of my own dogfood around the house. To do this, I also set up the MySQL Instance Manager\u2026","rel":"","context":"In &quot;mysql&quot;","block_context":{"text":"mysql","link":"https:\/\/www.flamingspork.com\/blog\/category\/work-et-al\/mysql\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":478,"url":"https:\/\/www.flamingspork.com\/blog\/2005\/10\/03\/a-funky-thing-done-last-week\/","url_meta":{"origin":926,"position":3},"title":"a funky thing done last week&#8230;","author":"Stewart Smith","date":"2005-10-03","format":false,"excerpt":"still have to talk to people about standards for this sort of thing and all that. But as a first checkin - funkyness++! mysql> select * from INFORMATION_SCHEMA.DATAFILES; select * from INFORMATION_SCHEMA.TABLESPACES; Empty set (0.03 sec) Empty set (0.00 sec) mysql> CREATE TABLESPACE ts1 ADD DATAFILE 'datafile.dat' USE LOGFILE GROUP\u2026","rel":"","context":"In &quot;mysql&quot;","block_context":{"text":"mysql","link":"https:\/\/www.flamingspork.com\/blog\/category\/work-et-al\/mysql\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1229,"url":"https:\/\/www.flamingspork.com\/blog\/2008\/10\/14\/mysql-cluster-ndb-on-win32-progress\/","url_meta":{"origin":926,"position":4},"title":"MySQL Cluster (NDB) on Win32 progress","author":"Stewart Smith","date":"2008-10-14","format":false,"excerpt":"Many things have been happenning in the land of NDB on Win32 as of late. I've fixed about 700 compiler warnings (some of which were real bugs) leaving about 161 to go on Win32 (VS2003). We're getting a few more warnings on Win64 (some of which look merely semantic, while\u2026","rel":"","context":"In &quot;General&quot;","block_context":{"text":"General","link":"https:\/\/www.flamingspork.com\/blog\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":754,"url":"https:\/\/www.flamingspork.com\/blog\/2006\/10\/26\/mysql-ndb-team-trees-up-on-bkbitsnet\/","url_meta":{"origin":926,"position":5},"title":"mysql NDB team trees up on bkbits.net","author":"Stewart Smith","date":"2006-10-26","format":false,"excerpt":"If you head over here: mysql on bkbits.net you can get a copy of the NDB team trees. This is where we push stuff before it hits the main MySQL trees so that we can get some extra testing in (also for when pulling from the main tree). So you\u2026","rel":"","context":"In &quot;mysql&quot;","block_context":{"text":"mysql","link":"https:\/\/www.flamingspork.com\/blog\/category\/work-et-al\/mysql\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/posts\/926","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/comments?post=926"}],"version-history":[{"count":3,"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/posts\/926\/revisions"}],"predecessor-version":[{"id":3585,"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/posts\/926\/revisions\/3585"}],"wp:attachment":[{"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/media?parent=926"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/categories?post=926"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.flamingspork.com\/blog\/wp-json\/wp\/v2\/tags?post=926"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}