Skip to content

practo/r5d4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Read Me

r5d4 is an Analytics engine written in python using Redis datastore providing an HTTP API. Check the project wiki for more information.

What's In a Name

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.

Prerequisites

Core

  • redis - sudo apt-get install redis-server
  • flask - sudo easy_install flask
  • redis-py - sudo easy_install redis

Optional

  • redis >=2.2 - For making UNIX socket connections; Better network latency
  • hiredis - sudo easy_install hiredis - Faster Redis operations

Deployment

  • uwsgi - sudo easy_install uwsgi
  • nginx >0.8 - sudo apt-get install nginx | Ubuntu 10.04 users use nginx PPA

Installing (UWSGI + Nginx + Ubuntu)

  • 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 start
  • sudo service nginx start

Verifying Installation

The following are some trivial tests to check whether the installation succeeded

  • redis-cli publish AnalyticsWorkerCmd refresh should return (integer) 1

About

Analytics Aggregation Engine using Redis and Flask

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages