F5 Sites
  • F5.com
  • F5 Labs
  • MyF5
  • NGINX
  • Partner Central
  • Education Services Portal (ESP)
Contact
  • Under Attack?
  • F5 Support
  • DevCentral Support
  • F5 Sales
  • NGINX Sales
  • F5 Professional Services
Skip to contentBrand Logo
Forums
CrowdSRC
Articles
GroupsEventsSuggestionsHow Do I...?
RegisterSign In
  1. DevCentral
  2. CrowdSRC
  3. CodeShare

Real Least Connections iRule

Problem this snippet solves: Due to BIG-IP TMOS CMP (Clustered MultiProcessing) architecture, customers that desire least connections behavior for LB will occasionally see uneven LB behavior because...
Published Feb 06, 2017
Version 1.0
application delivery
iRules
least connections
LTM
rdp
terminal services
vdi
Chad_Jenison's avatar
Chad_Jenison
Icon for Nimbostratus rankNimbostratus
Joined May 13, 2008
View Profile
Chad_Jenison's avatar
Chad_Jenison
Icon for Nimbostratus rankNimbostratus
Jul 12, 2017

Kai, just saw your comment now (5 months later). Will take the feedback into consideration and revise the iRule. Good feedback, thank you. I realize now that I never got my head around lifetime vs timeout and in light of this, the whole approach of the iRule might be untenable since the table entries set early on (when connection counts are low) are almost inevitably going to timeout no matter what I set it to on any virtual where connection counts don't drop down to 0 on a regular basis (many will not).

 

Re: Note2, I wasn't so worried about the expense associated with execution of this iRule, because I think the situations that call for "improved" least connections (as opposed to the built-in) to deal with CMP idiosyncrasies are relatively low connection establishment rate virtuals (e.g. VDI) and all the code is only executing during connection establishment and teardown.

 

Help guide the future of your DevCentral Community!

What tools do you use to collaborate? (1min - anonymous)

ABOUT DEVCENTRAL

DevCentral NewsTechnical ForumTechnical ArticlesTechnical CrowdSRCCommunity GuidelinesDevCentral EULAGet a Developer Lab LicenseBecome a DevCentral MVP

RESOURCES

Product DocumentationWhite PapersGlossaryCustomer StoriesWebinarsFree Online CoursesTraining & Certification

SUPPORT

Manage SubscriptionsProfessional ServicesCreate a Service RequestSoftware DownloadsSupport Portal

PARTNERS

Find a Reseller PartnerTechnology AlliancesBecome an F5 PartnerLogin to Partner Central

©2026 F5, Inc. All rights reserved.
TrademarksPoliciesPrivacyCalifornia PrivacyDo Not Sell My Personal Information