lyc8503 / UptimeFlare

✔ Free and serverless uptime monitoring / status page on Cloudflare Workers, with Geo-specific checks
Apache License 2.0
1.81k stars 172 forks source link

Reached 50% of the daily usage limit for Cloudflare Workers KV operations #63

Closed Youngv closed 1 month ago

Youngv commented 1 month ago

image Recently, I have received numerous emails from Cloudflare notifying me that I have reached 50% of the daily usage limit for Cloudflare Workers KV operations. I only have one project utilizing KV; is this normal?

lyc8503 commented 1 month ago

Yes, this is normal. This project uses 500+ KV writes per day, while the free tier for Cloudflare workers is 1000 KV Write/day. You can safely ignore this warning, or you can delete these warning emails using Gmail keyword filters.

Maybe in a future version we will turn to Cloudflare D2 for database, which has a much higher free tier.

ghwnode03 commented 1 month ago

请问,目前有没有办法对于KV的操作数,降低写入频率


Is there any way to reduce the write frequency for the number of KV operations?

lyc8503 commented 1 month ago

If you change the value of kvWriteCooldownMinutes in the config file to a larger value, you should be able to reduce the write counts, and at the same time, the Last updated time displayed on the front-end page may be updated more slowly.

In the absence of an incident, the amount of writes used in a day should be equal to 60 * 24 / kvWriteCooldownMinutes. An incident may result in additional writes.

lyc8503 commented 1 month ago

kvWriteCooldownMinutes default 3 minutes should already be a long time, and I personally wouldn't recommend modifying it to a longer interval. If you are really concerned about write usage, you should also choose a value of less than 10 minutes.