othiym23 / node-continuation-local-storage

implementation of https://github.com/joyent/node/issues/5243
BSD 2-Clause "Simplified" License
1.13k stars 207 forks source link

CLS + cluster #47

Closed DeTeam closed 6 years ago

DeTeam commented 8 years ago

Hey @othiym23,

Hope you'll have some time to check this small test-case: https://github.com/DeTeam/cls-cluster We got a problem trying to run cluster mode in an express app together with cls. Setting up this config within a request (in a middleware) is fine, however when we want to use something "global" it fails. Guess it has something to do with how cluster works underneath. Please check it out, mb you'll have some comments ;)

Node versions I tried this with: 0.12, 4.1