2017-10-03 23:45:17 +02:00
|
|
|
# Memcached
|
2017-03-02 14:57:41 +01:00
|
|
|
|
|
|
|
Installation and basic configuration of memcached
|
|
|
|
|
|
|
|
## Tasks
|
|
|
|
|
|
|
|
Minimal configuration is in `tasks/main.yml`
|
|
|
|
|
|
|
|
## Available variables
|
|
|
|
|
2017-04-05 10:29:03 +02:00
|
|
|
Main variables are :
|
|
|
|
|
2017-04-10 18:15:35 +02:00
|
|
|
* `memcached_mem`: amount of memory (default: `64`) ;
|
|
|
|
* `memcached_user`: running user (default: `nobody`) ;
|
|
|
|
* `memcached_port`: opened port (default: `11211`) ;
|
|
|
|
* `memcached_bind_interface`: interface to listen to (default: `127.0.0.1`) ;
|
|
|
|
* `memcached_connections`: number of simultaneous incoming connections (default: `1024`) ;
|
2018-06-14 17:27:21 +02:00
|
|
|
* `memcached_instance_name`: use this to set up multiple memcached instances (default: `False`) ;
|
2017-04-05 10:29:03 +02:00
|
|
|
|
2017-03-02 14:57:41 +01:00
|
|
|
The full list of variables (with default values) can be found in `defaults/main.yml`.
|
2018-06-14 17:27:21 +02:00
|
|
|
|
|
|
|
## Multiple intances
|
|
|
|
|
|
|
|
When using memcached_instance_name variable, you can set up multiple memcached instances :
|
|
|
|
|
|
|
|
roles:
|
|
|
|
- { role: memcached, memcached_instance_name: "instance1" }
|
2018-08-09 17:46:31 +02:00
|
|
|
- { role: memcached, memcached_instance_name: "instance2", memcached_port: 11212 }
|