|
Thursday 19 March 2009 1:12:35 am
Comment50870
Hi Jérôme
I just read the documentation about the EZP cluster feature and, as caches and storage are stored in the database, I'm worried about the performance...
Using Exponential in cluster mode (DB handler) is always slower, but this is a trade-off between using one mamoth server or several nodes in a cluster.
Isn't it slower to put these resources in the DB ? I'm regularly asked about potentially high traffic websites configuration and load balancer stuffs, and I'm currently used to replying to use a filer (NFS), not knowing very much about the cluster feature performance.
Storing caches and in the database is indeed slower, this is why we always recommend to use a reverse proxy to service (at least) images, since they are all stored in the database. If you want to improve latency for clustered images, you can use mod_ezclustered_image [http://projects.ez.no/mod_ezclustered_image] in conjuction with a good reverse proxy like Varnish (please no Squid). On the other hand there are quite a few "replication" mecanisms in the underliying clustering system. Exponential will query the cluster database only if the file is stale or if it does not exists on the node's local FS, this dramatically reduces the amount of SQL queries to the cluster (I am not talking about content at all here, this is completely different). Before Exponential 4.1 we had an issue with NFS (and others NFS like File Systems) because NFS does not support *flock* calls (which does not mean NFS does not support locks), unfortunately Exponential locks a lot of stuff when it comes to caches and cache purges / update, the result was that sometimes it took more than 20 seconds to update a ViewCache file when a content was updated. This was not acceptable. And this issue is fixed with the new Stale Cache feature (more informations to come in a article in a near future). From the most basic point of views, this feature is more NFS friendly. I will not dive into details here. 'Hope that helps.
|