Memcached
(old) |
|||
| Line 1: | Line 1: | ||
| − | + | The memcached master php file is located in: | |
| + | <tt>/home/wikipedia/common/php/mc-pmtpa.php</tt> | ||
| − | + | You can install a memcached server with: | |
| + | <tt>apt-get install memcached</tt> | ||
| − | + | Be certain you start memcached after install. The installer states it is starting it, but it lies. | |
| − | + | You can test the servers to see which memcached are functioning and which are not with the following: | |
| + | <tt>cd /home/w/common/php-1.5/maintenance; php mctest.php</tt> | ||
| + | |||
| + | Note that all servers that are up will return <tt>incr: 100 get: 100</tt> and servers that are down will return <tt>incr: 0 get: 0</tt>. | ||
| + | |||
| + | = Editing mc-pmtpa.php = | ||
| + | |||
| + | Please note what the file says, the order and format is '''very important.''' Make sure you add servers to the correct ***DOWN*** or ***SPARE*** sections, removing the slot number and replacing it with XX. If you move a server into the memcached pool, ensure you remove the XX and put in the correct number. | ||
| + | |||
| + | If you fix a memcached server and it is not immediately needed to go into rotation, be sure to move it from DOWN to SPARE. | ||
Revision as of 19:33, 23 September 2008
The memcached master php file is located in:
/home/wikipedia/common/php/mc-pmtpa.php
You can install a memcached server with:
apt-get install memcached
Be certain you start memcached after install. The installer states it is starting it, but it lies.
You can test the servers to see which memcached are functioning and which are not with the following:
cd /home/w/common/php-1.5/maintenance; php mctest.php
Note that all servers that are up will return incr: 100 get: 100 and servers that are down will return incr: 0 get: 0.
Editing mc-pmtpa.php
Please note what the file says, the order and format is very important. Make sure you add servers to the correct ***DOWN*** or ***SPARE*** sections, removing the slot number and replacing it with XX. If you move a server into the memcached pool, ensure you remove the XX and put in the correct number.
If you fix a memcached server and it is not immediately needed to go into rotation, be sure to move it from DOWN to SPARE.