You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been noticing it taking quite a bit of time for new releases to propogate to the index For example we just released v14.7.0 and https://nodejs.org/download/release/latest-v14.x/ is still showing v14.6.0
My gut is this is related to our CDN cache, perhaps we should manually flush it on release?
It shows 14.7.0 now, but I'm 7h removed from this original comment so it'd be interesting to know how long that took if anyone happened to notice.
There should be a maximum of a 5 minute delay for pushing a full CDN purge request to CF after someone promotes a build. I've now got logs so at least I can trace it! Here's the most recent:
The most interesting one is ~7h20m ago from when I'm writing this, there's two reasons given for a CDN purge, one is from builds being promoted (presumably the manual promotion) and the other from the signed checksums being pushed by the releaser, resha_release, so we know it's manual. Then following that we see a bunch more as the website got rebuilt (likely triggered by noticing a new version and then triggered by people pushing blog updates and ... more updates?).
The timestamp on the signed SHASUMS is 18:40, so there's a full 5 minute delay at play here (our crontab runs on 5 minute intervals, this one hit it at the start of a cycle so had to wait the full 5 minutes, on average it'd be 2.5m delay obviously).
That log entry is done immediately prior to a curl to CloudFlare. We have no indication of what the response to that might be. I've just done one manually using the same procedure and got a success:true, so I'm going to assume it's still working in general.
@jbergstroem we're doing a {"purge_everything":true} to https://api.cloudflare.com/client/v4/zones/${zone_id}/purge_cache for this. There's no way that might be interpreted as anything other than everything even with your recent tweaks to our cache rules is there?
It should be pretty immediate, I think the call goes out to invalidate all of the edges when we send it, at least that's how I've seen it work. The 5 minute delay is on our end for dedupe and security reasons.
We've been discussing more selective flushes for a while now and there's enough awkwardness involved that we've yet to pull it off. But the timing would still be the same even when we get that implemented.
This issue is stale because it has been open many days with no activity. It will be closed soon unless the stale label is removed or a comment is made.
Activity
rvagg commentedon Jul 30, 2020
It shows 14.7.0 now, but I'm 7h removed from this original comment so it'd be interesting to know how long that took if anyone happened to notice.
There should be a maximum of a 5 minute delay for pushing a full CDN purge request to CF after someone promotes a build. I've now got logs so at least I can trace it! Here's the most recent:
The most interesting one is ~7h20m ago from when I'm writing this, there's two reasons given for a CDN purge, one is from builds being promoted (presumably the manual promotion) and the other from the signed checksums being pushed by the releaser,
resha_release, so we know it's manual. Then following that we see a bunch more as the website got rebuilt (likely triggered by noticing a new version and then triggered by people pushing blog updates and ... more updates?).The timestamp on the signed SHASUMS is
18:40, so there's a full 5 minute delay at play here (our crontab runs on 5 minute intervals, this one hit it at the start of a cycle so had to wait the full 5 minutes, on average it'd be 2.5m delay obviously).That log entry is done immediately prior to a
curlto CloudFlare. We have no indication of what the response to that might be. I've just done one manually using the same procedure and got asuccess:true, so I'm going to assume it's still working in general.@jbergstroem we're doing a
{"purge_everything":true}tohttps://api.cloudflare.com/client/v4/zones/${zone_id}/purge_cachefor this. There's no way that might be interpreted as anything other than everything even with your recent tweaks to our cache rules is there?jbergstroem commentedon Jul 30, 2020
Nope, this will zap everything.
MylesBorins commentedon Jul 30, 2020
of course y'all are already doing it 😊.
Does cloudflare have a similar "immediate" cache flush option as fastly does?
I could imagine that we could make things a bit better by doing a more aggressive flush on particular routes... Specifically:
rvagg commentedon Jul 31, 2020
It should be pretty immediate, I think the call goes out to invalidate all of the edges when we send it, at least that's how I've seen it work. The 5 minute delay is on our end for dedupe and security reasons.
We've been discussing more selective flushes for a while now and there's enough awkwardness involved that we've yet to pull it off. But the timing would still be the same even when we get that implemented.
MylesBorins commentedon Jul 31, 2020
Honestly 5 minutes is not the end of the world.
We should just document it.
jbergstroem commentedon Jul 31, 2020
FWIW, this is part reason I want to move all downloads to a subdomain: have better control of caching (#2375).
mhdawson commentedon Sep 2, 2020
I agree with @MylesBorins that 5 mins is not all that long
github-actions commentedon Jun 30, 2021
This issue is stale because it has been open many days with no activity. It will be closed soon unless the stale label is removed or a comment is made.