I'm curious how do you know that your heroin guitars are in the same data center as mongolab instances? By ip somehow? Can you really be sure? Both of these services use several availability zones in the AWS us-east-1 region, and as far as I know, you do not indicate a preference or report where the resources are located. 2 dynos heroes for the same application can, and because of its sounds, probably live in different AWS AZ. Of course, different AZs are located in different data centers, and I believe that some access zones cover several data centers.
In any case, you are not the only one. Recently, I have had frequent problems connecting both from Heroku and from my own instances of ec2 to Mongolab and Mongok in the same region of the Amazon. Mongohq support reiterated that they also had connectivity issues between EC2 instances in different AZs in us-east-1, and hinted that AWS support has recently confirmed some network-level / security group scaling issues. I managed to find this article: http://orensol.com/2009/05/24/network-latency-inside-and-across-amazon-ec2-availability-zones/ , which suggests that the observed delays are exceptionally high .
Perhaps related to this, I also had problems with DNS resolvers in EC2 - included in Heroka - in Mongolab and mongohq. Even for route zones 53, for which all reputable servers belong to Amazon. In general, it seems that the connection between the access zones in us-east-1 is now not 100%, so although I would advise you to experiment with other database services based on EC2, you can not see any difference.
source share