Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@db ~]# telnet localhost 11211
- Trying ::1...
- Connected to localhost.
- Escape character is '^]'.
- set key 0 900 4
- data
- STORED
- quit
- Connection closed by foreign host.
- [ndb_mgmd default]
- datadir=/var/lib/mysql-cluster # Directory for MGM node log files
- [ndb_mgmd]
- # Management process options:
- hostname=127.0.0.232 # Hostname or IP address of MGM node
- NodeId=101
- #[ndb_mgmd]
- # Management process options:
- hostname=127.0.0.235 # Hostname or IP address of MGM node
- NodeId=102
- [ndbd default]
- # Options affecting ndbd processes on all data nodes:
- NoOfReplicas=1 # Number of replicas
- datadir=/var/lib/mysql-cluster/data # Directory for this data node's data files
- DataMemory=10G # How much memory to allocate for data storage
- IndexMemory=2G # How much memory to allocate for index storage
- LockPagesInMainMemory=1 # Locks data node processes into memory. Doing so prevents them from swapping to disk
- MaxNoOfConcurrentOperations=1000000
- MaxNoOfTables=200
- MaxNoOfAttributes=4000
- MaxNoOfOrderedIndexes=10000
- [ndbd]
- # Options for data node "A":
- # (one [ndbd] section per data node)
- hostname=127.0.0.233 # Hostname or IP address
- NodeId=1
- #[ndbd]
- # Options for data node "B":
- hostname=127.0.0.236 # Hostname or IP address
- NodeId=2
- [mysqld]
- # SQL node options:
- hostname=127.0.0.233 # Hostname or IP address
- NodeId=51
- [mysqld]
- # SQL node options (1st for memcached):
- hostname=127.0.0.233 # Hostname or IP address
- [mysqld]
- # SQL node options (2nd for memcached):
- hostname=127.0.0.233 # Hostname or IP address
- [mysqld]
- # SQL node options (3rd for memcached):
- hostname=127.0.0.233 # Hostname or IP address
- [mysqld]
- # SQL node options (4th for memcached):
- hostname=127.0.0.233 # Hostname or IP address
- #[mysqld]
- # SQL node options:
- hostname=127.0.0.236 # Hostname or IP address
- NodeId=52
- #[mysqld]
- # SQL node options (1st for memcached):
- hostname=127.0.0.236 # Hostname or IP address
- #[mysqld]
- # SQL node options (2nd for memcached):
- hostname=127.0.0.236 # Hostname or IP address
- #[mysqld]
- # SQL node options (3rd for memcached):
- hostname=127.0.0.236 # Hostname or IP address
- #[mysqld]
- # SQL node options (4th for memcached):
- hostname=127.0.0.236 # Hostname or IP address
- [mysqld]
- # Options for mysqld process:
- ndbcluster # run NDB storage engine
- ndb-nodeid=51
- server-id=51
- [mysql_cluster]
- # Options for MySQL Cluster processes:
- ndb-connectstring=127.0.0.232 # location of management server
- [mysql]
- prompt="(u@h) [d]>_"
- ndb_mgm> show
- Cluster Configuration
- ---------------------
- [ndbd(NDB)] 1 node(s)
- id=1 @127.0.0.233 (mysql-5.6.21 ndb-7.3.7, Nodegroup: 0, *)
- [ndb_mgmd(MGM)] 1 node(s)
- id=101 @127.0.0.232 (mysql-5.6.21 ndb-7.3.7)
- [mysqld(API)] 5 node(s)
- id=51 @127.0.0.233 (mysql-5.6.21 ndb-7.3.7)
- id=52 @127.0.0.233 (mysql-5.6.21 ndb-7.3.7)
- id=53 @127.0.0.233 (mysql-5.6.21 ndb-7.3.7)
- id=54 @127.0.0.233 (mysql-5.6.21 ndb-7.3.7)
- id=55 (not connected, accepting connect from 127.0.0.233)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement