Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 1.04 KB

replicated-pools.md

File metadata and controls

23 lines (18 loc) · 1.04 KB

Replicated Pools

The memcached operator supports creating a memcached proxy that replicates keys among a group of memcached instances.

When memcached instances become unavailable this could have an impact on the performance of an application. In order to support a more highly available setup, you will want to create multiple memcached instances that have a full copy of cached data. Each key is saved to every member of the replicated pool.

The memcached operator determines the servers in the pool by using a Kubernetes service. Each memcached pod that is a member of the service is treated as a member of the memcached pool.

Here is an example of a MemcachedProxy where keys are replicated among a group of memcached instances that are members of the "replicated-memcached" service.

apiVersion: ianlewis.org/v1alpha1
kind: MemcachedProxy
metadata:
  name: replicated-example
spec:
  rules:
    type: "replicated"
    service:
      name: "replicated-memcached"
      port: 11211