Forums / Developer / Cluster performance / Comment50881

Author Topic

Gaetano Giunta

Friday 20 March 2009 3:44:28 pm

Comment50881

To add some further insight:

- flock on nfs is not necessarily unsupported: it just varies greatly from one nfs server/client implementation to the other. So ymmv. Here: http://nfs.sourceforge.net/, it says that the linux nfs client only supports flock since kernel 2.6.12.
Real life tests have shown filers to be very good at handling nfs serving for eZP, linux servers being quite bad and solaris ones being worse.

- in the long term, not having to rely on very costly filers to store cache is surely a good idea. But getting it done right takes a lot of time and testing. Cluster code is much better in 4.1 than in 4.0 than in 3.9 etc...

- ...otoh if you already have paid for a filer, you might as well take advantage of it!

- if your filer is connected via fibre (san), you can try to use ocfs2 or gfs as shared-storage filesystem, instead of nfs. If your storage is attached via gigabit-ethernet, you might do the same using iscsi, but results so far indicate that that config is no better than plain nfs

- some dbs are much (much) better than others at the kind of load that the management of a huge pile of blobs imposes. And I am thinking about Oracle here...

- a reverse proxy can be much more cost-effective than a cluster setup anyway. the cluster setup remains of course your best bet for availability.

- a simple reverse proxy solution can even be an nginx/lighttpd process, put in front of apache, on the same server. The benefits are multiple:
- a light proxy process means less ram used when user requests a static file and the proxy process serves it without connecting to the apache process
- when apache+php is done preparing the html output, it can send it immediately to the proxy process and start serving another 'heavy request'. The proxy process buffers the output until the client has finished receiving it, which can be a long time if the client is on a slow network connection

- reverse proxies can cache full html pages too, besides static content. But then you will spend a lot of time to properly configure timeouts and expiry rules. Look for the cache-expiry-handler in ezflow to get some extra ideas

- there are at least 2 eZP extensions for varnish that look very promising

Principal Consultant International Business
Member of the Community Project Board