Brewless Brewless Docs

Running your application

Avoidable wake-ups

What bots and scanners cost in container and database time when they wake your environment, and how Brewless counts it from bunny.net's log.

On this page

A serverless container sleeps when nobody asks it anything, and is billed only for the seconds it runs. A crawler or a scanner that comes by while it sleeps starts it again, and the container then runs for at least a quarter of an hour. Brewless counts how much of your container time went to such wake-ups, and what it cost.

It shows on the Usage tab of an environment's overview, under What reaches the container, and on the Costs page, beside the bill.

Who asked

Every request that reached the web container — what the edge did not answer itself, read from bunny.net's request log — is put in one of four kinds, by the name of its client and its path:

Kind What it is Counted as
Known bot A crawler, AI assistant, link preview, monitor or SEO tool on Brewless's list, with its group (search engines, AI training, AI assistants…), and Brewless's own warm-up after a release measured
Scanner A path only scanners ask for: one of the scanner addresses that still reached the container, a rest_route query string, or a PHP file other than index.php measured
Unknown bot No user agent, a scripting tool such as curl or python-requests, a headless browser, or a name with "bot", "crawler" or "spider" that the list does not know estimated
Human Everything else estimated

A client that names itself in another way, such as a payment provider calling your webhook, stays with the humans: Brewless never counts an unknown name as avoidable. A known bot is known by its name; bunny.net Shield checks the bots it lets in, but its log does not say whether it did.

Once a day Brewless counts the day before, for every environment behind bunny.net, and keeps only how many requests of each kind there were, and how long the windows lasted. No address, path or user agent is kept. bunny.net keeps its log for three days, so a day is counted while it still has all of it, an hour after the day ends. Brewless keeps the day totals for 13 months, and a daily job removes older days.

Avoidable windows

A wake-up opens a window: the first request after fifteen quiet minutes starts the container, and it sleeps again fifteen minutes after the last request. A window is avoidable when every request in it came from a known bot, a scanner or an unknown bot. One request of a human makes the whole window needed.

A window a release opened is never avoidable: the release starts the container itself, and its warm-up follows. A container with web.min of 1 or more is awake anyway, so nothing of its time is avoidable.

The model counts one instance per window, also for a container that may scale out to more. Beside it stands the run time Scaleway itself counted on the same days, so you can see how close the two are.

What it costs

The avoidable seconds are priced at Scaleway's list price for the size of your web container: its vCPU and its memory, per second. When the environment has a Serverless SQL Database of its own that pauses, each avoidable window is also counted as database time, from the first request until five minutes after the last, at no less than one vCPU.

Every figure says what it rests on:

Mark Meaning
measured Counted by the provider: the run time Scaleway recorded, a known bot or a scanner path in bunny.net's log
estimated Brewless's model: the windows and what they cost at list prices
potential The estimate carried over to a whole month, a scenario
invoiced What Scaleway and bunny.net billed, on the Costs page; it arrives later than the estimates

With fewer than three days counted, or no request log of bunny.net to count from, the page says there is not enough data and names no amount.

The free allowance

Scaleway gives every account 200,000 vCPU-seconds and 400,000 GB-seconds of Serverless Containers a month for free. Brewless carries the run time of all your containers so far this month over to the whole month. As long as that stays inside the allowance, avoidable container time costs you nothing, the saving shows €0 for it, and the page says why. Serverless SQL has no such allowance, so its part of the saving stays.

Is Shield Advanced worth it?

On Shield Basic, the Security card of an environment says what Shield Advanced would add, next to Change plan. It never moves the zone to Advanced by itself.

Money. Only what Advanced's bot detection would stop that Basic lets through counts: the windows that unknown bots alone opened and kept open. Brewless counts their seconds per day apart from the other avoidable time. Known bots and scanners are left out, and so is a window that had any other client in it, because Advanced would not have spared those.

The seconds are priced like the avoidable time above and carried over to a month, always marked estimated. Inside Scaleway's free allowance they would cost nothing, and the card says so. With it come:

  • a confidence: high from 28 days that differ little from each other, medium from 21, and otherwise low;
  • Advanced's price at bunny.net: $9.50 a month, billed to your own bunny.net account.

Brewless has no exchange rate. It shows the euros and the dollars side by side and does not net them into one figure.

  • With fewer than 14 days counted apart like this, or without bunny.net's request log, there is no amount: "not enough data yet".
  • A container that never sleeps (web.min of 1 or more) gets €0 expected: keeping bots out spares no container time.

Security and operations. Advanced has more managed WAF rules (255 against 71), custom WAF rules, curated threat lists, antivirus on uploads (shown when the environment has a bucket), API Guardian, bot detection, and 10 rate limit rules against 2. These are bunny.net's plan facts, with the date Brewless read them.

Examples

At the list prices Brewless uses, a container of 0.25 vCPU and 512 MB costs €0.0162 an hour it runs, one of 1 vCPU and 2 GB €0.0648, and Serverless SQL €0.13752 per vCPU hour. A month is 730 hours.

Situation Container Avoidable a day A month like this Saving
Marketing site, crawlers open 20 windows of 15 minutes 0.25 vCPU, 512 MB 5 hours €2.46 €0: about 152 hours a month stays inside the free allowance of 222 hours at this size
Small Laravel app with a database, 10 bot windows of 20 minutes, each 10 minutes of database 0.5 vCPU, 1 GB 3 h 20 min, and 1 h 40 min of database €3.28 container + €6.97 database €6.97 inside the free allowance, up to €10.25 past it
Kept awake around the clock by bots, with a database 1 vCPU, 2 GB 24 hours €47.30 container + €100.39 database up to €147.69
Awake around the clock for people 1 vCPU, 2 GB none €0 €0
web.min: 1 any none €0 €0

Note

These are estimates from bunny.net's log and Scaleway's list prices, not what you will be billed: the windows are a model, and the real bill depends on how many instances ran. They are never added to the invoiced figures on the Costs page.