goproxy icon indicating copy to clipboard operation
goproxy copied to clipboard

Upstream load balance weight

Open vgabunia opened this issue 1 year ago • 9 comments

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!

vgabunia avatar Oct 04 '24 16:10 vgabunia

2/3

snail007 avatar Oct 05 '24 00:10 snail007

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

vgabunia avatar Oct 05 '24 00:10 vgabunia

2/(1+2)

snail007 avatar Oct 06 '24 05:10 snail007

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?

vgabunia avatar Oct 13 '24 22:10 vgabunia

this is the feature of commercial edition

snail007 avatar Oct 13 '24 23:10 snail007

I bought license :) I have 6 licenses :)

vgabunia avatar Oct 13 '24 23:10 vgabunia

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?

vgabunia avatar Oct 13 '24 23:10 vgabunia

wrong

snail007 avatar Oct 14 '24 09:10 snail007

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: @.***>

vgabunia avatar Oct 14 '24 09:10 vgabunia

hi

1786664-ctrl avatar Oct 03 '25 12:10 1786664-ctrl