https://discord.cloudflare.com logo
Join Discord
Powered by
# r2
  • e

    Epailes

    03/18/2022, 10:13 PM
    Ah that's good to hear, thanks for linking that
  • e

    Epailes

    03/18/2022, 10:24 PM
    As Isaac mentioned I was thinking about memory so it's not relevant to R2, but if it's workers in general see: https://developers.cloudflare.com/workers/platform/limits/#memory If you want to chat about it more it's probably worth moving to the #779390076219686943 channel
  • i

    Isaac McFadyen | YYZ01

    03/18/2022, 10:26 PM
    Yeah that is accurate about the memory. It's not specific to R2 but Workers can share memory if they're called from the same DC and at the same time.
  • t

    theGagne

    03/19/2022, 1:07 PM
    It would be super legit if there was a TUS upload endpoint for R2.
  • v

    Vitali

    03/20/2022, 4:05 PM
    The 500 MB limit for request body is documented here: https://developers.cloudflare.com/workers/platform/limits/#request-limits The 128 MB per Worker instance is documented https://developers.cloudflare.com/workers/platform/limits/#memory but it's listed in many places throughout. The architecture about isolates and how each one processes requests is described at https://developers.cloudflare.com/workers/learning/how-workers-works/ Workers can definitely process requests that are > 128 MB of body. The thing to watch out for is that your instantaneous memory usage allocated per request is kept bounded so that your isolate doesn't exceed the 128 MB limit if you handle a lot of requests simultaneously. The memory we'll see a worker is using is going to be approximately
    # of outstanding requests for that worker * max memory allocated per request
    .
  • a

    andrew

    03/24/2022, 2:30 PM
    very curious to find out what kind of bandwidth can be achieved pulling data from multiple R2 objects simultaneously into a non-worker destination
  • v

    Vitali

    03/25/2022, 5:00 PM
    What's the speed you get from speed.cloudflare.com?
  • m

    MyZeD

    03/25/2022, 7:15 PM
    749Mbps / 31.1Mbps / 20.4ms / 3.71ms
  • m

    MyZeD

    03/25/2022, 7:17 PM
    Why i dont get the next destination?
  • i

    Isaac McFadyen | YYZ01

    03/25/2022, 7:18 PM
    Depends on your ISP and how they peer with Cloudflare. Some ISPs have strange peering... I get routed to a colo 800km further than my closest one 🤷‍♂️
  • m

    MyZeD

    03/25/2022, 7:18 PM
    wtf
  • v

    Vitali

    03/25/2022, 9:52 PM
    Theoretically pulling 1 file should be able to saturate your available link to Cloudflare but we haven't profiled it yet so 🤷‍♂️ . Pulling multiple files concurrently should be able to saturate that. This assumes large files (for some definition of large) where the latency of the request is insignificant. For small files (for some definition of small) you'll need to have a LOT of concurrent requests going. It's hard to predict arbitrary performance questions. My best advice is to wait till you have access/Open Beta & try it out? Happy to discuss specific scenarios.
  • b

    Ben Hong

    03/25/2022, 10:36 PM
    Will R2 support moving/renaming files and folders? Right now in S3, you have to copy and delete each file.
  • i

    Isaac McFadyen | YYZ01

    03/25/2022, 11:38 PM
    You're correct about S3 but they abstract it away in the UI in case you weren't aware, there's a Rename Object button that does that behind the scenes.
  • b

    Ben Hong

    03/26/2022, 12:00 AM
    Sorry, I should have been more clear. I was thinking more about cost, so on s3, renaming a big folder means sending a copy request for each file in it (iirc) which could get expensive. Will R2 be like this as well?
  • a

    andrew

    03/26/2022, 4:05 AM
    i guess how expensive that will be will depend upon what the per request pricing ends up being
  • a

    andrew

    03/26/2022, 4:05 AM
    > R2 will zero-rate infrequent storage operations under a threshold — currently planned to be in the single digit requests per second range. Above this range, R2 will charge significantly less per-operation than the major providers.
  • a

    andrew

    03/26/2022, 4:05 AM
    https://blog.cloudflare.com/introducing-r2-object-storage/
  • a

    andrew

    03/26/2022, 4:06 AM
    if the per-operation price is sufficiently low, then "renaming" a folder might be negligible. i don't think any per-operation prices have come out yet, correct?
  • b

    Ben Hong

    03/26/2022, 5:13 AM
    I guess we'll have to wait and see. It would be nice if we could move/rename an entire folder with one request though.
  • a

    andrew

    03/26/2022, 3:05 PM
    yeah it's just not something that goes well with the way object storage is typically architected. objects (and even portions of objects) along with their names are usually very heavily distributed via sharding
  • a

    andrew

    03/26/2022, 3:09 PM
    which is great for scalability but things like "fast atomic renames of an entire set of objects" isn't really practical without introducing complexity that likely would compromise said scalability some kind of sharding-aware rename operation is probably feasible but i'm not sure it'd be worth it
  • v

    Vitali

    03/28/2022, 2:56 PM
    Copy + delete should work and (unless I'm mistaken) since delete is 0-rated it's just the cost of 1 write. However, that's not actually a strongly consistent operation. An atomic move of an object is easy for us to implement, we just haven't yet. It's already on the backlog. Moves of folders is more challenging. Nothing we can do that's as trivial as a folder "move". We could offer a list-like API to do the rename of objects within a folder. That would be billed at write rates but operate with list-like performance (i.e. 1k objects per request and you get back a continuation token).
  • v

    Vitali

    03/28/2022, 3:20 PM
    @User would that list-like behavior work for you?
  • b

    Ben Hong

    03/28/2022, 7:17 PM
    That sounds great! So no avoiding paying the write rate for each object?
  • i

    itsmatteomanf

    03/29/2022, 8:31 AM
    From what I'm reading it looks to me it's still one write per object...
  • b

    Ben Hong

    03/29/2022, 8:32 AM
    Alright, makes sense. Pretty darn cheap anyway haha
  • v

    Vitali

    03/29/2022, 5:27 PM
    I don't know what the billing on a hypothetical API would be.
  • l

    lpellegr

    03/29/2022, 10:06 PM
    Is R2 close to public beta?
  • l

    lmtr0

    03/29/2022, 10:08 PM
    thats one of the questions on the qna
1...121314...1050Latest