an
an
CDCloudflare Developers
Created by an on 9/24/2024 in #pages-help
"Unknown internal error occurred." if binding R2 buckets to pages
ah got it, I think we should have another error here instead of that ambiguous one
4 replies
CDCloudflare Developers
Created by meakr on 6/14/2024 in #workers-discussions
👋🏻 Hey all. I am a PM on the Workers
I'm running rendering image such as librsvg/resvg for rendering png, but it is not wasm available/ consume than the limitation of worker (128mb but requires ~200mb), would love to use all-in-one cloudflare stack, not an additional server that requires roundtrip
41 replies
CDCloudflare Developers
Created by an on 6/15/2024 in #workers-help
Worker exceeded memory limit.
Nevermind it's resvg issue, but debugging experience with cloudflare worker seems to be hard
4 replies
CDCloudflare Developers
Created by an on 6/15/2024 in #workers-help
Worker exceeded memory limit.
It sounds like this tab doesn't work. I checked it on activity monitor and it's more likely reasonable
4 replies
CDCloudflare Developers
Created by an on 6/15/2024 in #workers-help
Worker exceeded memory limit.
No description
4 replies
CDCloudflare Developers
Created by an on 4/30/2024 in #workers-help
Measurement on cpu time
just tested and it seem like pretty the same as before, I think normal fetch would be fine, will update soon
10 replies
CDCloudflare Developers
Created by an on 4/30/2024 in #workers-help
Measurement on cpu time
@Chaika can https://developers.cloudflare.com/workers/runtime-apis/rpc/ work for this, like measure rpc instead
10 replies
CDCloudflare Developers
Created by an on 4/30/2024 in #workers-help
Measurement on cpu time
ah I'm using it to observability and building dashboard to see numbers. it's so bad when we can't take that number but I understand your point, thank for answer, hope we can measure it one day
10 replies
CDCloudflare Developers
Created by an on 4/30/2024 in #workers-help
Measurement on cpu time
best you can do right now for exact timing of specific functions
@Chaika what does specific functions mean, does it mean worker or a function like abc() if abc(), is there any doc for it?
10 replies
CDCloudflare Developers
Created by an on 4/5/2024 in #pages-help
No idea why e2e response time is too high than in my log
I think that's enough for my case, thanks for your support 🙇
21 replies
CDCloudflare Developers
Created by an on 4/5/2024 in #pages-help
No idea why e2e response time is too high than in my log
it's quite fast though, even other worker running resvg still fast but I don't think it's from worker side, will check from my setting or something else, lib version, worker size etc
21 replies
CDCloudflare Developers
Created by an on 4/5/2024 in #pages-help
No idea why e2e response time is too high than in my log
@Chaika forgot to mention
21 replies
CDCloudflare Developers
Created by an on 4/5/2024 in #pages-help
No idea why e2e response time is too high than in my log
Ah sorry I think you're misundestand of name app.fetch app.fetch is point to to hono.fetch so basically it call to my route. The route is not just fetch request, it call to db, generate svg, convert svg to png, return image, that is. I don't think I have any hidden magic here. And the result is about 200kb, I don't think content/body would be a problem here
would need more explanation what you're doing with resvg exactly/what is app.fetch doing.
resvg is a lib convert svg to png and I'm using for exactly that job. Let me explain again my route so you have clearly overview of what is it doing - call to db (use cache if possible) - transform rows from db to a svg - transform svg to png through resvg
If it's wasm that was slowing it down, it'd make sense as timers only move when network, i/o. https://developers.cloudflare.com/workers/runtime-apis/performance/, so the time you'd see with your timing would be purely just the remote fetch time
This is new to me, does that mean wasm/resvg is not an I/O execution? As I checked via tracing, both resvg and satori(svg generate) always 0. If so, that's make sense, could be resvg's time can't measure through Date.now().
21 replies