Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support LC distribution #481

Closed
UltraInstinct14 opened this issue Jan 4, 2024 · 1 comment
Closed

Support LC distribution #481

UltraInstinct14 opened this issue Jan 4, 2024 · 1 comment

Comments

@UltraInstinct14
Copy link
Contributor

loxilb currently supports RR, WRR distribution but in many cases LC (least connections) become necessary.

UltraInstinct14 added a commit that referenced this issue Mar 4, 2024
PR : gh-481 Support for selection of LB end-points based on least-connections
@TrekkieCoder
Copy link
Collaborator

The initial support is added. To configure using loxicmd -

loxicmd create 20.20.20.1 --tcp=2020:8080 --endpoints=31.31.31.1:1,32.32.32.1:1,33.33.33.1:1 --select lc

To configure using kube-loxilb, use the following yaml -

apiVersion: v1
kind: Service
metadata:
  name: sctp-lb
  annotations:
    loxilb.io/lbmode: "fullnat"
    loxilb.io/epselect : "lc"
    spec:
  loadBalancerClass: loxilb.io/loxilb
  externalTrafficPolicy: Local
  selector:
    what: sctp-lb
  ports:
   - port: 56004
     protocol: SCTP
     targetPort: 9999
  type: LoadBalancer

UltraInstinct14 added a commit that referenced this issue Mar 4, 2024
gh-481 cicd support for least-connections distribution
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants