https://discord.cloudflare.com logo
Join Discord
Powered by
# durable-objects
  • h

    HardAtWork

    12/15/2022, 9:56 PM
    So Edge Request arrives in CPH, which maps to ARN as the nearest DO colo. ARN has a DO ID assigned, you use that to create a stub, and you are good to go
  • h

    HardAtWork

    12/15/2022, 9:56 PM
    I believe it was
    sandbox allow-popups;
    that fixed it
  • j

    Jacob Wright

    12/15/2022, 9:59 PM
    A question burning in my soul about DOs, what's up with the splits? Does Cloudflare have a config that randomly assigns DOs to one of X given PoPs by percentage? Or is it by request IP to try and get the request closer?
  • h

    HardAtWork

    12/15/2022, 10:00 PM
    Probably better to ask brett about that. I'm a community member just like you, so I am not(yet) allowed a peek behind the curtain.
  • j

    Jacob Wright

    12/15/2022, 10:00 PM
    šŸ˜„
  • h

    HardAtWork

    12/15/2022, 10:00 PM
    Though I would assume it is based on the edge colo, rather than the location of the user
  • j

    Jacob Wright

    12/15/2022, 10:01 PM
    Ahh, workers don't run in every colo?
  • h

    HardAtWork

    12/15/2022, 10:02 PM
    They should? Other than China, unless you have an ICP license.
  • j

    Jacob Wright

    12/15/2022, 10:04 PM
    On where.durableobjects.live, it has a colo and a split of where it sends requests to DOs. Or is Accra and Adelaide something other than a colo?
  • j

    Jacob Wright

    12/15/2022, 10:04 PM
    If it were based on colo, then each colo would send 100% of their requests to a corresponding DO colo.
  • h

    HardAtWork

    12/15/2022, 10:05 PM
    No, I meant that I assume the sorting is based on the edge colo. It may still split between nearby DO-ready colos.
  • j

    Jacob Wright

    12/15/2022, 10:05 PM
    You know what's interesting, is workers in a colo that supports DOs aren't always sending requests that hit their colo to internal. E.g. Amsterdam sends 40% of its requests to other DO colos.
  • h

    HardAtWork

    12/15/2022, 10:06 PM
    Also, I'm investigating an issue with the aggregator, as it seems to be very far behind. Currently, the data shown may be out of date by up to a few days. I should have a fix ready by tomorrow.
  • c

    Chaika

    12/15/2022, 10:07 PM
    Is there plans to show any sort of graphs for them? It would be really interesting to see them change over time. I assume for some of those like Amsterdam, it could have been a maintenance event that sent all new DOs to diff colo
  • h

    HardAtWork

    12/15/2022, 10:11 PM
    Would you mind making an issue for that? I’m already thinking about adding access to historical data(maybe via the SQL API), but to be honest, I’m not always the best with visualizations, and what works best there.
  • c

    Chaika

    12/15/2022, 10:15 PM
    hmm yea, not sure what they would look like either lol. Maybe just the mini-graphs like they have in the dashboard next to each DO colo name. They would probably suck up your API limit though unless they were cached themselves. The amount of data you have is both a lot, and not much. If the last hour metric is right (2286), then you only create 6 DOs per source colo per hour, or 156 per day (assuming there is 350 CF Colos). Maintenance events or just minor interruptions could mess with the data a fair bit, even if it is aggregated the last over 93 days. Kind of interesting to think about
  • h

    HardAtWork

    12/15/2022, 10:17 PM
    The 2k last hour metric is borked. The Cron trigger is erroring, and I think the health checks are failing too. I need to dig into it to figure out what’s going wrong. I’ll do it tomorrow when I have time.(Last hour metric should be ~20k)
  • b

    brett

    12/15/2022, 10:17 PM
    They're shuffled within a small latency bound to avoid overload. Generalized/dynamic relocation will help with this in the future.
  • b

    brett

    12/15/2022, 10:18 PM
    e.g. (for now) We don't want 100% of objects created in IAD to end up in one colo forever
  • h

    HardAtWork

    12/15/2022, 10:18 PM
    Just to remember, is SFO-DOG publicly routable?
  • b

    brett

    12/15/2022, 10:19 PM
    I don't think so, what's the context?
  • h

    HardAtWork

    12/15/2022, 10:20 PM
    Just the fact that it shows up on WDL, but I’ve never been able to hit it. I’ve always hit SJC and LAX in California
  • b

    brett

    12/15/2022, 10:21 PM
    Oh, showing up from the client side? That must be CFers hitting it.
  • u

    Unsmart | Tech debt

    12/15/2022, 10:21 PM
    SFO-DOG and SFO-TEST both šŸ˜› those are the only 2 I think that arent normal colos you can hit that do trigger workers through health checks
  • b

    brett

    12/15/2022, 10:21 PM
    I thought you meant as serving DOs, which is possible, but shouldn't happen for your namespace.
  • h

    HardAtWork

    12/15/2022, 10:21 PM
    Probably the Health Checks?
  • b

    brett

    12/15/2022, 10:21 PM
    ?
  • h

    HardAtWork

    12/15/2022, 10:22 PM
    I use Health Checks to ping from every colo once a minute. It seems to be broken rn, but I guess it is able to run from SFO-DOG?
  • b

    brett

    12/15/2022, 10:23 PM
    I don't think I follow, what's broken? I'm just saying external people shouldn't be able to route to our internal colos, but CF employees do, and so that's why WDL probably has records of where those colos would make objects.
  • h

    HardAtWork

    12/15/2022, 10:24 PM
    The thing that is broken is something I need to fix, not a CF issue(as far as I’m aware). And SFO-DOG seemed to appear as soon as I turned on Health Checks, so I assumed the ā€œAll Datacentersā€ option covered that too.
1...458459460...567Latest