Clustering PHP : How to do it?
Posted: Tue Jan 31, 2012 9:43 pm
Dear developers,
I have a plan to host my PHP script in a server first, then adding more servers in the future when the users reach the limit. but there are lots of question popping in my mind such as :
1. if in the beginning the code was designed to be run in a single server, but later on this server is not 'strong' enough to handle the hits per day or number of users. Can I just buy the second server and put the code there?
by adding this new server into my DNS list, will it automatically handle the request? what if this code has 'session', such as 'login area'? how to make user 'stick' with the server one so that the 'session' not broken, while other user can be handled by server two?
2. I have read about Zend Server Cluster Manager, but the cost is too high, I think. Is there any affordable ways to do this clustering thing?
3. Also, I have information about Yii framework and how fast it is. but, I don't see Yii has some kind like Zend Server Cluster Manager. Is that mean if I have Yii code it will be difficult to be clustered?
thanks...
I have a plan to host my PHP script in a server first, then adding more servers in the future when the users reach the limit. but there are lots of question popping in my mind such as :
1. if in the beginning the code was designed to be run in a single server, but later on this server is not 'strong' enough to handle the hits per day or number of users. Can I just buy the second server and put the code there?
by adding this new server into my DNS list, will it automatically handle the request? what if this code has 'session', such as 'login area'? how to make user 'stick' with the server one so that the 'session' not broken, while other user can be handled by server two?
2. I have read about Zend Server Cluster Manager, but the cost is too high, I think. Is there any affordable ways to do this clustering thing?
3. Also, I have information about Yii framework and how fast it is. but, I don't see Yii has some kind like Zend Server Cluster Manager. Is that mean if I have Yii code it will be difficult to be clustered?
thanks...