Configuring Horizon caching with memcached
To better address large-scale environments while using the Horizon dashboard service, with a large amount of users, it is recommended to configure a caching layer in front of the dashboard. This reduces the amount of calls httpd
needs to address and allows Horizon dashboard to serve a larger amount of users.
Getting started
In this recipe, we will configure Horizon to use a memcached caching service. We will need to install and configure the memcached service first.
Install the memcached service with dependent packages:
[root@controller ~]# yum install -y memcached memcached-selinux
Edit the memcached
configuration file:
[root@controller ~]# vi /etc/sysconfig/memcached
Make sure that the following settings are done:
PORT="11211" USER="memcached" OPTIONS="-l 127.0.0.1"
Enable and start the memcached
service:
[root@controller ~]# systemctl enable memcached [root@controller ~]# systemctl start memcached
Test if memcached is...