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

    john.spurlock

    04/26/2022, 4:42 PM
    have you tried it yourself against the real service? here's a quick way to repro it using the aws cli:
    aws s3api delete-objects --bucket <bucket> --endpoint-url https://<account-id>.r2.cloudflarestorage.com --delete "Objects=[{Key=a}],Quiet=true" --profile <r2-profile-name>
    You will see the deleted keys returned
  • v

    Vitali

    04/26/2022, 4:51 PM
    I have not tried the aws CLI. I just ran the JS SDK and the tests pass. It's on our backlog to dig in but it's going to be a low-priority thing because there's no egress cost.
  • j

    john.spurlock

    04/26/2022, 4:53 PM
    you probably should run tests with the aws cli, very widely used
  • j

    john.spurlock

    04/26/2022, 4:54 PM
    somewhat related to delete-objects, any plans on having the ability to delete multiple keys with one call from the worker binding interface?
  • v

    Vitali

    04/26/2022, 5:02 PM
    I don't disagree. There's a lot of tests we need to add. Yes, the underlying delete multiple keys plumbing was actually done from the get go. Just have to go through and expose it in the runtime.
  • j

    john.spurlock

    04/26/2022, 5:03 PM
    nice!
  • v

    vasco-santos

    04/26/2022, 5:06 PM
    Did you manage to replicate it? Just remembered I use wrangler v1 (always need to manually add worker binding on publish), could it be a wrangler v1 issue? I would not expect it to be related, but I am clueless on what is happening
  • v

    Vitali

    04/26/2022, 5:10 PM
    I have not. I've been in a meeting for the past hour doing sprint planning. Getting back to this now but the highest order bit for today is to land the perf improvements.
  • j

    john.spurlock

    04/26/2022, 5:15 PM
    noticed that
    AbortMultipartUpload
    throws 500 when
    uploadId
    has already been aborted.
  • v

    vasco-santos

    04/26/2022, 5:16 PM
    no problem, thanks and let me know once you can have a look
  • a

    albert

    04/26/2022, 5:23 PM
    Just bumping this. SHA256 checksumming would allow me to avoid Unbound Workers. And even that might not even work since uploading can take more than 30 seconds.
  • v

    Vitali

    04/26/2022, 5:24 PM
    Unbound Workers are not limited to 30s of wall clock time (i.e. how long the upload takes). It's a common mistake to make. Unbound Workers are limited by 30s of CPU time
  • v

    Vitali

    04/26/2022, 5:24 PM
    Let's say hashing is 100MB/s, that's ~3 GB you can hash
  • i

    Isaac McFadyen | YYZ01

    04/26/2022, 5:24 PM
    ^ this, while they "have a higher chance of being evicted" after 30s it's likely they won't be.
  • a

    albert

    04/26/2022, 5:26 PM
    Ooh, gotcha, I been using Workers for a year and always understood it as 30 seconds of duration. This should be clearer haha.
  • v

    Vitali

    04/26/2022, 5:27 PM
    https://developers.cloudflare.com/workers/platform/limits/#worker-limits
  • v

    Vitali

    04/26/2022, 5:27 PM
    The start about *No limit is about wall clock time
  • v

    Vitali

    04/26/2022, 5:28 PM
    I actually personally don't understand the "after 30s there is a higher change of eviction" note. I don't recall seeing anything around wall clock time & eviction in the runtime but it's easy to overlook. I'm getting some clarification internally
  • v

    Vitali

    04/26/2022, 5:30 PM
    I'm pretty sure there's definitely a hard 30s CPU limit separate from the wall clock time/eviction note..
  • v

    Vitali

    04/26/2022, 5:31 PM
    Ah, ok. So the 30s wall clock is around when we do upgrades of the runtime service
  • v

    Vitali

    04/26/2022, 5:31 PM
    We give a 30s grace period
  • v

    Vitali

    04/26/2022, 5:32 PM
    So technically that's the guarantee but realistically you'll only see that limitation infrequently.
  • a

    albert

    04/26/2022, 5:57 PM
    Interesting. Though that feels pretty low. Are there any technical difficulties preventing you from just giving like an hour long grace period?
  • v

    Vitali

    04/26/2022, 6:02 PM
    Memory. No way it'll be an hour. But we don't do releases frequently
  • v

    Vitali

    04/26/2022, 6:02 PM
    If you're noticing this more than the general noise of errors I would be surprised.
  • i

    Isaac McFadyen | YYZ01

    04/26/2022, 6:03 PM
    Can you clarify a bit? Just interested to know what the issue around memory is.
  • i

    Isaac McFadyen | YYZ01

    04/26/2022, 6:03 PM
    Are you trying to keep 2 V8 runtime versions in memory and that's why you need to terminate the first within 30s to prevent OOM?
  • i

    Isaac McFadyen | YYZ01

    04/26/2022, 6:04 PM
    Oh, neat.
  • v

    Vitali

    04/26/2022, 6:04 PM
    That's how transparent cutovers work for all CF infrastructure
  • v

    Vitali

    04/26/2022, 6:04 PM
    New requests hit the new code while old requests are given a grace period to terminate
1...596061...1050Latest