This commit is contained in:
Jérémy Lecour 2022-10-09 23:14:19 +02:00 committed by Jérémy Lecour
parent ead4695de0
commit 96bd9a1bf9

View file

@ -29,7 +29,6 @@ That's where we begin to mention load-balancing. And when we introduce som logic
### Varnish
Varnish is going to store in cache the result of some requests. Later on, a client who makes the same request might get a result from the cache if it is preset andfresh enough.
With its default configuration, Varnish has a lot of good practice already in place and jst a few adjustments might be necessary to work with most of the situations.
@ -111,6 +110,7 @@ sub vcl_recv {
[…]
}
```
The response is extremely fast, which allow for frequent checks by HAProxy.
In the frontend section of HAProxy, there is an ACL that tells if Varnish is knownto be available.
@ -137,7 +137,7 @@ backend default_backend
Nothing forces us to use VArnish for every request and all web-sites of apps.
We ca either use an ACL :
We can either use an ACL :
```
frontend external
@ -331,6 +331,7 @@ frontend internal
```
In the final backend, we add a header to indicate if HAProxy used an encrypted connection or not.
```
backend example_com
[…]