Closed staiyeba closed 6 years ago
Sorry for not getting to you sooner. What you have described is correct.
We could implement a separate fixup to deal with directors. Roughly it should:
For point 1 you could have multiple directors. This will affect 3 and 4.
What do you think?
Hi, I'm sorry for the late feedback, I have been pondering about it and discussing it with others and we think it sounds really neat! I'm wondering if you are planning to implement it? Because it would be awesome ! Thanx in advance! :)
Timed-out.
I'm trying to achieve directors and backends migration to this script.
Here's what I understood about backends and directors in vcl 3 to 4:
In Varnish 3, a director was a group of backends. Varnish chose to serve data from one of the several backends. So several backends are declared. Then a director is declared to do load balancing "logically" from the list of backends.
In varnish 4, the whole concept of directors has been moved to VMOD (Varnish Modules). So you can define several backends and group them together in a director.
Below are examples:
What has changed?
The probe and the backend definition is the same. No change there.
Import the directors in use:: import saintmode; import directors;
The director definition is quite different.
This in 3:
Needs to be replaced with this in 4:
Assuming this is a complete example, is there a way we can achieve this in your varnish3to4 script or your suggestions for a workaround for this? :)