Before you start
- Priced clusters. Budgets and savings read the same figures as the Cost pages. A budget whose scope has no priced cluster reads
unknown, never zero. - Permissions. Every member can read budgets, the autopilot policy, decisions and the ledger. Adding, changing and removing a budget, approving and running a decision, and changing the autopilot need
billing.manage. Changing the autopilot, and running a right-size, also needclusters.write. - Your project. Every fleet read covers the project you act in. Pass
--all-projectsfor the whole organisation, or the global--projectfor another project.
1. Set a budget
A budget is a monthly amount for the organisation, one project, one cluster, one environment label or one application. A scope holds at most one budget.--amount is per month in the currency’s major unit (1500 or 1500.50). --scope-id takes the project, cluster or application by name or id, or the environment label; an organisation budget takes none.
When the projected month end reaches --notify-at percent of the budget (80 unless you set another), Ankra sends a Budget crossing notification. Route it to a channel with notification routing.
Read where each budget stands:
2. Choose the autopilot tiers
The autopilot decides which cost changes Ankra proposes on its own. It never makes a change itself: every proposal waits for a person to approve and run it. Each environment kind -production, staging, development, preview and unknown - takes a tier. On scheduled and managed, Ankra proposes stopping the cluster outside working hours. On hands-off and ephemeral it proposes nothing on its own. An organisation that never set a policy is hands-off everywhere.
--default KIND=TIER repeats, and kinds you do not name keep their tier. get lists the tier of every live cluster in your project.
Put one cluster in another tier, for a reason and for a while:
3. Review, approve and run decisions
Every cost change Ankra proposes - a right-size, a right-size ladder, an off-hours schedule, a waste cleanup - is a decision with a plan.plan_hash from get:
--plan-hash the command shows the plan and asks before approving. The platform refuses the approval, and approves nothing, when the proposal was proposed again with another plan in the meantime.
Then run it, as you:
--acknowledge-no-snapshot.
To stop an approved change before it runs, hold it (ankra cost decisions hold, then release) or decline it with a reason:
4. Read the ledger
Seven days after a change runs, Ankra compares the cluster’s run rate before the change with its run rate on day seven and records the difference as the measured saving.unknown, never zero, and the row says why. A negative figure means the run rate rose.
Verify
ankra cost budgets listshows each budget with a projected month end, notunknown.ankra cost autopilot getshows the tiers you set and your clusters under them.- A decision you ran shows
succeededinankra cost decisions get, and a week later a measured saving inankra cost ledger.
Troubleshooting
Related
- Cloud Cost - the figures, prices and per-project views.
- Cluster Power Schedules
ankra costreference