Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Web application for music sharing. A personal scalability experiment.
Python JavaScript
branch: master

README

Simple web.py application for music sharing

Requirements:

webpy & python mysql support
python-magic : http://gavinjnet.blogspot.com/2007/05/python-file-magic.html
python-simplejson

Arhitecture:

Master/Slave MySQL database:
 - write to master & read from slaves
Cluster of identical nodes. Components:
 - nginx + wsgi for app
 - log analyser 
Memcache for session storage & for avoiding database hits
Apache Solr for search and clustering
ActiveMQ for async tasks

Details:

Upload steps:
- check file format & extract info
- check local storage space & save if available
- if space not available contact another computer from cluster
- send message notification of the new file

Log analyser:
- watch nginx log and node load. if high load detected 
send notification message in order to improve capabilities

Something went wrong with that request. Please try again.