Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

What are the BALANCING_TOKENS and BALANCING_CONNECTIONS options?

5 views
Skip to first unread message

Brad Wood

unread,
Aug 16, 2023, 11:34:17 AM8/16/23
to Undertow Dev
I've come across two options that exist in both the XNIO Options class:
  • BALANCING_TOKENS - The number of balancing tokens, if connection-balancing is enabled. Must be less than the number of I/O threads, or 0 to disable balancing and just accept opportunistically. 
  • BALANCING_CONNECTIONS - The number of balancing tokens, if connection-balancing is enabled.

I can't figure out for the life of me what exactly these do!  They appear in a handful of examples online, but there are no docs, explanations, or even comments in the XNIO source code where they are used explaining what they are, why I'd use them, or how they work.  

Can anyone shed any light or point me to any docs that Google has somehow missed?

Brad Wood

unread,
Aug 24, 2023, 4:49:59 PM8/24/23
to Undertow Dev
Any insight here from the Undertow team?
Reply all
Reply to author
Forward
0 new messages