kubernetes-ingress icon indicating copy to clipboard operation
kubernetes-ingress copied to clipboard

Consistent Hashing of UDP packet based on first x bytes of UDP data

Open bkannadassan opened this issue 2 years ago • 2 comments

Is your feature request related to a problem? Please describe. In case of udp packet we want to take a certain data offset and use that to hash for upstream. Since we see all request coming from same 5 tuple.

Describe the solution you'd like In stream read x bytes and set that in a variable and use that as the consistent hash key

Describe alternatives you've considered I am going through lua not sure but looks like can be done by doing a udp::receive of first few bytes..

Additional context None

Aha! Link: https://nginx.aha.io/features/IC-417

bkannadassan avatar Nov 22 '21 10:11 bkannadassan

Hi @bkannadassan thanks for reporting!

Be sure to check out the docs while you wait for a human to take a look at this :slightly_smiling_face:

Cheers!

github-actions[bot] avatar Nov 22 '21 10:11 github-actions[bot]

hash ${data_offset}[1:4] consistent; Something like above in the udp would help a lot..

bkannadassan avatar Nov 30 '21 13:11 bkannadassan