| title: | Customizing cache |
|---|---|
| description: | Learn how to tune custom Deis settings. |
The following settings are tunable for the :ref:`cache` component. Values are stored in etcd.
The following etcd keys are set by the cache component, typically in its /bin/boot script.
| setting | description |
|---|---|
| /deis/cache/host | IP address of the host running cache |
| /deis/cache/port | port used by the cache service (default: 6379) |
The cache component uses no keys from etcd.
You can use a custom Docker image for the cache component instead of the image supplied with Deis:
$ etcdctl set /deis/cache/image myaccount/myimage:latestThis will pull the image from the public Docker registry. You can also pull from a private registry:
$ etcdctl set /deis/cache/image registry.mydomain.org:5000/myaccount/myimage:latestBe sure that your custom image functions in the same way as the stock cache image shipped with Deis. Specifically, ensure that it sets and reads appropriate etcd keys.