dancrew32 / ab

A/B Testing Framework for Python (with optional Multi-armed bandit implementation)
https://pypi.org/project/ab/
The Unlicense
3 stars 3 forks source link

Docker app for MAB demo #15

Closed dancrew32 closed 4 years ago

dancrew32 commented 4 years ago

Closes: #13

dancrew32 commented 4 years ago

Need to setup a redis.conf

redis_1  | 1:C 17 Aug 2019 19:38:51.649 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf

Need to make sure flask is really in prod mode:

app_1    |    WARNING: This is a development server. Do not use it in a production deployment.
app_1    |    Use a production WSGI server instead.

Fix this redis warning:

redis_1  | 1:M 17 Aug 2019 19:38:51.651 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.

And this redis warning:

redis_1  | 1:M 17 Aug 2019 19:38:51.651 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.

And this one:

redis_1  | 1:M 17 Aug 2019 19:38:51.651 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command 'echo never > /sys/kernel/mm/transparent_hugepage/enabled' as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.

Also need to make sure ./data gets a copy of dump.rdb that persists after docker containers are destroyed and rebuilt.