4 messages in com.mysql.lists.clusterRe: How can I increase ndbcluster per...| From | Sent On | Attachments |
|---|---|---|
| François Conil | 21 Jun 2005 08:28 | |
| Mikael Ronström | 21 Jun 2005 11:13 | |
| F. Conil | 21 Jun 2005 23:22 | |
| Mikael Ronström | 22 Jun 2005 15:19 |
| Subject: | Re: How can I increase ndbcluster performance ?![]() |
|---|---|
| From: | F. Conil (fran...@dspnet.fr.eu.org) |
| Date: | 06/21/2005 11:22:32 PM |
| List: | com.mysql.lists.cluster |
Thanks,
I'm using Mysql 4.11 from the ports install on FreeBSD 5.4 and the ndb cluster available with it.
I've set up a table like this :
+-------------+-------------+------+--------+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-------------+-------------+------+--------+---------+-------+ | data_id | int | NO |Primary | | | | zone | varchar(255)| NO | | | | | host | varchar(255)| NO | | | | | type | varchar(255)| NO | | | | | data | varchar(255)| | | | | | ttl | int(11) | YES | | NULL | | | mx_priority | int(2) | YES | | NULL | | | refresh | int(11) | YES | | NULL | | | retry | int(11) | YES | | NULL | | | expire | int(11) | YES | | NULL | | | minimum | int(11) | YES | | NULL | | | serial | bigint(20) | YES | | NULL | | | resp_person | text | YES | | NULL | | | primary_ns | varchar(255)| YES | | NULL | | +-------------+-------------+------+--------+---------+-------+
I've set up indexes on the zone, host and type column, and load data from it with the following request :
{select zone from dns_records where zone = '%zone%'} {select ttl, type, mx_priority, case when lower(type)='txt' then concat('\"', data, '\"') when lower(type) = 'soa' then concat_ws(' ', data, resp_person, serial, refresh, retry, expire, minimum) else data end from dns_records where zone = '%zone%' and host = '%record%'} {} {select ttl, type, host, mx_priority, case when lower(type)='txt' then concat('\"', data, '\"') else data end, resp_person, serial, refresh, retry, expire, minimum from dns_records where zone = '%zone%'}
Where %zone% and %record% are replaced by the actual values when bind serves record (for instance, for a nslookup www.example.com, the %zone% is replaced by'example.com' and the %host% by 'www')
Regards, François
Hi, If you have some more details on your queries and your configs and version of MySQL you are using that would be helpful.
Rgrds Mikael
2005-06-21 kl. 17.28 skrev François Conil:
Hi,
I'm currently using a ndbcluster to serve dns records via dynamic loadable zones, but the main problem is that I can barely serve 35-45 queries per second.
I already optimized the ndbcluster by setting indexes, going from 2-3 queries per second to the number I have now, but it's still not enough in regard of the performance I'm aiming for (mainly loading the records from the cluster).
Is there any way I can configure the cluster to increase its performance ? I tried to look for a solution, but it seems the only way to do so is to ditch the cluster and go the replication way... Maybe I didn't configure the memory usage the optimal way, or the processor usage, or whatever, so if someone has an idea to help me, it will be appreciated.
-- François
---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.




