This guides you through setting up an SLA to allow you to easily deploy one of our models with the support level you require:
Setting an SLA
Set an SLA on the current model with:
juju sla essential --budget 100
The budget sets an upper monthly limit on support costs for the model. Once this limit is reached, you'll need to increase it to continue to receive support for the model.
The first time you set an SLA, you'll be prompted to agree to the SLA terms.
ERROR: Declined: some terms require agreement. Try: "juju agree canonical/sla-terms/1"
juju agree canonical/sla-terms/1 [Terms displayed] Do you agree to the displayed terms? Agreed to revision 1 of canonical/sla-terms for Juju users.
You should then be able to set the SLA.
Budgeting support costs
Juju's budgeting features puts you in control of costs. You'll never pay more than the monthly budget limit allocated to a model's support costs.
Budgets for each model are organized into wallets. Wallets are useful for organizing your model costs by project, department or consulting engagement -- however you need to keep track of costs.
By default, you'll start with a personal wallet, which is used by default when setting an SLA. List your wallets with:
A summary of all your wallets is displayed:
Wallet Monthly Budgeted Available Spent personal* 1000 100 95.41 4.59 Total 1000 100 95.41 4.59 Credit limit: 1000
- Monthly indicates the funds available per month in the wallet.
- Budgeted indicates how much has been budgeted to models.
- Available indicates how much of that budget is unspent.
- Spent indicates how much of the budget has been spent.
- Credit limit indicates the upper limit on the total amount of all funds you have available per month. Contact Canonical if you need to raise this limit.
The asterisk indicates the default wallet -- the wallet used when the name is not specified.
Display a wallet's budgets with:
juju show-wallet <wallet name>
A more detailed view of that wallet's budgets is shown:
Model Spent Budgeted By Usage sla-prod:admin/cdk1 4.59 100 cmars 4% Total 4.59 100 4% Wallet 1000 Unallocated
Changing a budget
To raise or lower the budget limit for the current model:
juju budget 200
will set the monthly limit to 200. The personal wallet now looks like:
Model Spent Budgeted By Usage sla-prod:admin/cdk1 4.59 200 cmars 2% Total 4.59 200 2% Wallet 1000 Unallocated
The budget limit cannot be set lower than what has already been spent:
juju budget 0 ERROR failed to update the budget: budget limit below current spend 4.59
It also can't be set higher than the size of the wallet:
juju budget 100000 ERROR failed to update the budget: budget limits cannot exceed the wallet limit
To raise or lower the wallet size:
juju set-wallet 500
will lower the wallet size from 1000 to 500 per month. The wallet now shows the new size:
Wallet Monthly Budgeted Available Spent personal* 500 200 195.41 4.59 Total 500 200 195.41 4.59 Credit limit: 1000
There is now room under the credit limit to create another wallet:
juju create-wallet work 500
The summary then becomes:
Wallet Monthly Budgeted Available Spent personal* 500 200 495.41 4.59 work 500 0 500.00 0.00 Total 1000 200 995.41 4.59 Credit limit: 1000
The wallet size cannot be set lower than the amount budgeted from it:
juju set-wallet personal 100 ERROR failed to set the wallet: wallet limit cannot be less than the sum of the budgets
First lower the budgets in the wallet, and then it may be lowered.