#Local deployment usage
8 messages · Page 1 of 1 (latest)
Hi @charred forum. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
No. Usage from local deployments does not count against the billed quotas for your Convex plan.
When you run a local deployment, the backend runs on your own machine, and:
“Since the deployment is running locally, code sync is faster and means resources like functions calls and database bandwidth don't count against [the quotas for your Convex plan].” [Local deployments]
So function calls, database bandwidth, and similar usage on a local deployment are not billed and do not consume your plan’s limits.
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
@charred forum Kapa.ai is still learning and improving, please let me know how I did by reacting below.
@carmine thistle how can I see where all my db read bandwidth is being spent?
Let me check the knowledge base for you again. One moment! :books:
You have a few tools for this:
-
Per-function breakdown in the dashboard
- Go to Team → Usage for your team.
- On the Usage page, scroll down to the graphs; the last graph has a dropdown.
- Select “Database bandwidth” to see which functions are consuming the most DB bandwidth (reads + writes). [Team usage; DB bandwidth thread]
-
Per-function metrics on a deployment
- In the dashboard, open Deployment → Functions.
- For each function you can see metrics like Invocations, Errors, Execution Time, and Cache Hit Rate; this helps spot hot or uncached queries that might drive reads. [Functions metrics]
-
Health → Insights (for inefficient queries)
- In Deployment → Health, check the Insights section.
- Convex surfaces functions that are reading too many bytes or too many documents in a single transaction, with charts and function names so you can target them. [Health insights]
-
Log Streams for detailed per-call usage
- Enable a Log Stream integration (e.g. Axiom, Datadog).
- Each
function_executionevent includesusage.database_read_bytes,database_read_documents, etc., so you can graph and aggregate DB reads by function or over time. [Log streams schema] - Example Axiom query to see DB bandwidth by function: [Log streams usage]
your_dataset | where ['data.topic'] == "function_execution" | extend databaseBandwithKb = (todouble(['data.usage.database_read_bytes']) + todouble(['data.usage.database_write_bytes'])) / 1024 | summarize sum(databaseBandwithKb) by ['data.function.path'], bin_auto(_time)
- Each