Skip to content

Instantly share code, notes, and snippets.

@hub-cap
Last active August 29, 2015 14:02
Show Gist options
  • Save hub-cap/97209d97c86d0a1fd3e2 to your computer and use it in GitHub Desktop.
Save hub-cap/97209d97c86d0a1fd3e2 to your computer and use it in GitHub Desktop.
mysql> explain parent_load_balancers;
+------------------+---------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+------------------+---------+------+-----+---------+-------+
| load_balancer_id | int(11) | NO | PRI | NULL | |
| virtual_ip_id | int(11) | NO | | NULL | |
+------------------+---------+------+-----+---------+-------+
2 rows in set (0.00 sec)
child_load_balancers
+-------------------------+-----------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------------------------+-----------+------+-----+---------+-------+
| id | char(36) | NO | PRI | NULL | |
| load_balancer_id | int(11) | YES | | NULL | |
| parent_load_balancer_id | int(11) | NO | MUL | NULL | |
| port | int(11) | NO | | NULL | |
| datastore_type | char(16) | YES | | NULL | |
| state | char(20) | YES | | NULL | |
| dns_name | char(255) | YES | | NULL | |
+-------------------------+-----------+------+-----+---------+-------+
7 rows in set (0.00 sec)
mysql> explain load_balancer_nodes;
+------------------------+------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+------------------------+------------+------+-----+---------+-------+
| id | char(36) | NO | PRI | | |
| child_load_balancer_id | char(36) | YES | | NULL | |
| dns_name | char(255) | YES | | NULL | |
| primary_node | tinyint(1) | YES | | 0 | |
| private_ip | char(15) | YES | | NULL | |
+------------------------+------------+------+-----+---------+-------+
5 rows in set (0.00 sec)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment