node.js - Heroku Worker Dyno memcachem -


i have heroku app using 3 dynos: 1 web , 2 worker dynos. inter-dyno-communication choose memcachier, everthing implemented using nodejs.

the web-dyno has no problems connecting memcacher service , works charme, trying connect worker dyno fails , tcp connection receives reset:

memjs: server <mc5.dev.ec2.memcachier.com:11211> failed after (2) retries error - write econnreset 

the method connecting service same works in web-dyno..

where problem?

this code:

    var memjs = require('memjs').client,         memjs = memjs.create();      setinterval(function () {      memjs.set('test', 'test');        memjs.get('test', function (err, buf) {          if (err)              console.log('error damn memcache service ' + err);          else              console.log('memcache service working: ' + buf.tostring());      });     }, 5000); 

works on web-dyno doesn't work on worker-dyno..


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -