Exploring the Future Potential of AI-Enabled Smartphone Processors
Â
Clustered PHP - DC PHP 2009
1. Clustered PHPDC PHP 2009 by Marcel Esser â marcel.esser@croscon.com Senior Developer & Systems Analyst, CROSCON
2. what is clustering? âA computer cluster is a group of linked computers, working together closely so that in many respects they form a single computer.â - Wikipedia
3. what is clustering? âA computer cluster is a group of linked computers, working together closely so that in many respects they form a single computer.â - Wikipedia âŠin other words, itâs really hard.
4. what is clustering not? Clustering is not high availability. ⊠but you often achieve high availability with clustering.
5. what is clustering not? Clustering is not high availability. ⊠but you often achieve high availability with clustering. Clustering is not high volume. ⊠but you often achieve high volume with clustering.
6. what is clustering not? Clustering is not high availability. ⊠but you often achieve high availability with clustering. Clustering is not high volume. ⊠but you often achieve high volume with clustering. We want both.
108. do take nodes out rotation when you push updates
109.
110. do prepare an automated action that can turn xdebug and profiling on/off on 1 of the live nodes. you can and will run into errors that only exist on live.
111. do write a test case to replicate the the bug first and then fix the bug, whenever possible
112. do first look if bugs are explainable by platform differences between development and production systems (i.e., donât develop on Windows and deploy on UNIX)
113.
114. PHP doesnât have a native message queue, so (many) people wrote some. example, gearmand. do use a message queue.
115. do check for memory leaks in background tasks! many php libraries and also many php versions themselves still leak memory. try to write a loop in bash for a background task rather than in php. recycle the process often.