Configure Memcached

Memcached is configured by default for the eucaconsole service on a single host. On multiple hosts (in a scaling group), it is required to run a central memcached, as outlined in the procedure below.

This procedure assumes that the Eucalyptus Management Console package is installed. For instructions on installing the packages, see Install the Eucalyptus Management Console.
Note: If there is just one Console server, the automatically configured memcached service is sufficient for use by the console.
  1. Turn off the default memcached on all the consoles by editing /etc/init.d/eucaconsole and set MEMCACHED_FLAGS="NO". This would normally be handled by your cloud-init or cfn-init script from your launch configuration.
  2. Set up a central memcache to ensure your memcached instance is available and durable, we recommend running it within a scaling group of 1 and behind an ELB. The ELB requires a listener for port 11211 and its DNS address would be used in the cache.memory.url in the next step.
  3. Configure the console.ini file to talk to the central memcached. This is typically defined in an init script, such as the cloud.init, shell script or cfn.init file. For example, the memcached socket in the cache memory URL should point to the port that memcached uses (11211) to listen:
    cache.memory.url = /var/run/eucaconsole/memcached.sock

    to

    cache.memory.url = [memcachedhost]:11211
    For example:
    cache.memory.url = 10.0.0.20:11211

Restarting the Console

If you add shared images with Euca2ools, you can make them available to users sooner by restarting the console, which clears the cache (memcached). To do that, restart the service:
servicectl restart eucaconsole
x