I'm currently deploying some PHP Zend applications on my servers and this is currently what I got.
1st Layer - Load-balancer + Http-cache.
2nd Layer - web-server (will have many more webservers in here, that's why the load-balancer).
3rd Layer - MySql (will have replication, slave-master, maybe sharding per customer or group of customers).
The question is this, currently Im running nginx + php-fpm on the webserver, all the php code stays in the user respective home folder. When the time passes I'll want to increase the number of servers, php-fpm and nginx instances.
Where should I put the php, because I can't duplicate it among the servers, otherwise updates will screw up consistency ;)
I'm thinking maybe a NFS that will hold all php code and the servers will just point to that.
What the correct approach here?
I'm kind of new to server architecture.
Appreciate your help.
[]'s Rodrigo