-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tenantcostserver: use the tenant_usage system table
This change implements most of the interaction with the tenant_usage system table, with the exception of dead instances detection and clean-up. We currently tolerate an empty table, but it would be cleaner to initialize the tenant state (instance_id=0 row) at tenant creation time (+ implement a migration). I will explore this in a future change, when we add some configurable defaults for the refill rate etc. Release note: None
- Loading branch information
1 parent
fb79801
commit f4f0be3
Showing
11 changed files
with
1,489 additions
and
651 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.