I have a Django app (music streaming service) running on a free hosting account on Heroku with a Postgres database with one web dyno. Yesterday I wrote a script that uploads mp3 files to Heroku, extract meta data, then upload it the files to Amazon S3. When I'm going through this process, I get this error when I try to refresh
could not fork new process for connection: Cannot allocate memory
or
FATAL: remaining connection slots are reserved for non-replication superuser connections
When I go to postgres.heroku.com to see the statistics, here is what I have :
Plan Dev
Status available
Data Size 9.0 MB
Tables 0
PG Version 9.1.6
Created December 05, 2012 17:33
We have no users yet, in fact, I'm the only one using it at the moment. I'm sure we soon have to upgrade but I'm not sure with what to start. Should we start with the database, get more dynos, or what? I even started thinking of switching to MongoDB as the frequency of read and writing data to the database will be relatively high (incrementing the number of stars and listens per song, number of minutes listened by each user, etc etc).
Any suggestions?