worker process number

dobe nginx-forum at
Tue Dec 22 16:22:47 MSK 2009

hi all

is there a way to get a unique index of the current worker process via a variable? (e.g. 0,1,2,3 for 4 workers)

i want to use it as a memcache prefix, therefore i cannot use $pid because this changes upon restart.

any clues, thx

Posted at Nginx Forum:,32750,32750#msg-32750

More information about the nginx mailing list