Ticket #735 (closed enhancement: invalid)

Opened 8 weeks ago

Last modified 5 weeks ago

Support backend control via CLI

Reported by: tgr Owned by: phk
Priority: normal Milestone:
Component: varnishd Version: trunk
Severity: normal Keywords:
Cc:

Description

The attached patches (for trunk and for 2.1, the only difference is Sphinx docs) are a PoC of CLI-based backend control for round-robin and random directors. It's a quick hack and the code may not be where you want it, but it works.

Rationale:

- it may be desirable to allow application administrators to disable/enable backends without allowing VCL modification,

- there is presumably no need to disable a backend that is not part of a director,

- health probes should continue when a backend is disabled - it is easy to make a decision to disable/enable a backend based on its health status, when presented in a format like:

director1 backend1 Enabled Healthy
director1 backend2 Disabled Healthy
director1 backend3 Disabled Sick

Attachments

varnish-backend-control-trunk.patch Download (13.8 KB) - added by tgr 8 weeks ago.
varnish-backend-control-2.1.patch Download (13.8 KB) - added by tgr 8 weeks ago.
varnish.director.control.v2.branch-2.1.patch Download (13.9 KB) - added by tgr 5 weeks ago.

Change History

Changed 8 weeks ago by tgr

Changed 8 weeks ago by tgr

Changed 5 weeks ago by phk

  • status changed from new to closed
  • resolution set to invalid

It is a good idea, but it runs into the same naming issue as many other backend related features and therefore I will not take the patch as is.

I have moved this to the PostTwoShoppingList with the other change requests.

I have promised myself to get that naming issue sorted out before 3.0

Changed 5 weeks ago by tgr

You're right. The naming issue is definitely something to ponder on. But meanwhile, if anybody needs this feature bad (like us), there's an interim patch that just disables backends in all copies of a director. Obviously, it's unsupported, etc.

Changed 5 weeks ago by tgr

Note: See TracTickets for help on using tickets.