Difference between revisions of "Adding Additional memcached Servers"

From AgileApps Support Wiki
imported>Aeric
m (Text replace - '[[Platform Installation Guide/networking.properties|' to '[[')
 
imported>Aeric
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>===Adding Additional memcached Servers===</includeonly>
Adding an additional memcached servers helps to distribute the cache and balance the load across the memcached servers.
Adding an additional memcached servers helps to distribute the cache and balance the load across the memcached servers.


;To add an additional memcached server:
;To add an additional memcached server:
# Edit [[networking.properties]] on all LongJump Instances.
# Edit [[networking.properties]] on all instances.
# Update the <tt>MemCachedServers</tt> entry  
# Update the <tt>MemCachedServers</tt> entry  
# Restart all servers, following the [[Server Restart Sequence]]<br/>''Note:'' The sequence is important!
# Restart all servers, following the [[Server Restart Sequence]]<br/>''Note:'' The sequence is important!
Line 8: Line 9:
;Example:
;Example:
There is one memcached server running on serverA (192.168.0.1) on port 11211.
There is one memcached server running on serverA (192.168.0.1) on port 11211.
On each LongJump Instance, in the <tt>networking.properties</tt> has this:
On each instance, the <tt>networking.properties</tt> has this:
{|
{|
<pre>
<pre>
Line 16: Line 17:


A second memcached server is brought up on serverB (192.168.0.2) on port  11211.  
A second memcached server is brought up on serverB (192.168.0.2) on port  11211.  
The <tt>networking.properties</tt> file is edited on all LongJump Instances so it looks like this:
The <tt>networking.properties</tt> file is edited on all instances so it looks like this:
{|
{|
<pre>
<pre>
Line 22: Line 23:
</pre>
</pre>
|}
|}
<noinclude>


After following the [[Server Restart Sequence]], all LongJump instances are using the new, distributed cache.
[[Category:Installation]]
</noinclude>
After following the [[Server Restart Sequence]], all instances are using the new, distributed cache.


If a 3rd memcached server is added (192.168.0.3), the <tt>networking.properties</tt> file will look like this:
If a 3rd memcached server is added (192.168.0.3), the <tt>networking.properties</tt> file will look like this:

Latest revision as of 21:41, 2 October 2013

Adding an additional memcached servers helps to distribute the cache and balance the load across the memcached servers.

To add an additional memcached server
  1. Edit networking.properties on all instances.
  2. Update the MemCachedServers entry
  3. Restart all servers, following the Server Restart Sequence
    Note: The sequence is important!
Example

There is one memcached server running on serverA (192.168.0.1) on port 11211. On each instance, the networking.properties has this:

MemCachedServers=192.168.0.1:11211

A second memcached server is brought up on serverB (192.168.0.2) on port 11211. The networking.properties file is edited on all instances so it looks like this:

MemCachedServers=192.168.0.1:11211 192.168.0.2:11211

After following the Server Restart Sequence, all instances are using the new, distributed cache.

If a 3rd memcached server is added (192.168.0.3), the networking.properties file will look like this:

MemCachedServers=192.168.0.1:11211 192.168.0.2:11211 192.168.0.3:11211

Again, the Server Restart Sequence is followed to enable the new configuration.