🔺

Vercel の料金体系が結構変わるらしく、制限超過のお知らせメールが来た件

2024/04/26に公開

事前に出ていた価格改定情報

2024-04-04 に価格改定の情報が展開される。
この記事を軽く読んだ時点では全体的に安くなるっぽくて良いなと思っていた。

https://vercel.com/blog/improved-infrastructure-pricing

自分のプロジェクトに起きたこと

Vercel からメールが来る

2024-04-26 に「契約プラン(Hobby)の制限を超過している」という旨のメールが Vercel から自分の元に届く。

Vercel - obata15s-projects has used 100% of included free tier

Your site is growing!

Your free team obata15s-projects has used 100% of the included free tier usage for Data Cache Reads (1,000,000 Reads).

Managing your usage

If this usage is expected, congrats on your traffic!
If this usage is not expected, learn how to optimize your project.
Upgrade to Pro

その 6 時間後に「さっき制限超過のメール送ったけど、適用されるのは 6 ヶ月後だからすぐに対応する必要はないよ。混乱を招いてごめんね(意訳)」というメールが届く。

[Correction] Vercel Hobby usage

Earlier today, you received an email about exceeding the free included usage of the Vercel Hobby plan. Immediate action is not required. Your account will not be paused.

Between now and Oct 25, 2024, you can view your usage inside the Vercel dashboard and optimize your application to remain on the Vercel free tier.

The following new metrics are part of our improved infrastructure pricing:

Fast Origin Transfer
Edge Requests
Function Invocations
Data Cache Reads
Data Cache Writes
While your current usage of the new metrics is currently over the included free tier amounts, no projects will be paused for six months to give you time to adjust for these changes (or upgrade plans).

We apologize for the confusion in this email earlier today. If you have any questions, you can reply to this email.

Twitter に書いてみる

言語問わず、ほとんどこの件についてツイートしている人がいなかったので、とりあえず英語で書いてみたが、インプレッション数が普段と全然変わらないので、このメールを受け取っている人は少ないのかも。

https://twitter.com/studio15/status/1783697017996464612

状況を調査してみる

Usage を見ると Data Cache の Read と Write が超過してる。

「こんな制限あったっけ?」と思って Pricing のページを見にいくと、ブログで告知してた価格変更が反映されている(っぽい)

https://vercel.com/pricing

2024-04-23 時点では以前通りの価格表だったが、2024-04-26 くらいに新しいもの更新されたらしい。

自分が制限超過している Data Cache Read / Write は、以前の Hobby プランの制限だと

Data Cache 128 MB / account

と、おそらく使用サイズでの制限だったが、現在は

Data Cache Reads 1M reads /month
Data Cache Writes 200,000 writes /month

となっている。
Manage and optimize usage for Data Cache のページによれば Read unit: One read unit equals 8 KB of data read from the cache Write unit: One write unit equals 8 KB of data written to the cache と、8KB 単位で消費されていくユニットらしい。
つまり月あたり Read は最大 8GB、Write は最大 400MB で、中途半端なサイズのキャッシュがあることを考えるともっと少ない。

Data Cache 以外にも色々変わっているようだが、制限に引っかかってしまっているのはこの 2 つだけ。

SSG 化

おそらく自分のプロダクトでは Next.js App Router の fetch リクエストのキャッシュでほとんど計上されているので、とりあえず Data Cache Read / Write の回数が減る可能性に賭けて、SSR になっていたページを SSG にしてみた。

ロード速度は上がるだろうし、この図によれば fetch までは処理は通らなそうである。

デプロイしてしばらく Usage の画面を眺めてみると Data Cache Read が大幅に削減できていることを確認できた。

公式コメント

これらの対応をした後にツイッターでググっていたら Vercel の VP の Lee Robinson さんが Twitter でレスをしていた。
we're working on improving the design of the pricing page. らしい。

https://twitter.com/leeerob/status/1783656296664973767

公式ドキュメント

Manage and optimize usage のページに注意文が登場。
The Hobby tier remains free. と書かれているのを見つける。

This section details our improved infrastructure pricing. On April 25, 2024, these changes will apply to all new Pro customers. Starting May 25, 2024, current Pro customers will see these changes take effect on their next billing cycle. The Hobby tier remains free.

https://vercel.com/docs/pricing/manage-and-optimize-usage

Manage and optimize usage for Data Cache のページにも注意文が登場。
こちらにも The Hobby tier remains free. の文言がある。

This section details our improved infrastructure pricing. On April 25, 2024, these changes will apply to all new Pro customers. Starting May 25, 2024, current Pro customers will see these changes take effect on their next billing cycle. The Hobby tier remains free. The granular Vercel Data Cache that was introduced with the App Router, is still in public beta and not being charged until generally available.

https://vercel.com/docs/pricing/data-cache

いやしかし、制限超過していたらプランを上げざるを得ないのでは…?

Discussion