Ticket #1254 (closed enhancement: invalid)

Opened 3 years ago

Last modified 3 years ago

Future Probes

Reported by: nicob Owned by:
Priority: normal Milestone: Varnish 3.0 dev
Component: varnishd Version: trunk
Severity: normal Keywords: probes, failover, load balancing


Hi there,

I'm not sure either this has been requested, or discarded, neither considered, but I've been looking for this feature and couldn't find any information so here it goes. :)

In short, I would like to have the option to set in a probe block the host and port where the request should go.

Since I need to do some checks in the backend for balancing traffic, (a bit more complicated than .threshold, .expected_response or .timeout) I would like to be able to ask a different server/servlet if a backend is ready to accept traffic; and in this way the complex logic can be moved out from varnish and still use its highly performance engine.

Use case example;

Balancing search requests to different search engines while they are being updated using replication. If a search engine node goes down and it needs to build again its index or restore a backup, it can't accept any request until the index is fully restored.

Thanks you, Nicolás

Change History

comment:1 Changed 3 years ago by martin

  • Status changed from new to closed
  • Resolution set to invalid

You could have some cgi script on the server at the url of the probe. This script should then perform all the logic (querying another server if necessary) and report 200 or not back to Varnish, solving the problem.

Regards, Martin Blix Grydeland

Note: See TracTickets for help on using tickets.