Web application for music sharing. A personal scalability experiment.
Switch branches/tags
Nothing to show
Clone or download
Latest commit 09b9eec May 18, 2009


Simple web.py application for music sharing


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


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


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