You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just checked my emails and received a warning from Vercel about excessive CPU usage of middleware, both on my hobby account and a Pro Team account. For middleware, there is a limit of 50ms CPU execution time per request, on average
I merged the release commit for 0.8.0 on Jul 7, 2022 at 6:13PM (UTC), with also redeployed the e2e app with the new version.
Strange though is, that the avg. CPU time per request doesn't execeed 50ms on any day + a project on the Pro account that uses middleware doesn't use the new release and still runs on 0.6.0 with Beta middleware. Also both alert arrived around the same time, (Fr. 8 Juli, 3:08PM and 3:10PM (UTC).
Hobby CPU utilization
Pro Team CPU utilization
I got in touch with Vercel support and asked what I should do. I'll update this issue once I get a reply
The text was updated successfully, but these errors were encountered:
Thank you for proactively looking at this! In your troubleshooting efforts, the function logs ... for the current production deployment may shed some light on what requests are resulting in high usage times.
However, function logs don't give insight into CPU utilization (there seems no good telemetry story for middleware yet, see vercel/next.js#34420).
I did some improvements to decrease CPU utilization in #47, somewhat into the blue, and by educated guessing. I also provided a telemetry wrapper middleware to measure execution time by logging to the console
I just hammered a new deployment with autocannon to observe effects on average CPU utilization in Vercel Dashboard. The changes to seem to have a significant effect:
Just checked my emails and received a warning from Vercel about excessive CPU usage of middleware, both on my hobby account and a Pro Team account. For middleware, there is a limit of 50ms CPU execution time per request, on average
I merged the release commit for
0.8.0
on Jul 7, 2022 at 6:13PM (UTC), with also redeployed the e2e app with the new version.Strange though is, that the avg. CPU time per request doesn't execeed 50ms on any day + a project on the Pro account that uses middleware doesn't use the new release and still runs on
0.6.0
with Beta middleware. Also both alert arrived around the same time, (Fr. 8 Juli, 3:08PM and 3:10PM (UTC).Hobby CPU utilization
Pro Team CPU utilization
I got in touch with Vercel support and asked what I should do. I'll update this issue once I get a reply
The text was updated successfully, but these errors were encountered: