Skip to content

feat: support layer 4 load balancing - #1154

Merged
jranson merged 8 commits into
trickstercache:v2.2from
jranson:jr/l4lb
Sep 21, 2026
Merged

jranson merged 8 commits into
trickstercache:v2.2from
jranson:jr/l4lb

Conversation

@jranson

@jranson jranson commented Sep 20, 2026 •

Copy link
Copy Markdown
Member

Description

This change expands the ALB to support Layer 4 load balancing for both TCP and UDP and adds several new mechanisms to the ALB.

Fixes #1145

New Mechanisms

Mechanism Config Provides Description
Power of Two Choices p2c Scaling draws two healthy pool members at random and routes to the one with fewer requests in flight
Least Connections lc Scaling routes to the healthy pool member with the fewest requests in flight
Least Time lt Speed routes to the healthy pool member with the lowest response latency, scaled by its requests in flight
Highest Random Weight hrw Affinity consistently routes each client, tenant or other key to the same healthy pool member
Connect Race race Speed connects a tcp or tls stream connection to several pool members at once and relays over the first to connect
UDP Mirror udp_mirror Replication copies every datagram of a udp stream session to every healthy pool member, and answers from the first

Type of Change

    • Bug fix
    • New feature
    • Optimization
    • Test coverage
    • Documentation
    • Infrastructure

AI Disclosure

    • This contribution DOES NOT include AI-generated changes
    • This contribution DOES include AI-generated changes, and I have reviewed the relevant contributing guidelines.

Signed-off-by: James Ranson <james@ranson.org>
Signed-off-by: James Ranson <james@ranson.org>
Signed-off-by: James Ranson <james@ranson.org>
Signed-off-by: James Ranson <james@ranson.org>
Signed-off-by: James Ranson <james@ranson.org>
Signed-off-by: James Ranson <james@ranson.org>
@jranson
jranson requested a review from a team as a code owner September 20, 2026 06:57
@jranson jranson added enhancement New feature or request refactor Optimize or modernize existing code alb affects the application load balancer 2.2 release fix/feature slated for 2.2 release labels Sep 20, 2026
Comment thread pkg/backends/alb/mech/pick/writer.go Dismissed
@jranson
jranson changed the base branch from main to v2.2 September 21, 2026 19:55
Signed-off-by: James Ranson <james@ranson.org>
Signed-off-by: James Ranson <james@ranson.org>
@jranson
jranson merged commit 03b6e53 into trickstercache:v2.2 Sep 21, 2026
1 check passed
@jranson
jranson deleted the jr/l4lb branch September 22, 2026 03:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.2 release fix/feature slated for 2.2 release alb affects the application load balancer enhancement New feature or request refactor Optimize or modernize existing code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support Layer 4 Load Balancing

3 participants