Re: Preventing Caching in Varnish Based on Backend Response Header

2024-06-11 Thread Guillaume Quintard
May 28, 2024 at 7:07 PM Uday Kumar >> wrote: >> >>> Hello Guillaume, >>> Great to know about this, it should work for us! >>> will check this out >>> >>> *Thanks & Regards,* >>> *Uday Kumar* >>> >>> &

Re: Preventing Caching in Varnish Based on Backend Response Header

2024-05-28 Thread Guillaume Quintard
that work for you? -- Guillaume Quintard On Tue, May 28, 2024 at 4:55 AM Uday Kumar wrote: > Hello all, > > We need to prevent caching in Varnish based on a specific header from the > backend. > > Could you please suggest the best approach to achieve this? > > > *Thank

Re: Varnish suddenly started using much more memory

2024-05-18 Thread Guillaume Quintard
Sorry, I should have been clearer, I meant: where are the varnish packages coming from? Are they from the official repositories, from https://packagecloud.io/varnishcache/ or built from source maybe? If you don't have old metrics (you should really invest some time in something like prometheus,

Re: Varnish suddenly started using much more memory

2024-05-16 Thread Guillaume Quintard
in passes, if they are about the same, look for hit-for-misses, and lastly, look at how long Varnish is trying to cache the average object. I'm pretty one of those changed. That being said, the memory shouldn't explode like that, which packages are you using? -- Guillaume Quintard On Thu, May 16, 2024

Re: Append uniqueid to a http request at varnish

2024-05-01 Thread Guillaume Quintard
have heard it before, but Varnish 5 is ancient, please don't use it and upgrade to something more recent, either 7.5 or to the 6.0 LTS. Let us know how it goes. -- Guillaume Quintard On Tue, Apr 30, 2024 at 1:07 AM Uday Kumar wrote: > hello Guillaume, > > I am trying to install vmod_u

Re: Append uniqueid to a http request at varnish

2024-04-24 Thread Guillaume Quintard
Hi Uday, I feel like we've explored this last year: https://varnish-cache.org/lists/pipermail/varnish-misc/2023-May/027238.html I don't think the answer has changed much: vmod-uuid is your best bet here. Please let me know if I'm missing some requirements. Kind regards, -- Guillaume Quintard

A plea for a more useful and discoverable built-in VCL

2023-11-05 Thread Guillaume Quintard
that. There's also the question of phrasing, so we can have a message that is concise but also gives enough information to debug the behavior. But that's very minor, and the least of our worries here. Thoughts? -- Guillaume Quintard ___ varnish-misc

Re: Cache poisening

2023-10-29 Thread Guillaume Quintard
t very vast topic :-) Ah, and while I'm here: please don't use massively antiquated Varnish versions. 4.1 has been EOL a while ago, it's really not recommended to use. Cheers, -- Guillaume Quintard On Fri, Oct 27, 2023 at 12:54 AM wrote: > Hi, > > > > Is there anythi

Re: Block Unauthorized Requests at Varnish [Code Optimization]

2023-10-14 Thread Guillaume Quintard
, but it should at least get you started, and help understand how templating can make things a tiny be simpler but splitting data from business logic, for example to add more IPs/ACLs or source without edit the VCL manually. Hope that helps. -- Guillaume Quintard On Thu, Oct 12, 2023 at 12:36 PM

Re: Block Unauthorized Requests at Varnish [Code Optimization]

2023-10-12 Thread Guillaume Quintard
eating yourself when writing configuration. -- Guillaume Quintard On Thu, Oct 12, 2023 at 11:46 AM Uday Kumar wrote: > Hi Guillaume, > > I don't think those are redundant checks, from what you are showing, they > are all justified. Sure, there may be a bunch of them, but you have to go

Re: Block Unauthorized Requests at Varnish [Code Optimization]

2023-10-12 Thread Guillaume Quintard
desktop: - IP4 - IP5 - IP6 >From that, you can build the VCL without having to manually write "client.ip" or "(req.url ~ "source=" every time. -- Guillaume Quintard On Thu, Oct 12, 2023 at 10:17 AM Uday Kumar wrote: > Hello everyone, > > We use

Re: Request restriction based on IP and url parameter

2023-10-05 Thread Guillaume Quintard
Hi! It's completely possible, easy and recommended to do that at the varnish level (at least it you want to cache that content) How many ips are you actually allowing, are the actual ips or CIDR blocks? Cheers, It's definitely something I On Thu, Oct 5, 2023, 09:55 Anjali Maurya wrote: > Hi

Re: Caching Modified URLs by Varnish instead of the original requested URL

2023-09-01 Thread Guillaume Quintard
is based on libre2 Correct? I see no way I'm going to misremember that, at all :-D -- Guillaume Quintard On Fri, Sep 1, 2023 at 7:47 AM Geoff Simmons wrote: > Sorry, I get nerdy about this subject and can't help following up. > > I said: > > > - pcre2 regex matching is general

Re: Caching Modified URLs by Varnish instead of the original requested URL

2023-08-31 Thread Guillaume Quintard
ot;.*(q=)(.*?)(\&|$).*", "\1")) { set req.http.hash-url = myset.matched(1) + std.lower(myset.matched(2)) + myset.matched(3) } -- Guillaume Quintard On Thu, Aug 31, 2023 at 1:03 AM Uday Kumar wrote: > Hi Guillaume, > > In the process of modifying the query string in VCL code,

Re: Caching Modified URLs by Varnish instead of the original requested URL

2023-08-22 Thread Guillaume Quintard
l { call sanitize_url; } That should get you going. Hopefully I didn't miss the mark too much here, let me know if I did. -- Guillaume Quintard On Tue, Aug 22, 2023 at 3:45 AM Uday Kumar wrote: > Hello All, > > > For our spring boot application, we are using Varnish Ca

IRC #varnish room is now invite-only?

2023-07-16 Thread Guillaume Quintard
Hi team, Somebody popped up this morning on the discord channel saying that the #varnish room on IRC is invite-only, I just checked and it does seem to be the case. Is that on purpose? Cheers, -- Guillaume Quintard ___ varnish-misc mailing list

Making vmods more approachable.

2023-07-15 Thread Guillaume Quintard
than welcome! -- Guillaume Quintard ___ varnish-misc mailing list varnish-misc@varnish-cache.org https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Re: Conditional requests for cached 404 responses

2023-07-14 Thread Guillaume Quintard
P spec and see no reason for us to actually check the status, but I'm sure somebody closer to the code will pop up to provide some light on the topic. Cheers, -- Guillaume Quintard On Fri, Jul 14, 2023 at 7:30 AM Mark Slater wrote: > Hi, > > I'm running Varnish in front of a back end tha

Re: Varnish for multiple magento sites

2023-07-12 Thread Guillaume Quintard
ou *could* use req.http.host directly, but you don't want to because of the ban-lurker and its performance implications. Hope this helps. -- Guillaume Quintard On Wed, Jul 12, 2023 at 4:15 AM Riccardo Brunetti wrote: > Hello Guillaume. > Thanks for your answer. > The VCL is actu

Re: Varnish for multiple magento sites

2023-07-11 Thread Guillaume Quintard
-invalidation/ Kind regards, -- Guillaume Quintard On Tue, Jul 11, 2023 at 4:14 AM Riccardo Brunetti wrote: > Hello. > I'm new to varnish and I have a question concerning how to manage multiple > sites using the same varnish cache frontend. > > More specifically, I need to setup a

Re: Unexpected Cache-Control Header Transmission in Dual-Server API Setup

2023-06-28 Thread Guillaume Quintard
Not really, I have no tomcat expertise, which is where the issue should be fixed. That being said, if you can't prevent tomcat from adding the header, then you can use the VCL on varnish2 to scrub the headers ("unset req.http.cache-control;"). -- Guillaume Quintard On Wed, Jun 28,

Re: Unexpected Cache-Control Header Transmission in Dual-Server API Setup

2023-06-28 Thread Guillaume Quintard
Hi Uday, That one should be quick: Varnish doesn't add cache-control headers on its own. So, from what I understand it can come from two places: - either the VCL in varnish1 - something in tomcat1 It should be very easy to check with varnishlog's. Essentially, run "varnishlog -H request -q

Re: Purging cached std.fileread() contents

2023-06-15 Thread Guillaume Quintard
Piling on here, there's also one in rust! https://github.com/gquintard/vmod_fileserver On Thu, Jun 15, 2023, 19:44 Geoff Simmons wrote: > On 6/15/23 18:57, Justin Lloyd wrote: > > > > The documentation for std.fileread() says it is cached indefinitely, so > > how do I get Varnish to re-read the

Re: Issue with passing Cache-Control: no-cache header to Tomcat during cache misses

2023-06-15 Thread Guillaume Quintard
Adding to what Dridi said, and just to be clear: the "cleaning" of those well-known headers only occurs when the req object is copied into a beteq, so there's nothing preventing you from stashing the "cache-control" header into "x-cache-control" during vcl_recv, and then copying it back to

Re: Need Assistance in Configuring Varnish to Retain and Ignore Unique Parameter in Request URL while caching

2023-06-05 Thread Guillaume Quintard
already takes that header into account implicitly. Note that the vcl I shared in my last email doesn't have a vcl_hash function because it relies entirely on modifying the url before it is hashed by the built-in vcl. Hope that helps. -- Guillaume Quintard On Mon, Jun 5, 2023 at 4:31 AM Uday

Re: Need Assistance in Configuring Varnish to Retain and Ignore Unique Parameter in Request URL while caching

2023-06-05 Thread Guillaume Quintard
} else { set bereq.url = bereq.url + "?myparam=" + bereq.http.mynewparam; } } It's a bit crude, but it fulfills your requirements. Make sure you test it though. -- Guillaume Quintard On Thu, Jun 1, 2023 at 6:10 AM Uday Kumar wrote: > Thanks for the prompt respons

Re: Need Assistance in Configuring Varnish to Retain and Ignore Unique Parameter in Request URL while caching

2023-05-31 Thread Guillaume Quintard
hen just add/replace the parameter in the querystring with vmod_querystring and...that's about it? Problem is getting the vmods to compile/install which I can help with this week-end. There's black magic that you can do using regex to manipulate querystring, but it's a terrible idea. -- Guillaume Qu

Re: Need Assistance in Configuring Varnish to Retain and Ignore Unique Parameter in Request URL while caching

2023-05-31 Thread Guillaume Quintard
Does it need to be unique? can't we just get away with ""? the crude VCL code would look like: set req.url = regsub(req.url, "\?.*","?yourparam="); i.e. getting rid of the whole query string and just putting yours in

Re: Need Assistance in Configuring Varnish to Retain and Ignore Unique Parameter in Request URL while caching

2023-05-31 Thread Guillaume Quintard
ish check the user request to make sure it's valid, and potentially generate its own parameter. But it all depends on what Tomcat expects from that parameter. -- Guillaume Quintard On Tue, May 30, 2023 at 11:18 PM Uday Kumar wrote: > Hello Guillaume, > > Thank you so much for your he

Re: Need Assistance in Configuring Varnish to Retain and Ignore Unique Parameter in Request URL while caching

2023-05-30 Thread Guillaume Quintard
Hi Uday, Ultimately, you'll probably want to learn and use this vmod: https://github.com/Dridi/libvmod-querystring , but in the meantime, we can use a quick hack. Essentially, we don't need to modify the URL, but we can just alter the cache key computation. By default, the key logic looks like

Re: Mysterious no content result, from an URL with pass action

2023-05-11 Thread Guillaume Quintard
On Tue, May 9, 2023, 22:45 Jakob Bohm wrote: > Expecting uncachable results that vary with time and are only sometimes > 204, Understood, but that one looks like a backend issue. Also, just to be clear, the response is uncatchable because the back looked at the url and deemed the request

Re: Mysterious no content result, from an URL with pass action

2023-05-09 Thread Guillaume Quintard
Hi Jakob, (Sorry i didn't see that email sooner, it was in my spam folder) Looking at the log, I'm not sure what varnish should be loud about :-) 204 is a success code, and more importantly it's generated by the backend, so varnish is happily passing it along. At the http level, everything

Re: Varnish won't start because backend host resolves to too many addresses, but they are all identical IPs

2023-04-19 Thread Guillaume Quintard
ack the time to port vmods on 6.0 (but I'll welcome the help)). Cheers, -- Guillaume Quintard On Wed, Apr 19, 2023 at 9:02 AM Batanun B wrote: > > Shouldn't your DNS entries be clean? ;-) > > Preferably, but I blame Microsoft here  > > The problem went away by itself when I

Re: Varnish won't start because backend host resolves to too many addresses, but they are all identical IPs

2023-04-19 Thread Guillaume Quintard
S has been a fertile ground for vmods :-) -- Guillaume Quintard On Wed, Apr 19, 2023 at 1:49 AM Batanun B wrote: > All of the sudden Varnish fails to start in my development environment, > and gives me the following error message: > > Message from VCC-compiler: > Backend host

Re: Possible to disable/inactivate a backend using VCL?

2023-04-19 Thread Guillaume Quintard
Thank, I think I get it now. How about: backend theBackend none; Here's the relevant documentation: https://varnish-cache.org/docs/trunk/users-guide/vcl-backends.html#the-none-backend It was added in 6.4. Hope that helps. -- Guillaume Quintard On Wed, Apr 19, 2023 at 1:36 AM Batanun B

Re: Strange Broken Pipe error from Varnish health checks

2023-04-18 Thread Guillaume Quintard
Hi George, That pcap only contains HTTP info, it would be super useful to have the TCP packets, (SYN/ACK/FIN) to see who closes the connection on whom. -- Guillaume Quintard On Tue, Apr 18, 2023 at 9:43 AM George wrote: > Hi, > > Attached is the packet capture for the health check &

Re: Strange Broken Pipe error from Varnish health checks

2023-04-17 Thread Guillaume Quintard
That code hasn't moved in a while, so I'd be surprised to see a bug there, but that's always possible. Any chance you could get a tcpdump of a probe request (from connection to disconnection) so we can see what's going on? -- Guillaume Quintard On Mon, Apr 17, 2023 at 9:12 AM George wrote

Re: Strange Broken Pipe error from Varnish health checks

2023-04-17 Thread Guillaume Quintard
, but it's harmless. -- Guillaume Quintard On Mon, Apr 17, 2023 at 7:49 AM George wrote: > Hi, > > Below is the probe "health", I forgot to send it the first time: > probe health { >.url = "/varnish_check"; >.timeout

Re: Strange Broken Pipe error from Varnish health checks

2023-04-17 Thread Guillaume Quintard
Hi George, Just to be sure, how is the probe "health" defined in your VCL? Cheers, -- Guillaume Quintard On Mon, Apr 17, 2023 at 1:23 AM George wrote: > Hi, > > I have a Varnish/nginx cluster running with varnish-7.1.2-1.el7.x86_64 on > CentOS 7. > > The

Re: Possible to disable/inactivate a backend using VCL?

2023-04-14 Thread Guillaume Quintard
if (false) { set req.backend_hint = you_deactivated_backend; } } You could also start varnish with `-p vcc_feature=-err_unref` but I don't recommend it as it'll affect all the unreferenced symbols, even the ones you may care about. Hope that helps -- Guillaume Quintard On Fri, Apr 14, 2023

Re: Varnish cache issu

2023-03-27 Thread Guillaume Quintard
some transactions. If it doesn't, that means the purging requests are never reaching Varnish. If it does, well, we'll have to look at them :-) -- Guillaume Quintard On Mon, Mar 27, 2023 at 7:26 AM Rafael Hakobian wrote: > Hi Guillaume, > > Thanks a lot for a quick response. > >

Re: Varnish cache issu

2023-03-27 Thread Guillaume Quintard
Sending again, keeping the list copied: Hi Rafael, We are going to need some information here. Can you share your VCL? How are you purging? Are you using a Varnish plugin? Cheers, On Mon, Mar 27, 2023, 05:48 Rafael Hakobian wrote: > Hello! > > in a website developed by drupa 9 varnish cache

Re: varnish and mp4 files

2023-02-20 Thread Guillaume Quintard
? Cheers, -- Guillaume Quintard On Mon, Feb 20, 2023 at 7:14 AM Karim Ayari wrote: > Hi! > > I am currently experiencing a memory load problem with video playback. > > here is the infrastructure : > > client --> haproxy --> varnish --> moodle workers (x5) > &

Re: varnish:6.0.11 Docker image crashing on Apple M1 processor

2023-01-26 Thread Guillaume Quintard
Hi, I'm not sure what is going in on here as we do have arm64v8 official images: https://github.com/docker-library/official-images/blob/master/library/varnish Could it just be a permissions issue? -- Guillaume Quintard On Thu, Jan 26, 2023 at 9:32 AM Martynas Jusevičius wrote: > Hi, >

Re: Centralizing varnish logs

2023-01-10 Thread Guillaume Quintard
we have all the information in varnishlog, it's just a matter of formatting it correctly. With that, you have something that's easily filtered and is more natural and comprehensive than what we currently have. It turns out it's been on my mind for a while, and I intend to get on it, but for now I'm

introducing vmod_fileserver

2022-12-26 Thread Guillaume Quintard
idiosyncrasies that aren't "hidden" by rust, and therefore the code might look more familiar. Anyway, that's all for me, let me know what you think! -- Guillaume Quintard ___ varnish-misc mailing list varnish-misc@varnish-cache.org https://w

Re: Hitch fails to start.

2022-12-10 Thread Guillaume Quintard
Hi Jim, Could you share your hitch.conf, as well as the output of "systemctl cat hitch", please? -- Guillaume Quintard On Fri, Dec 9, 2022 at 10:10 AM Jim Olson wrote: > I have been trying unsuccessfully to get hitch to run on a Debian 10 > based VPS. > > ● hit

Re: Varnish-cache as private CDN

2022-11-21 Thread Guillaume Quintard
ot;, but as I've had to answer this question many times over the years, I thought I'd hammer that point home once and for all :-) [1]: https://en.wikipedia.org/wiki/Kazakhstan_man-in-the-middle_attack -- Guillaume Quintard On Mon, Nov 21, 2022 at 7:13 PM InfoVerse Inc. wrote: > Hello list, &g

Re: Need an clarification to use Varnish cache to store docker images.

2022-11-21 Thread Guillaume Quintard
bZR6d) if you want something more synchronous. Cheers, -- Guillaume Quintard On Mon, Nov 21, 2022 at 4:39 AM learner wrote: > Hi Team, > > I hope this is the right place to ask doubts otherwise please redirect me > to the right place. > I would like to understand whether we can

Re: TTL <=0 ?

2022-09-27 Thread Guillaume Quintard
One minor addition to Geoff's excellent answer: you may want to try this VCL: https://docs.varnish-software.com/tutorials/hit-miss-logging/ Specially at the beginning it helps knowing what happened to the request. -- Guillaume Quintard On Tue, Sep 27, 2022 at 6:33 AM Geoff Simmons wrote

Re: Using varnish and vouch-proxy together

2022-07-26 Thread Guillaume Quintard
Hi! You are correct, the request body is, by default, not cached. To correct this, you need to use the cache_req_body() function from the std vmod: https://varnish-cache.org/docs/trunk/reference/vmod_std.html#std-cache-req-body I haven't looked at the vcl yet (or the article), but since you

Re: Feedback needed: vmod_reqwest

2022-07-06 Thread Guillaume Quintard
ndering though if it's better to special-case the AE header handling in the vmod and try to be smart, or just let the user do it in VCL... -- Guillaume Quintard ___ varnish-misc mailing list varnish-misc@varnish-cache.org https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Feedback needed: vmod_reqwest

2022-07-03 Thread Guillaume Quintard
ps://github.com/gquintard/vmod_reqwest/blob/main/Dockerfile> [1] that will build onto the official image without polluting it. Let me know what you think of it! [1]: thanks @thomersch for the help and push on the Docker front -- Guillaume Quintard ___ va

vmods and docker containers got easier

2022-04-28 Thread Guillaume Quintard
two have the big benefit of not requiring any extra dependencies compared to Varnish, meaning the image size only slightly increased. And that's it for now! As usual, feedback is welcome, especially since the features are so new. Until next time! -- Guillaume Quintard

Public alternative to VFP_Push

2022-04-23 Thread Guillaume Quintard
. Cheers, -- Guillaume Quintard ___ varnish-misc mailing list varnish-misc@varnish-cache.org https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Re: Question regarding lifetime of PRIV_TASK pointer

2022-03-24 Thread Guillaume Quintard
be garbage-collected when dropped (yes, I do need to write some docs for it!) -- Guillaume Quintard On Thu, Mar 24, 2022 at 6:46 AM Lee Hambley wrote: > Hi, > > This is exaclty what we were looking for. Thank you sincerely. > > Lee Hambley > http://lee.hambley.name/ >

Re: Question regarding lifetime of PRIV_TASK pointer

2022-03-23 Thread Guillaume Quintard
ter as its second argument besides a VRT_CTX. i.e. if your vmod_priv has a methods->fini pointer, it will be called when the vmod_priv is deleted. Was this what you were after, or did I misunderstand your question? -- Guillaume Quintard On Wed, Mar 23, 2022 at 7:28 AM Lee Hambley wrote:

Re: Confusion about LTS versions. Any comprehensive documentation regarding everything LTS?

2022-03-02 Thread Guillaume Quintard
Hi, Would this help? https://lists.archive.carbon60.com/varnish/misc/49998 Cheers, -- Guillaume Quintard On Wed, Mar 2, 2022 at 8:51 AM Batanun B wrote: > Hi, > > Is there any documentation focused on the LTS versions of Varnish Cache? > And with that I mean things like "

Fwd: Writing vmods in Rust

2022-01-30 Thread Guillaume Quintard
Quintard -- Forwarded message - From: Guillaume Quintard Date: Sun, Dec 5, 2021 at 5:32 PM Subject: Writing vmods in Rust To: varnish-misc@varnish-cache.org Hi everyone, I've been working for a while on a little project that ended up taking quite a chunk of my time, and while

Re: Varnish returning synthetic 500 error even though it has stale content it should serve. But only seems to happen during/after a burst of traffic

2021-12-17 Thread Guillaume Quintard
-- Guillaume Quintard On Fri, Dec 17, 2021 at 5:18 AM Batanun B wrote: > Is there even an official word for this final "cache key"? "Hash" clearly > isn't specific enough. I'm talking about a word that refers to the unique > key that always corresponds to only a

Re: Varnish returning synthetic 500 error even though it has stale content it should serve. But only seems to happen during/after a burst of traffic

2021-12-16 Thread Guillaume Quintard
heir "x-varnish" header, and you can find it this way ("varnishlog -r log.bin -q 'vxid == THE_VXID'") Hope that helps -- Guillaume Quintard On Thu, Dec 16, 2021 at 1:33 PM Batanun B wrote: > > Could be a vary issue > > Ah, I remember hearing about that earlier, a

Re: Varnish returning synthetic 500 error even though it has stale content it should serve. But only seems to happen during/after a burst of traffic

2021-12-16 Thread Guillaume Quintard
log: https://docs.varnish-software.com/tutorials/vsl-query/ -- Guillaume Quintard On Thu, Dec 16, 2021 at 12:15 PM Batanun B wrote: > Hi, > > One of our websites usually has quite a low but steady stream of visitors, > but occationally we get a sudden surge of requests over a very short ti

Writing vmods in Rust

2021-12-05 Thread Guillaume Quintard
, please do ping me, I'd love to hear from you. Cheers! -- Guillaume Quintard ___ varnish-misc mailing list varnish-misc@varnish-cache.org https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Re: A tool to package VMOD easily

2021-11-21 Thread Guillaume Quintard
Sweet! I've been meaning to build something like that for a long time, that's great! On Sun, Nov 21, 2021, 21:22 kokoniimasu wrote: > Hi, All. > > I've been struggling for a long time to deploy VMOD in my environment. > So I created a tool to build a VMOD package easily. > The Package is

Re: Query for authorization username

2021-10-25 Thread Guillaume Quintard
":" ); You should possibly use blob.transcode() anyway. -- Guillaume Quintard On Mon, Oct 25, 2021 at 11:25 AM Justin Lloyd wrote: > In my dev environment, I have a few users configured to use Basic > authorization (configured in the Nginx back

Re: Varnish only resolve the ip on startup

2021-10-05 Thread Guillaume Quintard
of "can you add this vmod too?" questions, which I'm not looking forward to. -- Guillaume Quintard On Tue, Oct 5, 2021 at 6:39 AM Nils Goroll wrote: > On 03.10.21 18:05, Léo wrote: > > I have found some ways to solve the problem > > https://github.com/nigoroll/lib

Re: Varnish only resolve the ip on startup

2021-10-04 Thread Guillaume Quintard
ware, there are vmods for that. For the sake of transparency, I must admit that I do have an issue with my proposal though: there's no timeout option for getaddrinfo, which sucks. -- Guillaume Quintard ___ varnish-misc mailing list varnish-misc@

Re: Varnish only resolve the ip on startup

2021-10-04 Thread Guillaume Quintard
ds. The vast majority of users don't need SRV (yet?), and don't expect the application to optimize DNS calls, but they do complain that giving a hostname to VCL doesn't work. Let's just provide basic, expected functionality out of the box, and leave the fancier features to vmod_goto and vmod_d

Re: Varnish only resolve the ip on startup

2021-10-04 Thread Guillaume Quintard
a "host_string" to vrt_endpoint and fill it if the VCL backend isn't an IP, then, we can add another cp_methods to cache_conn_pool.c to use it? This way IPs are still super fast, and hostnames become actually useful and a bit less confusing? -- Guillaume Quintard On Sun, Oct 3, 2021 at 9

Re: varnishadm exit code 200

2021-10-02 Thread Guillaume Quintard
output from varnishadm. > > We'll just send the 200 to /dev/null then. > > On Sun, Oct 3, 2021 at 12:39 AM Guillaume Quintard > wrote: > > > > 200 means the command passed to varnish, via varnishadm, succeeded. What > makes you think it failed? > > > > O

Re: varnishadm exit code 200

2021-10-02 Thread Guillaume Quintard
200 means the command passed to varnish, via varnishadm, succeeded. What makes you think it failed? On Sat, Oct 2, 2021, 15:24 Martynas Jusevičius wrote: > Actually it does not seem to be the exit code. I tried checking and it > looks like the exit code is 0: > > root@dc17c642d39a:/etc/varnish#

Re: Serve stale content if backend is healthy but "not too healthy"

2021-09-21 Thread Guillaume Quintard
time/resources processing the request, and the object in cache may have expired by the time you realize you need it. Hope that helps, -- Guillaume Quintard ___ varnish-misc mailing list varnish-misc@varnish-cache.org https://www.varnish-cache.org/lists/ma

PSA: varnish-modules packages for arch and alpine

2021-09-04 Thread Guillaume Quintard
-modules [4]: https://src.fedoraproject.org/rpms/varnish-modules [5]: https://wiki.archlinux.org/title/AUR_helpers#Comparison_tables -- Guillaume Quintard ___ varnish-misc mailing list varnish-misc@varnish-cache.org https://www.varnish-cache.org/lists

Re: Varnish and AWS ALBs

2021-08-19 Thread Guillaume Quintard
/master/src/vmod_str.vcc#L42) Side question: would an NLB work? They support proxy-protocol, that would also solve your problem. Cheers, -- Guillaume Quintard On Thu, Aug 19, 2021 at 1:52 PM Carlos Abalde wrote: > Hi, > > No so sure about that. Let's assume the client address is 1.1

Re: Docker images: Alpine and new architecture support

2021-08-15 Thread Guillaume Quintard
Replying to all this time On Fri, Aug 13, 2021, 08:48 Guillaume Quintard wrote: > > On Fri, Aug 13, 2021 at 3:31 AM Geoff Simmons wrote: > >> Can you (or anyone) share some info about how well Varnish performs with >> musl libc? >> > > Good question, and u

Docker images: Alpine and new architecture support

2021-08-05 Thread Guillaume Quintard
sifkit over at https://github.com/docker-library/official-images for their help and unending patience. Cheers, -- Guillaume Quintard ___ varnish-misc mailing list varnish-misc@varnish-cache.org https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Re: Best practice for caching scenario with different backend servers but same content

2021-08-05 Thread Guillaume Quintard
ckend_hint = udo_dir.backend(); udo_dir.set_hash(crypto.hash(sha256, bereq.url));} These have been written without testing, so don't put them straight into production. -- Guillaume Quintard On Thu, Aug 5, 2021 at 3:33 AM Hamidreza Hosseini wrote: > Hi, > 1. > > Is there any way to

Re: Best practice for caching scenario with different backend servers but same content

2021-08-01 Thread Guillaume Quintard
des and the origins (origin shields) to reduce the load on the origins. In that case, the shields would be the one handling the consistent hashing. Hope this helps -- Guillaume Quintard On Sun, Aug 1, 2021 at 4:18 AM Hamidreza Hosseini wrote: > Hi, > I want to use varnish in my scenario

Re: Varnish Dynamic Page Caching & Cache Purging vs Nginx+Redis

2021-07-27 Thread Guillaume Quintard
sh/toolbox/tree/master/vcls/invalidate Hope this helps Cheers, -- Guillaume Quintard On Tue, Jul 27, 2021 at 3:17 AM s s wrote: > Hello all, >I am quite new to Varnish. I have been reading about both Varnish and > Nginx+Redis for page caching, and I am particularly interested i

Re: Varnish HA and MediaWiki HTTP PURGEs

2021-06-14 Thread Guillaume Quintard
on its own to do exactly what you need: replicate a single request for the CMS backend to the whole cluster, and report back so you can act on failures. Cheer, -- Guillaume Quintard On Mon, Jun 14, 2021 at 7:39 AM Justin Lloyd wrote: > Hi all, > > > > I just saw the new Varnish HA

Re: Varnish wouldn't cache HLS fragments

2021-06-14 Thread Guillaume Quintard
/trunk/users-guide/vcl-built-in-code.html#vcl-built-in-code and maybe this can help too: https://info.varnish-software.com/blog/finally-understanding-built-in-vcl -- Guillaume Quintard On Sun, Jun 13, 2021 at 11:16 PM Hamidreza Hosseini wrote: > This is one of hls fragments that I w

Re: Varnish wouldn't cache HLS fragments

2021-06-13 Thread Guillaume Quintard
Hi, Can you share the output of "varnishlog -g request" for one of those requests that should be cached please? Cheers, -- Guillaume Quintard On Sun, Jun 13, 2021, 00:17 Hamidreza Hosseini wrote: > Hi, > I put varnish in front of my http servers to serve Hls streaming,

Re: Use varnish-cache in front of HLS servers for live streaming

2021-06-10 Thread Guillaume Quintard
, in which case, you should remove the request headers corresponding to this (ignore content-encoding though) -- Guillaume Quintard On Thu, Jun 10, 2021 at 3:54 AM Hamidreza Hosseini wrote: > Hi, > I want to use varnish as a cache server in front of my Http live streaming > servers

Re: Understanding 503s

2021-04-23 Thread Guillaume Quintard
Thanks for taking the time to debrief, I'm sure that will be useful in the future! -- Guillaume Quintard On Fri, Apr 23, 2021, 00:04 Maninder Singh wrote: > I finally figured out why this was happening. > > Hope this helps someone. > > We were running php-fpm and ha

Introducing bob

2021-03-31 Thread Guillaume Quintard
'm eager to get more feedback about it. Cheers! -- Guillaume Quintard ___ varnish-misc mailing list varnish-misc@varnish-cache.org https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Varnish 6.6 packages and images

2021-03-22 Thread Guillaume Quintard
was mistagged (6.5 in addition of 6.6) and this is being worked on. Let us know if you have questions! -- Guillaume Quintard ___ varnish-misc mailing list varnish-misc@varnish-cache.org https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Re: Accessing original object in varnish background Fetch

2021-03-03 Thread Guillaume Quintard
the header at every background fetch, so you are more than likely to hit the header length limit if you are not careful. Does that make sense? -- Guillaume Quintard On Wed, Mar 3, 2021 at 8:23 PM Arunabha Saha wrote: > Hello, > Something I am trying to do is update an existing val

Re: Varnish Health check

2021-02-19 Thread Guillaume Quintard
Your backend is returning a 400, most probably because there's no host header in your probe. -- Guillaume Quintard On Fri, Feb 19, 2021 at 8:53 PM Hamidreza Hosseini wrote: > I correct the wrong name (It couldn't resolve from dns server), But now I > have this error: > > 0 Ba

Re: How to adjust priority for both backend healthy

2021-02-18 Thread Guillaume Quintard
I'm formally abandoning this thread and will only focus on the other one -- Guillaume Quintard On Thu, Feb 18, 2021 at 8:21 AM Hamidreza Hosseini wrote: > I read you article and it was great but I didn't find out my answer, I > said that I have 2 layer varnish: disk layer and ram

Re: Varnish Health check

2021-02-18 Thread Guillaume Quintard
please keep the mailing-list in CC for future communications. > Open error 111 (Connection refused) This is a TCP issue, the backend is just not accepting the connection, are you sure the IP:PORT is right? -- Guillaume Quintard On Thu, Feb 18, 2021 at 8:16 AM Hamidreza Hosseini wrote:

Re: How to adjust priority for both backend healthy

2021-02-18 Thread Guillaume Quintard
said, I believe I replied to this question in the other thread. Kind regards, -- Guillaume Quintard On Thu, Feb 18, 2021 at 7:11 AM Hamidreza Hosseini wrote: > How can I probe a backend varnish? for example I have 2 layer varnish disk > layer and ram layer and ram layer want to check the

Re: Varnish Health check

2021-02-18 Thread Guillaume Quintard
://info.varnish-software.com/blog/backends-load-balancing -- Guillaume Quintard On Thu, Feb 18, 2021 at 4:51 AM Hamidreza Hosseini wrote: > Hi, > I want to adjust health check on my varnish backends, But I dont know how > can I know they are healthy or not > because the nodes are up and runn

Re: Problem in varnish-6.0.7

2021-02-14 Thread Guillaume Quintard
re-adding the mailing-list so people know it's fixed for vcl version, try using 4.1, it's the latest one, and there's no major difference with 4.0. -- Guillaume Quintard On Sun, Feb 14, 2021 at 9:16 AM Hamidreza Hosseini wrote: > Thanks for your help, > It was my problem, varnishd

Re: Problem in varnish-6.0.7

2021-02-14 Thread Guillaume Quintard
Hi, That error seems truncated, can you try to run this in your terminal please: ``` varnishd -C -f /etc/varnish/default.vcl ``` This will perform only the VCL->C translation and should provide a more complete message. Cheers, -- Guillaume Quintard On Sun, Feb 14, 2021 at 8:54 AM Hamidr

Re: varnish crush every 30 minutes in high pressure

2021-02-13 Thread Guillaume Quintard
Hi, Go with the LTS unless you need features from 6.5, it will be supported for a longer time. Cheers, On Sat, Feb 13, 2021, 02:45 Hamidreza Hosseini wrote: > Hi guys, > I want to upgrade my varnish but I didnt know what is difference between > varnish 6.0.* and 6.5.* ! > Are varnish 6.0.*

Re: Varnish restart because of ram filled issue

2020-11-18 Thread Guillaume Quintard
/docs/trunk/users-guide/storage-backends.html#transient-storage) but there could be other reasons Kind regards, -- Guillaume Quintard On Wed, Nov 18, 2020 at 4:20 AM Hamidreza Hosseini wrote: > Hi, > I have some varnish ram in production that I'm using it for 1 Year > I had this prob

Varnish Cache 6.0.7

2020-11-12 Thread Guillaume Quintard
lso pushed the Official Docker images here: https://hub.docker.com/_/varnish Note that the underlying Debian image switch from Stretch to Buster as the Stretch image won't be maintained anymore. Kind regards, -- Guillaume Quintard ___ varnish-misc mailing list va

Re: Traffic drop issue

2020-11-02 Thread Guillaume Quintard
, the loadbalancer will probably give you some info there. On top of threas_limited, sess_dropped and sess_queued are probably good counters to check. -- Guillaume Quintard ___ varnish-misc mailing list varnish-misc@varnish-cache.org https://www.varnish

Re: Traffic drop issue

2020-10-27 Thread Guillaume Quintard
Hi, Do you have a load-balancer in front of Varnish? The decrease looks like the connections are being drained Cheers, -- Guillaume Quintard On Mon, Oct 26, 2020 at 8:12 AM Sébastien EISSLER wrote: > Hello, > > We encounter an issue on trafic increase event, here is the timeline:

Varnish 6.5 Docker image

2020-09-29 Thread Guillaume Quintard
in how we build the images (https://github.com/varnish/docker-varnish) or in the documentation ( https://github.com/docker-library/docs/tree/master/varnish). Feedback and pull requests are most welcome. Cheers! -- Guillaume Quintard ___ varnish-misc

  1   2   3   4   5   >