docs(design): managed-warehouse compute-seconds billing plan#784
Draft
benben wants to merge 1 commit into
Draft
Conversation
Design doc for per-org compute billing of managed-warehouse worker pods (remote k8s backend). Covers the billable unit (compute_seconds = worker size x connection wall-clock), connection-end metering, config-store aggregation buffer + leader drain with at-most/least-once delivery, and emit via public ingestion capture events that ride the existing usage_report -> billing pipeline. Draft / iterating; one open item (billing-side usage_key + token registration).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Draft design doc (
docs/design/billing-compute-seconds-plan.md) for billing per-org compute usage of managed-warehouse worker pods (remote k8s backend).Summary of the design
managed_warehouse_compute_seconds = max(cores, gib/2) × ceil(connection_seconds)— worker size folded into a single scalar (dominant-resource normalization, R=2 ≈ AWS c-family 1:2).capture()events to public ingestion over NAT (like any SDK). They land in ClickHouse and a gather query rides the existingusage_report → billingpipeline — no new infra, no cross-account plumbing. (PrivateLink evaluated and rejected on cost.)Status
Draft / iterating. One open item: billing-side
usage_key+ ingestion token registration (not code). Everything else (unit, metering, buffer, drain, delivery, transport) is settled.Opening as draft for review/iteration.
🤖 Generated with Claude Code