r5d4 is an Analytics engine written in python using Redis datastore providing an HTTP API. Check the project wiki for more information.
r5d4 is a Star Wars character that has a bad motivator, whatever that means.
R5-D4 had a purpose. R5-D4 was placed as an intelligence gathering source in the office of the
Imperial Prefect's administrative assistant in Mos Eisley.
- redis -
sudo apt-get install redis-server - flask -
sudo easy_install flask - redis-py -
sudo easy_install redis
- redis >=2.2 - For making UNIX socket connections; Better network latency
- hiredis -
sudo easy_install hiredis- Faster Redis operations
- uwsgi -
sudo easy_install uwsgi - nginx >0.8 -
sudo apt-get install nginx| Ubuntu 10.04 users use nginx PPA
- A sample upstart script for starting UWSGI running flask and analytics worker
is inside
scripts/upstart/folder. - A sample nginx configuration file for reverse proxying to flask app is inside
scripts/nginx_conf/folder - Install the upstart and nginx config files in
/etc/init/and/etc/nginx/sites-enabled/respectively. - The server can be started using:
sudo service uwsgi_r5d4 startsudo service nginx start
The following are some trivial tests to check whether the installation succeeded
redis-cli publish AnalyticsWorkerCmd refreshshould return(integer) 1