[GH-ISSUE #570] Upstream load balance weight #458

Open
opened 2026-02-27 23:16:58 +03:00 by kerem · 10 comments
Owner

Originally created by @vgabunia on GitHub (Oct 4, 2024).
Original GitHub issue: https://github.com/snail007/goproxy/issues/570

Hi,
What is weight login in upstream/parent proxy , less means better of lower priority? In the following example:

1.1.1.1:33080?w=1 -P 2.1.1.1:33080?w=2

upstream 2.1.1.1 will receives more or less traffic? Distribution would be 2/1?
Thank you!

Originally created by @vgabunia on GitHub (Oct 4, 2024). Original GitHub issue: https://github.com/snail007/goproxy/issues/570 Hi, What is weight login in upstream/parent proxy , less means better of lower priority? In the following example: 1.1.1.1:33080?w=1 -P 2.1.1.1:33080?w=2 upstream 2.1.1.1 will receives more or less traffic? Distribution would be 2/1? Thank you!
Author
Owner

@snail007 commented on GitHub (Oct 5, 2024):

2/3

<!-- gh-comment-id:2394813093 --> @snail007 commented on GitHub (Oct 5, 2024): 2/3
Author
Owner

@vgabunia commented on GitHub (Oct 5, 2024):

Hi,
Thank you for reply.
Can you explain me logic, it is important for me.
Why 2/3?
Thank you

<!-- gh-comment-id:2394816254 --> @vgabunia commented on GitHub (Oct 5, 2024): Hi, Thank you for reply. Can you explain me logic, it is important for me. Why 2/3? Thank you
Author
Owner

@snail007 commented on GitHub (Oct 6, 2024):

2/(1+2)

<!-- gh-comment-id:2395304516 --> @snail007 commented on GitHub (Oct 6, 2024): 2/(1+2)
Author
Owner

@vgabunia commented on GitHub (Oct 13, 2024):

Hi, I Using LB like this:
proxy http --lb-method=weight -T tcp -P 1.1.1.1:33080?w=1 -P 2.1.1.1:33080?w=2 -P 3.1.1.1:33080?w=1 -t tcp - p :33080

Traffic is always coming from one source, and always one upstream is chosen. this is normal process or I miss something?

<!-- gh-comment-id:2409249750 --> @vgabunia commented on GitHub (Oct 13, 2024): Hi, I Using LB like this: proxy http --lb-method=weight -T tcp -P 1.1.1.1:33080?w=1 -P 2.1.1.1:33080?w=2 -P 3.1.1.1:33080?w=1 -t tcp - p :33080 Traffic is always coming from one source, and always one upstream is chosen. this is normal process or I miss something?
Author
Owner

@snail007 commented on GitHub (Oct 13, 2024):

this is the feature of commercial edition

<!-- gh-comment-id:2409289931 --> @snail007 commented on GitHub (Oct 13, 2024): this is the feature of commercial edition
Author
Owner

@vgabunia commented on GitHub (Oct 13, 2024):

I bought license :)
I have 6 licenses :)

<!-- gh-comment-id:2409324306 --> @vgabunia commented on GitHub (Oct 13, 2024): I bought license :) I have 6 licenses :)
Author
Owner

@vgabunia commented on GitHub (Oct 13, 2024):

I thin weight logic is not clear for me :(
Let me ask you:
if on one server i have 30 IP and on another i have 60 , if i will use weight ?w=30 for first and ?w=60 it would be correct?

<!-- gh-comment-id:2409342582 --> @vgabunia commented on GitHub (Oct 13, 2024): I thin weight logic is not clear for me :( Let me ask you: if on one server i have 30 IP and on another i have 60 , if i will use weight ?w=30 for first and ?w=60 it would be correct?
Author
Owner

@snail007 commented on GitHub (Oct 14, 2024):

wrong

<!-- gh-comment-id:2410541940 --> @snail007 commented on GitHub (Oct 14, 2024): wrong
Author
Owner

@vgabunia commented on GitHub (Oct 14, 2024):

Hi,
thank you.
can you recommend how to do correctly?

On Mon, Oct 14, 2024 at 1:14 PM snail007 @.***> wrote:

wrong


Reply to this email directly, view it on GitHub
https://github.com/snail007/goproxy/issues/570#issuecomment-2410541940,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AR5RCJLYXPHUNICYEJMV56TZ3ODPVAVCNFSM6AAAAABPMF4HG6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJQGU2DCOJUGA
.
You are receiving this because you authored the thread.Message ID:
@.***>

<!-- gh-comment-id:2410616775 --> @vgabunia commented on GitHub (Oct 14, 2024): Hi, thank you. can you recommend how to do correctly? On Mon, Oct 14, 2024 at 1:14 PM snail007 ***@***.***> wrote: > wrong > > — > Reply to this email directly, view it on GitHub > <https://github.com/snail007/goproxy/issues/570#issuecomment-2410541940>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AR5RCJLYXPHUNICYEJMV56TZ3ODPVAVCNFSM6AAAAABPMF4HG6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJQGU2DCOJUGA> > . > You are receiving this because you authored the thread.Message ID: > ***@***.***> >
Author
Owner

@1786664-ctrl commented on GitHub (Oct 3, 2025):

hi

<!-- gh-comment-id:3365566942 --> @1786664-ctrl commented on GitHub (Oct 3, 2025): hi
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/goproxy#458
No description provided.