Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bkuhl/redis-overcommit-on-host
Enable overcommitting to memory on a host running a redis container
https://github.com/bkuhl/redis-overcommit-on-host
Last synced: 30 days ago
JSON representation
Enable overcommitting to memory on a host running a redis container
- Host: GitHub
- URL: https://github.com/bkuhl/redis-overcommit-on-host
- Owner: bkuhl
- Created: 2018-02-21T00:18:13.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-18T15:42:41.000Z (almost 6 years ago)
- Last Synced: 2024-11-07T06:46:25.516Z (3 months ago)
- Language: Dockerfile
- Size: 11.7 KB
- Stars: 47
- Watchers: 1
- Forks: 13
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# redis-overcommit-on-host
Enable overcommitting to memory on a host running a redis container. See the [Redis documentation](https://redis.io/topics/faq#background-saving-fails-with-a-fork-error-under-linux-even-if-i-have-a-lot-of-free-ram) for more information.
# How to use
Schedule this container to run alongside any host with a running `redis` container.##### Command line
```sh
docker run https://github.com/bkuhl/redis-overcommit-on-host.git -v /proc/sys/vm:/mnt/vm --privileged
```##### Docker Compose
```yml
version: '3'services:
# redis-overcommit-on-host
redis-overcommit:
build: https://github.com/bkuhl/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.