Monday 19 December 2005 4:56:19 am
Last wekend we set up a MySQL 5 cluster for testing eZ publish on it.
At the moment the primary problem seems getting eZ publish running on MySQL 5 cluster at all.
I reported this problem at the bug section right here on ez.no. See: http://ez.no/bugs/view/7580 The secondary problem we discovered is the speed of MySQL 5 cluster together with eZ publish. But this might not be a problem of eZ publish at all, but one of the MySQL 5 cluster - or more likely missing ressources of the used hardware.
Here is a overview of the clusters setup:
Two servers for the MySQL-cluster:
-Pentium 4, 3 GhZ, Single-CPU
-1 GB RAM
-SATA-Raid
-Debian GNU Linux
-MySQL 5.0.16 -Gigabit LAN
One Webserver:
-Xeon 3.6 GhZ Irwindale, Dual-CPU
-2 GB-RAM
-SCSI Ultra320 (caching, battery powered) Raid
-Debian GNU Linux
-PHP 4.3.10-16
-Apache 2.0.54 -Gigabit LAN At the moment one of the two cluster servers is used as the nbd-mng node, which doesn't make sense for a redundant solution, but should not affect the speed of the cluster. Both servers are running ndb-nodes and mysql-servers. The webserver sends its mysql requests via TCP and a MySQL-clients (v4.0.24) to the clusters mysql-servers, which shouldn't be a problem at all.
The two nodes are called matrix-01 and matrix-02. The webserver's name is zeus. The eZ publish installation used is a standard eZ publish 3.6.4 (with ezodcsm) and has around 15k of objects.
Loading the content-overview-page in the admin take about 33s. This is because the 953 mysql requests takes 32s of the time, meaning request are served with a average respond time of about 36 ms by the mysql-cluster. Using a local mysql server on zeus the same installation with the same data basis, the same page takes less than 2 seconds to load. I actually don't know why the cluster is this slow, but entering one of the 953 mysql-queries made by eZ publish on the local mysql-console of either matrix-01 or matrix-02 takes the same time as when it's made by eZ publish.
I discoverd that enormous traffic is exchanged by the two ndb-nodes. Here is an overview:
zeus <-> matrix-01 : 4 MB Traffic (zeus uses matrix-01 as SQL-server)
matrix-01 <-> matrix02: 337 MB Traffic
From matrix-01's point of view:
To matrix-02: 12 MB
From matrix-02: 325 MB
To zeus: 1.8 MB
From zeus: 2.2 MB
It doesn't change anything if I use matrix-02 as the mysql-server, except the traffics direction. I wonder why this much traffic is exchanged between the nodes, as eZ publish does only "SELECT"-queries by loading the page. Could there be a configuration error of the mysql cluster? Does anyone other has experiences with mysql 5 cluster and eZ publish?
Daniel Beyer
_________________________________
YMC AG
Kreuzlingen, Switzerland
web: www.ymc.ch
____________________________________
|