V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
如果你希望学习 CDN 相关知识,那么建议你可以遍历以下软件的说明文档。
NGINX
cURL
aveline
V2EX  ›  CDN

Fastly 对大文件分发的改善

  •  
  •   aveline · 2014-10-29 05:04:32 +08:00 · 3095 次点击
    这是一个创建于 3709 天前的主题,其中的信息可能已经有所发展或是发生改变。
    4 条回复    2014-10-29 05:43:15 +08:00
    aveline
        1
    aveline  
    OP
       2014-10-29 05:08:55 +08:00
    仔细看了下,3.x 里文档是这么写的:

    Deliver the object to the client directly without fetching the whole object into varnish. If this request is pass'ed it will not be stored in memory. As of Varnish Cache 3.0 the object will marked as busy as it is delivered so only client can access the object.

    而 4.x 是:

    Deliver the object to the client directly without fetching the whole object into varnish. If this request is pass'ed it will not be stored in memory.
    Livid
        2
    Livid  
    MOD
       2014-10-29 05:29:15 +08:00
    没有想到之前居然是这样的:

    To illustrate this, let’s look at a download example. If a 25MB application is being served from an origin over a connection that’s giving each client ~375kb/s, the download will take about 70 seconds. If that application was cached on Fastly without the Stream-on-Miss feature, then the first client to get a miss would have to wait 70 seconds while Fastly fetched it from the origin, and only then would they start downloading from our edge server.
    aveline
        3
    aveline  
    OP
       2014-10-29 05:32:59 +08:00 via iPhone
    @Livid 我也没有想到,另外 100M 的限制也是有点囧,可能因为早期 Varnish 只缓存到内存?
    sNullp
        4
    sNullp  
       2014-10-29 05:43:15 +08:00
    我之前测试各种反代程序就是为了观察这种情况:
    /t/141198
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1085 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 23:00 · PVG 07:00 · LAX 15:00 · JFK 18:00
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.