Project

General

Profile

Actions

Feature #2117

closed

Source IP sticky load balancing patch

Added by bra over 14 years ago. Updated over 7 years ago.

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

Description

The attached patch implements source IP address dependent sticky load balancing with the same algorithm as the hash balancer.
The only differences are the parameters, which help the decision on what target should be chosen.

The patch takes the HTTP client's (source) IP, the remote proxy IP and port into account during the decision, so if the server list doesn't change, the same client will always get the same proxy target (IP and port) for its queries.

The patch is against lighttpd 1.4.25.


Files

lighttpd-sticky.patch (2.16 KB) lighttpd-sticky.patch bra, 2009-12-10 13:49

Related issues 1 (0 open1 closed)

Related to Feature #959: add jvmRoute support to mod_proxy_ajp13Missing FeedbackActions
Actions #1

Updated by stbuehler about 14 years ago

  • Target version changed from 1.4.26 to 1.4.27
Actions #2

Updated by nitrox almost 14 years ago

  • Target version changed from 1.4.27 to 1.4.28
Actions #3

Updated by stbuehler over 13 years ago

  • Target version changed from 1.4.28 to 1.4.x
  • % Done changed from 100 to 0

strdup() without any free - memleak.

Actions #4

Updated by gstrauss over 7 years ago

  • Status changed from New to Patch Pending
  • Target version changed from 1.4.x to 1.4.44

BTW, no need to strdup() result from inet_ntop_cache_get_ip(), since value is already cached in con->dst_addr_buf

Actions #5

Updated by gstrauss over 7 years ago

  • Status changed from Patch Pending to Fixed
  • % Done changed from 0 to 100
Actions #6

Updated by gstrauss about 7 years ago

  • Related to Feature #959: add jvmRoute support to mod_proxy_ajp13 added
Actions

Also available in: Atom