Filip Pytloun | e21bc77 | 2015-10-06 16:28:32 +0200 | [diff] [blame^] | 1 | ====================== |
| 2 | Memcached cache server |
| 3 | ====================== |
| 4 | |
| 5 | Install and configure Memcached server |
| 6 | |
| 7 | Available states |
| 8 | ================ |
| 9 | |
| 10 | .. contents:: |
| 11 | :local: |
| 12 | |
| 13 | ``memcached.server`` |
| 14 | -------------------- |
| 15 | |
| 16 | Setup Memcached server |
| 17 | |
| 18 | Available metadata |
| 19 | ================== |
| 20 | |
| 21 | .. contents:: |
| 22 | :local: |
| 23 | |
| 24 | ``metadata.memcached.server.single`` |
| 25 | ------------------------------------ |
| 26 | |
| 27 | Single memcached server |
| 28 | |
| 29 | ``metadata.memcached.server.local`` |
| 30 | ----------------------------------- |
| 31 | |
| 32 | Memcached server listening on localhost only |
| 33 | |
| 34 | Configuration parameters |
| 35 | ======================== |
| 36 | |
| 37 | |
| 38 | Example reclass |
| 39 | =============== |
| 40 | |
| 41 | Single node memcached service, default parameters but modified cache size. |
| 42 | |
| 43 | .. code-block:: yaml |
| 44 | |
| 45 | classes: |
| 46 | - service.memcached.server.single |
| 47 | |
| 48 | parameters: |
| 49 | memcached: |
| 50 | server: |
| 51 | cache_size: 64 |
| 52 | |
| 53 | Sample pillar |
| 54 | ============= |
| 55 | |
| 56 | .. code-block:: yaml |
| 57 | |
| 58 | memcached: |
| 59 | server: |
| 60 | enabled: true |
| 61 | cache_size: 64 |
| 62 | bind: |
| 63 | address: 0.0.0.0 |
| 64 | port: 11211 |
| 65 | protocol: tcp |
| 66 | |
| 67 | Read more |
| 68 | ========= |
| 69 | |
| 70 | * http://memcached.org/ |