Skip to content
Discussion options

You must be logged in to vote

Appologies for the delay, I didn't see your final question until now.

Maybe there is a different angle to this. Could relay support single persistent redis connection per php-fpm worker pool? 🤔 For example, our php-fpm pools have 40 workers, so we could save up to 40x persistent connections if relay was able to share the connection. Then you would not need proxy like Envoy at all.

So the short answer here is yes, it is technically possible.

The longer answer is that it requires somewhat exotic mechanisms in the kernel. On newer kernels you can use the pidfd_getfd syscall to share a kernel file descriptor between unrelated processes. This does require giving the worker processes elevated…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@dorrogeray
Comment options

@michael-grunder
Comment options

@dorrogeray
Comment options

@michael-grunder
Comment options

Answer selected by dorrogeray
@dorrogeray
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
3 participants