Skip to content

Enable overcommitting to memory on a host running a redis container

Notifications You must be signed in to change notification settings

simsasaile/redis-overcommit-on-host

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

redis-overcommit-on-host

Enable overcommitting to memory on a host running a redis container. See the Redis documentation for more information.

How to use

Schedule this container to run alongside any host with a running redis container.

Command line
docker run https://github.com/simsasaile/redis-overcommit-on-host.git -v /proc/sys/vm:/mnt/vm --privileged
Docker Compose
version: '3'

services:
  # redis-overcommit-on-host
  redis-overcommit:
    build: https://github.com/simsasaile/redis-overcommit-on-host.git
    restart: 'no'
    privileged: true
    volumes:
      - /proc/sys/vm:/mnt/vm

  # Your existing Redis service
  redis:
    image: 'redis'
    restart: 'always'
    depends_on:
      - redis-overcommit

Why do this in a container?

I'm a big fan of a container's ability to serve as documentation for any special changes that need to happen on the host for a container to run right.

About

Enable overcommitting to memory on a host running a redis container

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 100.0%