Skip to content

Range requests interact badly with the CDN #104

@edsko

Description

@edsko

As reported by hvr

[09:32:35]  <hvr>   well, if you grab the last few bytes of 01-index.tar
[09:32:49]  <hvr>   the request that would take 1 sec directly to hackage
[09:32:54]  <hvr>   via the CDN takes >10 secs
[09:33:02]  <hvr>   until the CDN has the new .tar cached
[09:33:26]  <hvr>   probably the CDN needs to grab the full new .tar
[09:33:42]  <hvr>   s/needs to//
[09:33:57]  <hvr>   and that's 300MiB
[09:34:09]  <hvr>   and since the CDN is distributed
[09:34:21]  <hvr>   it does so multiple times for its nodes
[09:34:44]  <edsko> could we somehow push to the CDN?
[09:34:58]  <edsko> whenever the index is updated, tell the CDN "please update the .tar and .gz, now, please"
[09:35:36]  <hvr>   I'm rather thinking of disabling the CDN for the uncompressed .tar
[09:35:53]  <edsko> hm
[09:36:01]  <edsko> with mirror selection as it currently stands
[09:36:09]  <edsko> that would mean that _all_ requests for updates to the central hackage server
[09:36:11]  <edsko> unless it does not respond
[09:36:17]  <edsko> in which case they will go the mirror
[09:36:36]  <edsko> if I do disable the CDN, then I guess we need to put some some of randomization into mirror selection?
[09:50:11]  <hvr>   and it's not deterministic
[09:50:24]  <hvr>   it's possible to reproduce it with curl if you're lucky
[09:50:28]  <hvr>   (I did)
[09:50:38]  <hvr>   ideally shortly after the tarball got updated

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions