Provides score updates and analytics for the official BOTB Android application.
Adapted from 2014 backend done by @chamathpali
- Install
redis
http://redis.io/topics/quickstart - Configure swappiness
//etc/sysctl.conf
vm.swappiness=0
vm.overcommit_memory=1
- Install
phpredis
https://github.com/phpredis/phpredis#installation - Enable mysql query caching. http://www.cyberciti.biz/tips/enable-the-query-cache-in-mysql-to-improve-performance.html
- Install
supervisord
http://supervisord.org/installing.html - Start workers by
supervisord -c supervisord.conf
- Supervisord monitoring http://localhost:9001
/commentary
: List of commentaries./stats
: Current match stats./trigger_push
: Send score push