github.com/inflatablewoman/deis@v1.0.1-0.20141111034523-a4511c46a6ce/docs/customizing_deis/cache_settings.rst (about)

     1  :title: Customizing cache
     2  :description: Learn how to tune custom Deis settings.
     3  
     4  .. _cache_settings:
     5  
     6  Customizing cache
     7  =========================
     8  The following settings are tunable for the :ref:`cache` component. Values are stored in etcd.
     9  
    10  Dependencies
    11  ------------
    12  Requires: none
    13  
    14  Required by: :ref:`controller <controller_settings>`, :ref:`registry <registry_settings>`
    15  
    16  Considerations: none
    17  
    18  Settings set by cache
    19  ---------------------
    20  The following etcd keys are set by the cache component, typically in its /bin/boot script.
    21  
    22  ================              ==============================================
    23  setting                       description
    24  ================              ==============================================
    25  /deis/cache/host              IP address of the host running cache
    26  /deis/cache/port              port used by the cache service (default: 6379)
    27  ================              ==============================================
    28  
    29  Settings used by cache
    30  ----------------------
    31  The cache component uses no keys from etcd.
    32  
    33  Using a custom cache image
    34  --------------------------
    35  You can use a custom Docker image for the cache component instead of the image
    36  supplied with Deis:
    37  
    38  .. code-block:: console
    39  
    40      $ deisctl config cache set image=myaccount/myimage:latest
    41  
    42  This will pull the image from the public Docker registry. You can also pull from a private
    43  registry:
    44  
    45  .. code-block:: console
    46  
    47      $ deisctl config cache set image=registry.mydomain.org:5000/myaccount/myimage:latest
    48  
    49  Be sure that your custom image functions in the same way as the `stock cache image`_ shipped with
    50  Deis. Specifically, ensure that it sets and reads appropriate etcd keys.
    51  
    52  .. _`stock cache image`: https://github.com/deis/deis/tree/master/cache