Quantcast
Channel: MySQL Forums - NDB clusters
Viewing all 1560 articles
Browse latest View live

ClusterJPA with non-jta Data Source backup? (no replies)

$
0
0
I'm currently using openjpa with mysql connector/j to my mysql cluster (using dbcp2 and jdbc:mysql:loadbalance).
I'm doing this in my persistence file using:
<property name="javax.persistence.nonJtaDataSource" value="java:/comp/env/jdbc/mydatasource" />

I want to start using clusterjpa with the NDB brokerfactory, but so far all the examples I have seen have the backup JDBC data source specified directly in the persistence file (url,user,pass).
Is it possible to use my non-jta data source with pooling instead?

On a side note, is there any updated docs on compiling/running with clusterjpa? The last official stuff seems from 7.1.2. Or has nothing really changed since then?

Thanks!

-Tony

data loss after restart the cluster (1 reply)

$
0
0
I am using Mysql cluster 7.3.7 and got a problem when I shutdown the cluster from management node and again start the cluster I got result with NO data in mysql data node all the data is loss.

How to tune for BatchByteSize (no replies)

$
0
0
Hi,

How to tune for BatchByteSize, BatchSize, MaxScanBatchSize and TotalSendBufferMemory ?

I need to tune these variables in mysql cluster.

Please help me.

mysqld api node (no replies)

$
0
0
Hi Guys

I setup mgm node and two data nodes and I put mysql node in mgm node, I have NDB 7.3 Redhat 6.6. When I do show command, data nodes connected but sql node node not. what is the issue?

Also if I want to fully test the cluster failover, what I have to do?? so from sql node do like : mysql -h data1 and data2, create a dummy database and tables then shutdown one node and add a row to table?? something like that?

Please clear these 2 things for me. many Thanks

error 4243 'Index not found' while adding constraint (1 reply)

$
0
0
Hi,

I am getting error 4243 'Index not found' from NDBCLUSTER") 'ALTER TABLE aggregate_metadata ADD CONSTRAINT uniq_aggregate_metadata0aggregate_id0key0deleted UNIQUE (aggregate_id, `key`, deleted)'

The table I try to add constraint to:

CREATE TABLE `aggregate_metadata` (
`created_at` datetime DEFAULT NULL,
`updated_at` datetime DEFAULT NULL,
`deleted_at` datetime DEFAULT NULL,
`id` int(11) NOT NULL AUTO_INCREMENT,
`aggregate_id` int(11) NOT NULL,
`key` varchar(255) NOT NULL,
`value` varchar(255) NOT NULL,
`deleted` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `aggregate_id` (`aggregate_id`),
CONSTRAINT `FK_262_282` FOREIGN KEY(`aggregate_id`) REFERENCES `aggregates` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION
) ENGINE=ndbcluster DEFAULT CHARSET=utf8;

Can I workaround this problem? Anything to change in config.ini?

Thanks for any hints!
Vladislav

No free node id found for mysqld(API) when executing ndbinfo_sellect_all logbuffers logspaces (1 reply)

$
0
0
Hello.

I'm running MySQL Cluster 7.3.7 on a CentOS 6.6 x64 with two Data nodes, each one in a separate host, and a Management and SQL node on the same host.

I'm following the documetation here: http://dev.mysql.com/doc/refman/5.6/en/mysql-cluster-programs-ndbinfo-select-all.html

and they give this example: ndbinfo_select_all logbuffers logspaces

I tried running this in the Management Node (which is also the SQL Node) and I got this error: Unable to connect to management server.
I checked the log file (/var/lib/mysql-cluster/ndb_1_cluster.log) and the error is this:

2015-01-29 17:17:39 [MgmtSrvr] WARNING -- Failed to allocate nodeid for API at x.x.x.20. Returned error: 'No free node id found for mysqld(API).'

(x.x.x.20 is the IP address of the Management node)

I've already searched for a solution, but I didn't found anything, maybe the answer is really obvious, but since I'm a newbie in the cluster architecture, I'm not seing it :/

Can anyone help?

Thanks a lot.

Regards,
Vilhena

Learn how to ensure business continuity with geographically distributed multi-master MySQL clusters (no replies)

$
0
0
Global data access can greatly expand the reach of your business. Continuent’s multi-site multi-master solutions enable applications to accept database traffic in multiple locations across on-premises and vCloud Air.

Join us on February 10th to learn about the benefits of combining multiple Continuent database clusters into a global multi-site multi-master topology.

Register at http://bit.ly/1L53VmN

Lock wait timeout exceeded; try restarting transaction (no replies)

$
0
0
there are two computer, one act as manage node and data node, the other act as sql node and data node.
when i use 155 clients to excute 'insert' statement, after few minutes, here comes the err below:
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: java.sql.SQLException: Lock wait timeout exceeded; try restarting transaction
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1055)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3515)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3447)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1951)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2101)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2548)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2477)
at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:741)
at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:587)
at test.Test.main(Test.java:83)

how can i prevent from it?

composite column for primary key in cluster (no replies)

$
0
0
Hi,

Are composite primary keys efficient in mysql cluster?

This is script:
--------------------
CREATE TABLE `Table1` (
`CONTS_ID` varchar(20) NOT NULL,
`ASSET_ID` varchar(20) NOT NULL,
`EFCT_START_DT` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`EFCT_END_DT` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
`INSRT_USER_ID` varchar(10) DEFAULT NULL,
`INSRT_DT` timestamp NULL DEFAULT NULL,
`UPDT_USER_ID` varchar(10) DEFAULT NULL,
`UPDT_DT` timestamp NULL DEFAULT NULL,
`ASSET_TYPE_CD` varchar(2) NOT NULL,
PRIMARY KEY (`CONTS_ID`,`ASSET_ID`,`EFCT_START_DT`,`EFCT_END_DT`)
) ENGINE=NDBCLUSTER DEFAULT CHARSET=utf8;
-----------------------

I just changed storeage from innodb to ndbcluster.
Some queries can't use the primary key for join tables and explain result is full scan .

Are composite primary keys good for mysql cluster?

Lock wait timeout and other errors (no replies)

$
0
0
Hello. I'm trying to use MySQL Cluster, but sometimes queries take long time and i get error "lock wait timeout exceeded".

There are following strings in logs:

2015-02-13 23:41:40 27483 [Note] NDB Binlog: Node: 1, down, Subscriber bitmask 00
2015-02-13 23:41:40 27483 [Note] NDB Binlog: Node: 2, down, Subscriber bitmask 00
2015-02-13 23:41:40 27483 [Note] NDB Binlog: cluster failure for ./mysql/ndb_schema at epoch 24339/0.
2015-02-13 23:41:40 27483 [Note] NDB Binlog: cluster failure for ./mysql/ndb_apply_status at epoch 24339/0.
2015-02-13 23:41:40 27483 [Note] Restarting Cluster Binlog
2015-02-13 23:41:40 27483 [Note] NDB Binlog: Ndb object created with reference : 0x80030035, name : Ndb Binlog schema change monitoring
2015-02-13 23:41:40 27483 [Note] NDB Binlog: Ndb object created with reference : 0x80050035, name : Ndb Binlog data change monitoring
2015-02-13 23:41:40 27483 [Note] NDB Binlog: DISCOVER TABLE Event: REPL$mysql/ndb_schema
2015-02-13 23:41:40 27483 [ERROR] NDB Binlog: Creating NdbEventOperation failed for REPL$mysql/ndb_schema
2015-02-13 23:41:40 27483 [ERROR] NDB Binlog:FAILED CREATE (DISCOVER) EVENT OPERATIONS Event: REPL$mysql/ndb_schema
2015-02-13 23:41:41 27483 [Note] table './lsd_test/t_events' opened read only
2015-02-13 23:41:41 27483 [Note] NDB Binlog: DISCOVER TABLE Event: REPL$mysql/ndb_schema
2015-02-13 23:41:41 27483 [ERROR] NDB Binlog: Creating NdbEventOperation failed for REPL$mysql/ndb_schema
2015-02-13 23:41:41 27483 [ERROR] NDB Binlog:FAILED CREATE (DISCOVER) EVENT OPERATIONS Event: REPL$mysql/ndb_schema
2015-02-13 23:41:41 27483 [Note] table './lsd_test/t_messages' opened read only


(every table opened read only, so i didn't include all those strings)

2015-02-13 23:41:41 27483 [Note] table './lsd_test/t_event_members' opened read only
2015-02-13 23:41:42 27483 [Note] NDB Binlog: DISCOVER TABLE Event: REPL$mysql/ndb_schema
2015-02-13 23:41:42 27483 [ERROR] NDB Binlog: Creating NdbEventOperation failed for REPL$mysql/ndb_schema
2015-02-13 23:41:42 27483 [ERROR] NDB Binlog:FAILED CREATE (DISCOVER) EVENT OPERATIONS Event: REPL$mysql/ndb_schema
2015-02-13 23:41:43 27483 [Note] NDB Binlog: DISCOVER TABLE Event: REPL$mysql/ndb_schema
2015-02-13 23:41:43 27483 [ERROR] NDB Binlog: Creating NdbEventOperation failed for REPL$mysql/ndb_schema
2015-02-13 23:41:43 27483 [ERROR] NDB Binlog:FAILED CREATE (DISCOVER) EVENT OPERATIONS Event: REPL$mysql/ndb_schema
2015-02-13 23:41:44 27483 [Note] table './lsd_test/t_relations' opened read only
2015-02-13 23:41:44 27483 [Note] NDB Binlog: DISCOVER TABLE Event: REPL$mysql/ndb_schema
2015-02-13 23:42:11 27483 [Note] table './lsd_test/t_event_members' opened read only
2015-02-13 23:42:14 27483 [Note] NDB Binlog: logging ./mysql/ndb_schema (UPDATED,USE_WRITE)
2015-02-13 23:42:14 27483 [Note] NDB Binlog: DISCOVER TABLE Event: REPL$mysql/ndb_apply_status
2015-02-13 23:42:14 27483 [Note] table './lsd_test/t_relations' opened read only
2015-02-13 23:42:14 27483 [Note] NDB Binlog: logging ./mysql/ndb_apply_status (UPDATED,USE_WRITE)
2015-02-13 23:42:14 27483 [Note] NDB: Cleaning stray tables from database 'information_schema'
2015-02-13 23:42:14 27483 [Note] NDB: Cleaning stray tables from database 'lsd_test'
2015-02-13 23:42:14 27483 [Note] NDB: Cleaning stray tables from database 'lsd_test_innodb'
2015-02-13 23:42:14 27483 [Note] NDB: Cleaning stray tables from database 'mytest'
2015-02-13 23:42:14 27483 [Note] NDB: Cleaning stray tables from database 'ndbinfo'
2015-02-13 23:42:14 27483 [Note] NDB: Cleaning stray tables from database 'performance_schema'
2015-02-13 23:42:14 27483 [Note] NDB: Cleaning stray tables from database 'test'
2015-02-13 23:42:14 27483 [Note] NDB: Cleaning stray tables from database 'test1'
2015-02-13 23:42:14 27483 [Note] NDB: Cleaning stray tables from database 'test_ndb'
2015-02-13 23:42:14 [NdbApi] INFO -- Flushing incomplete GCI:s < 24372/9
2015-02-13 23:42:14 [NdbApi] INFO -- Flushing incomplete GCI:s < 24372/9
2015-02-13 23:42:14 27483 [Note] NDB Binlog: starting log at epoch 24372/9
2015-02-13 23:42:14 27483 [Note] NDB Binlog: ndb tables writable



I have following settings in config.ini:
TransactionDeadlockDetectionTimeout=52000 #default 1200
MaxNoOfConcurrentTransactions=16384
MaxNoOfConcurrentOperations=100000

BatchSizePerLocalScan=512
FragmentLogFileSize=256M
NoOfFragmentLogFiles=22 # 6xDataMemory [in MB]/(4 *FragmentLogFileSize [in MB])

RedoBuffer=48M
MaxNoOfExecutionThreads=4
StopOnError=false
LockPagesInMainMemory=1

#severalnines settings
TransactionBufferMemory=8M

TimeBetweenGlobalCheckpoints=1000
TimeBetweenEpochs=100

TimeBetweenEpochsTimeout=0
DiskCheckpointSpeedInRestart=100M
DiskCheckpointSpeed=10M
TimeBetweenLocalCheckpoints=20

### Heartbeating
HeartbeatIntervalDbDb=15000
HeartbeatIntervalDbApi=15000

### Params for setting logging
MemReportFrequency=30
BackupReportFrequency=10
LogLevelStartup=15
LogLevelShutdown=15
LogLevelCheckpoint=8
LogLevelNodeRestart=15

### Params for BACKUP
BackupMaxWriteSize=1M
BackupDataBufferSize=24M
BackupLogBufferSize=16M
BackupMemory=40M

TimeBetweenWatchdogCheckInitial=60000
TransactionInactiveTimeout=800
RedoOverCommitCounter=3
RedoOverCommitLimit=20
NoOfFragmentLogParts=4

### Increasing the LongMessageBuffer b/c of a bug (20090903)
LongMessageBuffer=16M


I reset TransactionInactiveTimeout to 800 from severalnines config and TransactionDeadlockDetectionTimeout to 52000 from default.

Also there is my.cnf parameters:
#severalnines
ndbcluster=1
ndb-connectstring="192.168.1.5:1186,192.168.1.6:1186"
ndb-force-send=1
ndb-use-exact-count=0
ndb-extra-logging=1
ndb-batch-size=24M
ndb-autoincrement-prefetch-sz=1024
#OTHER THINGS, BUFFERS ETC
key_buffer_size = 32M
max_allowed_packet = 128M
#thread_cache_size=1024
#myisam_sort_buffer_size = 8M
memlock=0
sysdate_is_now=1
thread-cache-size=128
###QUERY CACHE IS DISABLED
###THE QUERY CACHE IN MYSQL CLUSTER CAN HAMPER PERFORMANCE A LOT. HENCE IT IS DISABLED
###BECAUSE INVALIDATION OF IT TAKES TIME (REMEMBER, IT IS A DISTRIBUTED ENVIRONMENT)
###ONLY ENABLE IT AND USE SQL_CACHE TO CACHE ONLY CERTAIN QUERIES ON READONLY TABLES
query_cache_type = 0
query_cache_size = 0


What can I do?

Need help in installation (no replies)

$
0
0
I am trying to follow the instruction of "18.2.2.1 Installing a MySQL Cluster Binary Release on Linux" http://dev.mysql.com/doc/refman/5.6/en/mysql-cluster-install-linux-binary.html , to install MySQL Cluster in a Ubuntu 14.04 server.

But I failed in the first step. In installing into SQL Node, I am supposed to extract mysql-cluster-gpl-7.x.x-linux2.6.tar.gz. But where can I download this file?

From the download area http://dev.mysql.com/downloads/cluster , I can see mysql-cluster-gpl-7.x.x-linux-glibc2.5-x86_64.tar.gz which is mentioned as installation package for the "Data Node" in the instruction, and mysql-cluster-gpl-7.x.x.tar.gz for source code.

Please direct me to download the installation package for the SQL Node, thank you.

Unable to start one of the management servers (no replies)

$
0
0
One of my management servers has recently crashed/raid failure.

I have reinstalled it (Centos 6) but i'm unable to start the actual ndb_mgmd

I am trying to start it via /usr/sbin/ndb_mgmd --ndb-nodeid=1 -c "192.168.1.1:1186" -f /etc/config.ini --configdir=/etc/ --initial

Tried both with "--initial" and without.

The log shows the following:
2015-02-18 03:09:38 [MgmtSrvr] INFO -- Got initial configuration from '/etc//config.ini', will try to set it when all ndb_mgmd(s) started
2015-02-18 03:09:38 [MgmtSrvr] INFO -- Id: 1, Command port: *:1186
2015-02-18 03:09:38 [MgmtSrvr] WARNING -- Failed to convert connection from '192.168.1.228:57950' to transporter: line: 498 : Incorrect state for node 9 state: is connected (2)
2015-02-18 03:09:38 [MgmtSrvr] INFO -- MySQL Cluster Management Server mysql-5.6.15 ndb-7.3.4 started
2015-02-18 03:09:38 [MgmtSrvr] INFO -- Node 1: Node 1 Connected
2015-02-18 03:09:38 [MgmtSrvr] INFO -- Node 1: Node 2 Connected
2015-02-18 03:09:38 [MgmtSrvr] WARNING -- Failed to convert connection from '192.168.1.231:41713' to transporter: line: 498 : Incorrect state for node 12 state: is connected (2)
2015-02-18 03:09:38 [MgmtSrvr] WARNING -- Failed to convert connection from '192.168.1.226:41587' to transporter: line: 498 : Incorrect state for node 7 state: is connected (2)
2015-02-18 03:09:38 [MgmtSrvr] WARNING -- Failed to convert connection from '192.168.1.225:43365' to transporter: line: 498 : Incorrect state for node 6 state: is connected (2)
2015-02-18 03:09:38 [MgmtSrvr] WARNING -- Failed to convert connection from '192.168.1.222:60124' to transporter: line: 498 : Incorrect state for node 3 state: is connected (2)
2015-02-18 03:09:38 [MgmtSrvr] WARNING -- Failed to convert connection from '192.168.1.232:51626' to transporter: line: 498 : Incorrect state for node 13 state: is connected (2)
2015-02-18 03:09:38 [MgmtSrvr] WARNING -- Failed to convert connection from '192.168.1.230:42865' to transporter: line: 498 : Incorrect state for node 11 state: is connected (2)
2015-02-18 03:09:38 [MgmtSrvr] WARNING -- Failed to convert connection from '192.168.1.223:50200' to transporter: line: 498 : Incorrect state for node 4 state: is connected (2)
2015-02-18 03:09:38 [MgmtSrvr] WARNING -- Failed to convert connection from '192.168.1.229:41253' to transporter: line: 498 : Incorrect state for node 10 state: is connected (2)
2015-02-18 03:09:38 [MgmtSrvr] WARNING -- Failed to convert connection from '192.168.1.227:34704' to transporter: line: 498 : Incorrect state for node 8 state: is connected (2)
2015-02-18 03:09:38 [MgmtSrvr] WARNING -- Failed to convert connection from '192.168.1.224:53797' to transporter: line: 498 : Incorrect state for node 5 state: is connected (2)
2015-02-18 03:09:38 [MgmtSrvr] WARNING -- Failed to convert connection from '192.168.1.233:39696' to transporter: line: 498 : Incorrect state for node 14 state: is connected (2)
2015-02-18 03:09:38 [MgmtSrvr] INFO -- Node 2 connected
2015-02-18 03:09:38 [MgmtSrvr] INFO -- Node 1: Node 9 Connected
2015-02-18 03:09:38 [MgmtSrvr] INFO -- Node 1 connected
2015-02-18 03:09:38 [MgmtSrvr] ERROR -- Terminating

I could not find much information about this error, normally it should be connected to the firewall or selinux, but in this case, both selinux and iptables are disabled.

Many thanks!

Can't start MCM (no replies)

$
0
0
Good afternoon everyone,
I'm having troubles when trying to start one of my mcm agents. Everything has been working smoothly for quite a long time, but it has suddenly stopped. When I try to start the mcmc this is what I see:

mysql@vm-leg-promesa-04-t:/var/lib/mysql $ /usr/mcm1.3.3/bin/mcmd --log-file=/var/log/mcm/mcmd.log --manager-directory=/var/mcm_data --daemon
mysql@vm-leg-promesa-04-t:/var/lib/mysql $ ps -ef | grep mcm
mysql 5485 1 99 15:53 ? 00:14:44 /usr/mcm1.3.3/libexec/mcmd --plugin-dir=/usr/mcm1.3.3/lib/mcmd --log-file=/var/log/mcm/mcmd.log --manager-directory=/var/mcm_data --daemon
mysql@vm-leg-promesa-04-t:/var/lib/mysql $

mysql@vm-leg-promesa-04-t:/var/lib/mysql $ tail -f /var/log/mcm/mcmd.log
2015-02-19 16:08:38.133: (warning) last message repeated 1 times
2015-02-19 16:08:38.133: (warning) [T0x606010 chass]: Changed type to ENUM : Changing value : query_cache_type for mysqld ==> 0
2015-02-19 16:08:38.181: (warning) last message repeated 1 times
2015-02-19 16:08:38.181: (warning) [T0x606010 chass]: Changed type to ENUM : Changing value : query_cache_type for mysqld ==> off
2015-02-19 16:08:38.229: (warning) last message repeated 1 times
2015-02-19 16:08:38.229: (warning) [T0x606010 chass]: Changed type to ENUM : Changing value : query_cache_type for mysqld ==> 0
2015-02-19 16:08:38.277: (warning) last message repeated 1 times
2015-02-19 16:08:38.277: (warning) [T0x606010 chass]: Changed type to ENUM : Changing value : query_cache_type for mysqld ==> off
2015-02-19 16:08:38.325: (warning) last message repeated 1 times
2015-02-19 16:08:38.325: (warning) [T0x606010 chass]: Changed type to ENUM : Changing value : query_cache_type for mysqld ==> 0
2015-02-19 16:08:38.374: (warning) last message repeated 1 times
2015-02-19 16:08:38.374: (warning) [T0x606010 chass]: Changed type to ENUM : Changing value : query_cache_type for mysqld ==> off
2015-02-19 16:08:38.423: (warning) last message repeated 1 times
2015-02-19 16:08:38.423: (warning) [T0x606010 chass]: Changed type to ENUM : Changing value : query_cache_type for mysqld ==> 0
2015-02-19 16:08:38.471: (warning) last message repeated 1 times
2015-02-19 16:08:38.471: (warning) [T0x606010 chass]: Changed type to ENUM : Changing value : query_cache_type for mysqld ==> off
2015-02-19 16:08:38.519: (warning) last message repeated 1 times
2015-02-19 16:08:38.519: (warning) [T0x606010 chass]: Changed type to ENUM : Changing value : query_cache_type for mysqld ==> 0
2015-02-19 16:08:38.568: (warning) last message repeated 1 times
2015-02-19 16:08:38.568: (warning) [T0x606010 chass]: Changed type to ENUM : Changing value : query_cache_type for mysqld ==> off
2015-02-19 16:08:38.616: (warning) last message repeated 1 times
2015-02-19 16:08:38.616: (warning) [T0x606010 chass]: Changed type to ENUM : Changing value : query_cache_type for mysqld ==> 0
2015-02-19 16:08:38.664: (warning) last message repeated 1 times
2015-02-19 16:08:38.664: (warning) [T0x606010 chass]: Changed type to ENUM : Changing value : query_cache_type for mysqld ==> off
2015-02-19 16:08:38.712: (warning) last message repeated 1 times
2015-02-19 16:08:38.712: (warning) [T0x606010 chass]: Changed type to ENUM : Changing value : query_cache_type for mysqld ==> 0
2015-02-19 16:08:38.761: (warning) last message repeated 1 times
2015-02-19 16:08:38.761: (warning) [T0x606010 chass]: Changed type to ENUM : Changing value : query_cache_type for mysqld ==> off
2015-02-19 16:08:38.810: (warning) last message repeated 1 times
2015-02-19 16:08:38.810: (warning) [T0x606010 chass]: Changed type to ENUM : Changing value : query_cache_type for mysqld ==> 0


Any idea of what's happening and how to fix it?

Regards,
Gabriel Crespo

Error ndb_mgmd Windows (no replies)

$
0
0
Hello everyone.

I am trying to set up a MySQL Cluster on Windows 2008 R2.
I tried installing via .msi me

I have all set ( Bin & data ) in a folder C: \ mysql
I use that as a manager and SQL Server Node.

When I try to start the ndb_mgmd ( first thing to do according to the official MySQL documentation) I get the following errors:



Can you help me? Thank you to you.

recommended thread config for 4 cpu data node? (no replies)

$
0
0
I'd like to know if there is, or if anyone has, a recommended ThreadConfig/Lock<x>ThreadtoCPU/MaxNoOfExecutionThreads threads config for a 4 CPU/core data node?

Also if it's still recommended to turn RealTimeScheduler off with ndbmtd. I know example configs stated this.

The machine is dedicated to the data node, has eth0 and eth1, eth1 for data node traffic, CentOS 6, EC2 (r3.xlarge).

Thanks

Test My Cluster ? (8 replies)

$
0
0
Hello everyone.

I received as a project of a company to make a MySQL clustering on a WAMP environment.
We're not going to dwell on the environment "WAMP", just know that I have to do this on Windows. I prefer my first focus on the pure Cluster than the rest.
I'll try to make a diagram that shows you more precisely my ultimate goal (which can be interesting).

So here's what I use now (I do not have the hardware limitation since I work on a hypervisor)
- 1 Windows Server 2008
- 2 Windows 7

For those who know, to make a MySQL Cluster requires at a minimum:
- 2 NBDB (Data Node): W7 DATA1 & W7 DATA2 (191.168.2.251 & .252).
- 1 SQL Server (mysqld): Windows Server 2008 R2 (191.168.2.3).
- 1 Manager (MGMD): Windows Server 2008 R2 (same as the mysqld) (191.168.2.3).
For the moment I tried to follow a lot of tutorials without really understand and get there (especially confusing saw that everything from in all directions) and apparently I get to make the connection between them:



Now I have a little problem, I do not know how to go test it .. I am trying to connect to MySQL on each DATA (to see if it is replica) but I can not I get an error:

"ERROR 2003 (HY000): Can not connect to MySQL server on localhost (10061)". Then I have difficulty understanding how a client that connects to the front-end (MySQ) written on the DATA ..
Well, I hope you can enlighten me.

Thank you,
Original.

Unable to start Node and API (1 reply)

$
0
0
Hi there, problem is my DB nodes are stuck at starting and API can't get connected.

my config.ini file as below:

[NDB_MGMD DEFAULT]
Portnumber=1186


[NDB_MGMD]
NodeId=51
HostName=192.168.168.151
DataDir=/opt/SQL/51/
Portnumber=1186
ArbitrationRank=1

[TCP DEFAULT]
SendBufferMemory=8M
ReceiveBufferMemory=8M

[NDBD DEFAULT]
BackupMaxWriteSize=1M
BackupDataBufferSize=16M
BackupLogBufferSize=4M
BackupMemory=20M
BackupReportFrequency=10
MemReportFrequency=30
LogLevelStartup=15
LogLevelShutdown=15
LogLevelCheckpoint=8
LogLevelNodeRestart=15
DataMemory=700M
IndexMemory=175M
MaxNoOfTables=4096
MaxNoOfTriggers=3500
NoOfReplicas=2
StringMemory=25
DiskPageBufferMemory=64M
SharedGlobalMemory=20M
LongMessageBuffer=32M
MaxNoOfConcurrentTransactions=16384
BatchSizePerLocalScan=512
FragmentLogFileSize=256M
NoOfFragmentLogFiles=5
RedoBuffer=64M
MaxNoOfExecutionThreads=2
StopOnError=false
LockPagesInMainMemory=1
TimeBetweenEpochsTimeout=32000
TimeBetweenWatchdogCheckInitial=60000
TransactionInactiveTimeout=60000
HeartbeatIntervalDbDb=1500
HeartbeatIntervalDbApi=1500
MaxNoOfConcurrentOperations=150000
MaxNoOfAttributes=10000
MaxNoOfOrderedIndexes=512

[NDBD]
NodeId=1
HostName=192.168.168.153
DataDir=/opt/MySQL_Cluster/1/

[NDBD]
NodeId=2
HostName=192.168.168.154
DataDir=/opt/MySQL_Cluster/2/


[MYSQLD DEFAULT]

[MYSQLD]
NodeId=61
HostName=192.168.168.151

[MYSQLD]
NodeId=63
HostName=192.168.168.152

[MYSQLD]
NodeId=65

========================================

Current status:

[root@SQL-Arbiter ~]# ndb_mgm -e show
Connected to Management Server at: localhost:1186
Cluster Configuration
---------------------
[ndbd(NDB)] 2 node(s)
id=1 @192.168.168.153 (mysql-5.6.15 ndb-7.3.4, starting, Nodegroup: 0, *)
id=2 @192.168.168.154 (mysql-5.6.15 ndb-7.3.4, starting, Nodegroup: 0)

[ndb_mgmd(MGM)] 1 node(s)
id=51 @192.168.168.151 (mysql-5.6.15 ndb-7.3.4)

[mysqld(API)] 3 node(s)
id=61 (not connected, accepting connect from 192.168.168.151)
id=63 (not connected, accepting connect from 192.168.168.152)
id=65 (not connected, accepting connect from any host)


===============================

From the log,
[root@SQL-Arbiter 51]# tail -100 ndb_51_cluster.log

2015-02-24 16:55:09 [MgmtSrvr] INFO -- Node 1: Data usage is 0%(0 32K pages of total 22400)
2015-02-24 16:55:09 [MgmtSrvr] INFO -- Node 1: Index usage is 0%(0 8K pages of total 22432)
2015-02-24 16:55:09 [MgmtSrvr] WARNING -- Failed to allocate nodeid for API at 192.168.168.152. Returned error: 'Id 63 already allocated by another node.'
2015-02-24 16:55:11 [MgmtSrvr] WARNING -- Failed to allocate nodeid for API at 192.168.168.151. Returned error: 'Id 61 already allocated by another node.'
2015-02-24 16:55:11 [MgmtSrvr] WARNING -- Failed to allocate nodeid for API at 192.168.168.152. Returned error: 'Id 63 already allocated by another node.'
2015-02-24 16:55:13 [MgmtSrvr] WARNING -- Failed to allocate nodeid for API at 192.168.168.151. Returned error: 'Id 61 already allocated by another node.'
2015-02-24 16:55:14 [MgmtSrvr] WARNING -- Failed to allocate nodeid for API at 192.168.168.152. Returned error: 'Id 63 already allocated by another node.'
2015-02-24 16:55:15 [MgmtSrvr] WARNING -- Failed to allocate nodeid for API at 192.168.168.151. Returned error: 'Id 61 already allocated by another node.'
2015-02-24 16:55:16 [MgmtSrvr] WARNING -- Failed to allocate nodeid for API at 192.168.168.152. Returned error: 'Id 63 already allocated by another node.'
2015-02-24 16:55:17 [MgmtSrvr] WARNING -- Failed to allocate nodeid for API at 192.168.168.151. Returned error: 'Id 61 already allocated by another node.'

How Many Licenses/subscription I will be required? (2 replies)

$
0
0
I am new to MySQL Cluster and I am estimating a budget/cost for running a basic MySQL Cluster CGE setup.

I am planning to do following setup:
2 data nodes
2 sql nodes
2 management nodes

So my question is that how many subscriptions/licenses I have to buy? Do I need to buy license/subscription for each node separately? Or if I buy one subscription, it would include one data node, one management node and one sql node?

Please reply urgent.

Thanks in advance for anticipation.

Regards,
Omer Khan

Some questions - MySQL Cluster (no replies)

$
0
0
Hello everyone.
I created a new topic differentiate my two machinations.

I have currently implemented this with MySQL Cluster:

- 2 data nodes (Windows 7)
191.168.2.251
191.168.2.252
- 2 SQL nodes (API) - (Windows Server 2008)
191.168.2.2
191.168.2.3
- 2 Managers node (Windows Server 2008)
191.168.2.2
191.168.2.3

The cluster appears to work correctly, if a PC is dead, we always access to data, if the DATA down, you can still also.

Now I'd like to do two things, and therefore these are my questions:
- The users / programmers need access to MySQL course, however, I would like to ensure it only uses ONE IP and not the two APIs (invisible to them). How can I do?
- For now, to access MySQL, they use "phpMyAdmin" I like to know if there is something else that allows for MySQL Cluster? If possible with phpMyAdmin, do you know how?
- When my two DATA nodes is down, when I write on the other, it does not update when the UP DOWN returns. Is this normal? Can we do something about it?

Well, I hope you could help me, and I apologize for my English.

Best Regards,
Original.

NDB memory and disk usage (no replies)

$
0
0
I have an NDB database with a single table and a simple use pattern of very frequent reads and updates of individual rows i.e. no complex joins, aggregates etc. The table is ~200M rows but the operations are mostly limited to 10% of the rows at any time, or in other words the set of these “active” rows is about 10% of the total number of rows at any given time. The content of the 10% slowly (and unpredictably) changes, where slowly means hours.

NDB memory usage for this database is ~100GB per data node as reported by “all report memory usage”

I want to continue using NDB but reduce its memory usage by taking advantage of the fact that the actual active data set is only 10% of the total data set.
Is this doable and if so how?

Another way of saying all the above is that I’d like NDB to cache in memory only a subset of the data but cannot see a way to do it.

Thanks in advance for any suggestions.
Tom
Viewing all 1560 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>