Giter Club home page Giter Club logo

nanobox-docker-memcached's Introduction

Memcached Build Status Image

This is an Memcached Docker image used to launch a Memcached service on Nanobox. To use this image, add a data component to your boxfile.yml with the nanobox/memcached image specified:

data.cache:
  image: nanobox/memcached

Memcached Configuration Options

Memcached components are configured in your boxfile.yml. All available configuration options are outlined below.

Quick Links

version
return_error_on_memory_exhausted
max_connections
chunk_size_growth_factor
minimum_allocated_space
maximum_requests_per_event
disable_cas
max_backlog
binding_protocol

Overview of Memcached Boxfile Settings

data.cache:
  image: nanobox/memcached
  config:
    version: 1.4
    return_error_on_memory_exhausted: false
    max_connections: 1024
    chunk_size_growth_factor: 1.25
    minimum_allocated_space: 48
    maximum_requests_per_event: 20
    disable_cas: false
    max_backlog: 1024
    binding_protocol: 'auto'

Version

When configuring a Memcached component in your Boxfile, you can specify which version to use. The following version(s) are available:

  • 1.4
  • 1.5

Note: Due to version compatibility constraints, memcached versions cannot be changed after the component is created. To use a different version, you'll have to create a new Memcached component.

version

# default setting
data.cache:
  image: nanobox/memcached
  config:
    version: 1.4

Return Error on Memory Exhausted

This allows you to have memcached return an error when memory is exhausted rather than removing items.

return_error_on_memory_exhausted

#default setting
data.cache:
  image: nanobox/memcached
  config:
    return_error_on_memory_exhausted: false

Max Connections

Sets the limit for simultaneous connections.

max_connections

#default setting
data.cache:
  image: nanobox/memcached
  config:
    max_connections: 1024

Chunk Size Growth Factor

Specifies the chunk size growth factor.

chunk_size_growth_factor

#default setting
data.cache:
  image: nanobox/memcached
  config:
    chunk_size_growth_factor: 1.25

Minimum Allocated Space

Sets the minimum space allocated for key+value+flags.

minimum_allocated_space

#default setting
data.cache:
  image: nanobox/memcached
  config:
    minimum_allocated_space: 48

Maximum Requests Per Event

Sets the maximum number of requests per event and limits the number of requests processed for a given connection to prevent starvation.

maximum_requests_per_event

#default setting
data.cache:
  image: nanobox/memcached
  config:
    maximum_requests_per_event: 20

Disable CAS

Allows you to disable the use of CAS.

disable_cas

#default setting
data.cache:
  image: nanobox/memcached
  config:
    disable_cas: false

Max Backlog

Sets the backlog queue limit.

max_backlog

#default setting
data.cache:
  image: nanobox/memcached
  config:
    max_backlog: 1024

Binding Protocol

Allows you to set the binding protocol. The following are available:

  • auto
  • ascii
  • binary

binding_protocol

#default setting
data.cache:
  image: nanobox/memcached
  config:
    binding_protocol: 'auto'

Help & Support

This is a Memcached Docker image provided by Nanobox. If you need help with this image, you can reach out to us in the #nanobox IRC channel. If you are running into an issue with the image, feel free to create a new issue on this project.

License

Mozilla Public License, version 2.0

nanobox-docker-memcached's People

Contributors

glinton avatar tylerflint avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.