Project

General

Profile

Actions

Feature #1103

closed

New proxy method: random

Added by llevesque about 17 years ago. Updated 4 months ago.

Status:
Fixed
Priority:
Normal
Category:
mod_proxy
Target version:
-
ASK QUESTIONS IN Forums:
No

Description

In 1.4 branch, the mod_proxy doens't have a totally random method.

Based on round-robin method in mod_proxy_core.


Files

mod_proxy.random.patch (2.13 KB) mod_proxy.random.patch llevesque, 2007-04-06 07:40
Actions #1

Updated by darix about 17 years ago

after a discussion on irc: this is not a bug but a new feature. moving it to 1.5.x

Actions #2

Updated by jan about 17 years ago

  • Status changed from New to Assigned

moving it into a later 1.5.x release

Actions #3

Updated by Anonymous about 17 years ago

Already implemented in trunk under the round-robin method:

source:trunk/src/mod_proxy_core.c@1793#L1835

Actions #4

Updated by gstrauss almost 8 years ago

  • Description updated (diff)
  • Assignee deleted (jan)
  • Target version changed from 1.5.0 to 1.4.x
Actions #5

Updated by gstrauss almost 8 years ago

  • Category changed from mod_proxy_core to mod_proxy
Actions #6

Updated by gstrauss over 7 years ago

  • Status changed from Assigned to Missing Feedback

When would it be advantageous to use "random" instead of proxy.balance = "fair" or proxy.balance = "round-robin"?

If "round-robin" is sufficient for admin, rotating requests through list of available hosts, then that is simplest method.

If "round-robin" is not sufficient for admin, then "fair" is likely better than "random", as "fair" will choose an active host with the least number of current requests in progress (as known to this individual lighttpd worker instance).

When would "random" be "better" than these choices, and how would it be "better"?

Actions #7

Updated by gstrauss over 7 years ago

  • Target version deleted (1.4.x)
Actions #8

Updated by gstrauss 4 months ago

  • Status changed from Missing Feedback to Fixed
  • ASK QUESTIONS IN Forums set to No

proxy.balance = "round-robin", though the default balancing method is "fair" / "least-connection"

Actions

Also available in: Atom