fork-named-cluster
you can fork your cluster with custom process name as filename.
when you has multi-cluster, It will be make you debug easier.
usage
/// your-worker-filesetTimeout;
;// or; forkClusterrequire.resolve'./your-worker-file', ; ;;// {say:"hi"}
and you can get your process name by:
processprocess.nameprocess.env.name
DEMO
it is my demo code:
and run it as --inspect-brk
, then open your chrome://inspect
.
you can see: