Page MenuHomePhabricator

Check if it still makes sense to have 8 varnish sockets being used by HAProxy
Closed, ResolvedPublic

Description

Back in the day when the TLS termination layer used TCP to talk to varnish we set 8 different ports (3120 - 3127) to avoid experiencing port exhaustion issues. This has been replicated without further analysis when the TLS termination layer was assumed by HAProxy and UDS adopted. Check if this makes any sense nowadays or a single socket works as fine.

Event Timeline

Vgutierrez triaged this task as Medium priority.Apr 4 2023, 2:17 PM
Vgutierrez moved this task from Backlog to Traffic team actively servicing on the Traffic board.

Change 905643 had a related patch set uploaded (by Vgutierrez; author: Vgutierrez):

[operations/puppet@production] hiera: Use a single socket on haproxy/varnish on cp60[08,16]

https://gerrit.wikimedia.org/r/905643

Change 905643 merged by Vgutierrez:

[operations/puppet@production] hiera: Use a single socket on haproxy/varnish on cp60[08,16]

https://gerrit.wikimedia.org/r/905643

Mentioned in SAL (#wikimedia-operations) [2023-04-04T14:28:33Z] <vgutierrez> switch cp6008 (upload) and cp6016 (text) to use a single UDS socket between haproxy and varnish - T333965

Change 908205 had a related patch set uploaded (by Vgutierrez; author: Vgutierrez):

[operations/puppet@production] hiera: Use a single socket for haproxy/varnish on drmrs

https://gerrit.wikimedia.org/r/908205

Change 908205 merged by Vgutierrez:

[operations/puppet@production] hiera: Use a single socket for haproxy/varnish on drmrs

https://gerrit.wikimedia.org/r/908205

Change 909675 had a related patch set uploaded (by Vgutierrez; author: Vgutierrez):

[operations/puppet@production] hiera: Use a single UDS for haproxy<-->varnish traffic

https://gerrit.wikimedia.org/r/909675

Change 909675 merged by Vgutierrez:

[operations/puppet@production] hiera: Use a single UDS for haproxy<-->varnish traffic

https://gerrit.wikimedia.org/r/909675

Vgutierrez claimed this task.

Change 909688 had a related patch set uploaded (by Vgutierrez; author: Vgutierrez):

[operations/puppet@production] hiera: Use one socket on haproxy<-->varnish@ulsfo

https://gerrit.wikimedia.org/r/909688

Change 909688 merged by Vgutierrez:

[operations/puppet@production] hiera: Use one socket on haproxy<-->varnish@ulsfo

https://gerrit.wikimedia.org/r/909688

Change 957345 had a related patch set uploaded (by BBlack; author: BBlack):

[operations/puppet@production] beta: haproxy->varnish single UDS config

https://gerrit.wikimedia.org/r/957345

Change 957346 had a related patch set uploaded (by BBlack; author: BBlack):

[operations/puppet@production] Varnish: listen on only 1x UDS

https://gerrit.wikimedia.org/r/957346

Change 957348 had a related patch set uploaded (by BBlack; author: BBlack):

[operations/puppet@production] varnish: only listen on a single TCP port

https://gerrit.wikimedia.org/r/957348

Change 957349 had a related patch set uploaded (by BBlack; author: BBlack):

[operations/puppet@production] varnish: remove TCP monitoring

https://gerrit.wikimedia.org/r/957349

Change 957350 had a related patch set uploaded (by BBlack; author: BBlack):

[operations/puppet@production] varnish: limit TCP listener to localhost

https://gerrit.wikimedia.org/r/957350

Change 957345 merged by BBlack:

[operations/puppet@production] beta: haproxy->varnish single UDS config

https://gerrit.wikimedia.org/r/957345

Change 957346 merged by BBlack:

[operations/puppet@production] Varnish: listen on only 1x UDS

https://gerrit.wikimedia.org/r/957346

Change 957350 abandoned by BBlack:

[operations/puppet@production] varnish: limit TCP listener to localhost

Reason:

Merged into another related patch

https://gerrit.wikimedia.org/r/957350

Change 957349 merged by BBlack:

[operations/puppet@production] varnish: remove TCP monitoring

https://gerrit.wikimedia.org/r/957349

Change 957348 merged by BBlack:

[operations/puppet@production] varnish: only listen on a single, local TCP port

https://gerrit.wikimedia.org/r/957348