-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[usage] Deploy usage by default #14668
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
fdeb2cb
to
867f683
Compare
867f683
to
ba59c1b
Compare
// This is the default configuration, used in self-hosted installs. | ||
// For SaaS, we explicitly configure it based on workspace classes below. | ||
CreditsPerMinuteByWorkspaceClass: map[string]float64{ | ||
"default": 0.1666666667, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the credits value significant? If not, adding a comment to that effect might be worthwhile.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is significant. At least the default
class has to be defined. We could define it with a value of 0, but that risks actually making a mistake and not charging for instances at all in our SaaS..
There is also this comment in the linked issue which suggests we should also remove a |
Updated linked issues to say "relates to" rather than "fixes" |
Description
This PR will deploy the usage component by default in all installations.
It uses the following defaults:
Usage Ledger schedule - 15m
Reset Usage schedule - 15m
WorkspaceClass Credit cost - default: 0.1666666667
No Stripe API Key, No Stripe prices
Related Issue(s)
Related to #14129
How to test
Usage component is deployed in preview
Release Notes
Documentation
Werft options:
If enabled this will build
install/preview
Valid options are
all
,workspace
,webapp
,ide
,jetbrains
,vscode
,ssh