godaddy / node-cluster-service

Turn your single process code into a fault-resilient, multi-process service with built-in REST & CLI support. Restart or hot upgrade your web servers with zero downtime or impact to clients.

Home Page:https://www.npmjs.org/package/cluster-service

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Net Statistics doesn't work if using multiple instances of cservice

asilvas opened this issue · comments

If the master references a different version of cservice than the worker reporting net stats, the wrong data will be reported. Should be a pretty nitch case.

Fixed for net stats, but this is something we'll probably want to address in the future for any type of worker statistics that may be tracked from two separate cluster-service modules. This requires an RPC-like interface, which is painful (read: hacky), without exposing to a reliable transport like TCP. Still relying on node's native process messages (fast & secure), which is not RPC friendly.