Not compatible with server cluster (contrary to faq)?
-
The FAQ states:
Is this plugin server cluster and load balancer friendly?
Yes, built from the ground up with scale and current hosting paradigms in mind.but I have problems to run on a server cluster (that does not have a persistent filesystem) because the config is stored in /wp-content/w3tc-config/master.php (and master-admin.php).
From the FAQ I had the hope it’s designed as a Twelve-factor app – but it’s obviously breaking this rule:
“Twelve-factor processes are stateless and share-nothing. Any data that needs to persist must be stored in a statefulbacking service, typically a database.**
The memory space or filesystem of the process can be used as a brief, single-transaction cache. For example, downloading a large file, operating on it, and storing the results of the operation in the database. The twelve-factor app never assumes that anything cached in memory or on disk will be available on a future request or job – with many processes of each type running, chances are high that a future request will be served by a different process. Even when running only one process, a restart (triggered by code deploy, config change, or the execution environment relocating the process to a different physical location) will usually wipe out all local (e.g., memory and filesystem) state.”
source: https://12factor.net/processesAs the plugin does not store it’s own config in the database(really?), I tried to workaround the problem by storing the required config in the environment (as suggested here https://12factor.net/config). I replacing some config settings in the master.php with getenv(“W3TC_CDN_ENABLED”) etc. This works fine – until the plugin overwrites the master.php.
I didn’t want to patch the plugin and wonder if I’m on the wrong track here because you say that “hosting in the cluster/cloud” is possible. And with w3tc it’s all about performance – so I hope there must be an easy way!?
Thanks for pointing me into the right direction.
- The topic ‘Not compatible with server cluster (contrary to faq)?’ is closed to new replies.