meteorhacks / cluster

Clustering solution for Meteor with load balancing and service discovery
https://meteorhacks.com/cluster-a-different-kind-of-load-balancer-for-meteor.html
MIT License
632 stars 80 forks source link

Cluster: no such endpoint for service #56

Open aykutyaman opened 9 years ago

aykutyaman commented 9 years ago

I have 3 servers deployment on AWS. Sometimes one of my servers returns 404s for socks.js requests like this: /sockjs/info?cb=_4xxw5rmad And my app in that server stops to function. Servers' upstart log is plenty of these lines:

Kadira: Error sending payload (dropped after 5 tries) undefined
Cluster: no such endpoint for service:notification
Cluster: no such endpoint for service:notification
Cluster: no such endpoint for service:web
Cluster: there is no endpoint but we've a hash: f3439f2f4d2dc847b6f86d2580f721107277dd64
Cluster: there is no endpoint but we've a hash: f3439f2f4d2dc847b6f86d2580f721107277dd64

I can't even display my server ip under the hosts' selectbox of kadira.

aykutyaman commented 9 years ago

I found this exception today in the logs.

Exception in setTimeout callback: TypeError: Cannot read property 'serviceName' of undefined^M
    at MongoDiscoveryStore.remove (packages/meteorhacks:cluster/lib/server/discovery_backends/mongo/store.js:37:1)^M
    at packages/meteorhacks:cluster/lib/server/discovery_backends/mongo/discovery.js:239:1^M
    at Array.forEach (native)^M
    at fecthAndWatch (packages/meteorhacks:cluster/lib/server/discovery_backends/mongo/discovery.js:237:1)^M
    at [object Object]._.extend.withValue (packages/meteor/dynamics_nodejs.js:56:1)^M
    at packages/meteor/timers.js:6:1^M
    at runWithEnvironment (packages/meteor/dynamics_nodejs.js:108:1)^M
arunoda commented 9 years ago

Fixed with 4e0d719. Will do a release soon.