node.js - Concurrency with Heroku web dynos + Node js + Mongo HQ -
i developping web app on heroku. of requests on server database operations. how many concurrent requests can treated 1 web dyno + 1 mongo hq replicaset ? how increment value ?
the number of open connections database (connection pools) determined mongodb driver , can set manually when client initialized.
you should check database hosting service if limit number of open connections.
make sure initialize client 1 time each web dyno , not on every database request mistake, connections pool used.
also, maintain in mind dyno has 4 cores, if you're running 4 processes 'cluster', each 1 of processes have own connections pool.
node.js mongodb heroku
No comments:
Post a Comment