Open Guard1an opened 4 years ago
I can see the merits of what you're trying to do but I've always approached it more at the system level. E.g. using a load balancer or a DNS address that resolves to multiple IPs (managed by something like Kubernetes or Docker Swarm). So having the same local.xml across all nodes is a less flexible approach but I also think it has some merits.
If you aren't using Docker I'd strongly recommend looking into it.
When running multiple synchronized Redis instances in master+slave or cluster configuration the Magento configuration cache is shared among different Magento backend nodes. When etc/local.xml file differs between nodes shared cache causes nodes miss-configuration issues. I.e. when Node1 is configured to use Mysql1 backend and Node2 to use Mysql2 backend due to shared config cache all nodes will share the same Mysql backend settings (one which was cached first).
I applied a dirty fix to Core/Model/Config.php to address this issue. See patch attached.
Please share your experience on Magento cluster setup, how do you deal with shared configuration among nodes?