Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

feat(Billing): Add billing framework #21

Merged
merged 6 commits into from
Mar 15, 2022
Merged

feat(Billing): Add billing framework #21

merged 6 commits into from
Mar 15, 2022

Conversation

manishrjain
Copy link
Contributor

@manishrjain manishrjain commented Mar 15, 2022

This PR sets the framework for billing. It tracks the CPU usage and accumulates it across the cluster via Zero. Zero stores the usage as core-hours in MembershipState.

Every so often, Zero leader charges the account based on the core-hours. The charge logic would be written in a future PR.


This change is Reviewable

@manishrjain manishrjain merged commit 1ce79af into main Mar 15, 2022
@manishrjain manishrjain deleted the mrjn/billing branch March 15, 2022 21:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant