← Back to Cost Avoidance Techniques
Cost Avoidance Techniques
Set usage caps and limits
- Creatures
- Loggle (#1), Scalix (#2), Promptle (#9)
- Effort
- Not stated in source
Description
Put a ceiling on a metered service so a runaway cannot grow without bound, and reduce the volume charged in the first place (sampling, trimming, cheaper models).
How to apply it
- Log Analytics: set a workspace daily cap, with an alert before it is hit.
- Application Insights: enable sampling; send only needed diagnostic categories; consider Basic Logs.
- Autoscale: set sensible maximum instance counts.
- AI: set
max_tokens, quotas, rate limits or an APIM token-limit policy; route simple tasks to cheaper models; use prompt caching and context trimming; use a usage cap where possible.
Examples
- Loggle: verbose App Insights logging with no sampling; fixed with lower verbosity, sampling, fewer categories and a daily cap.
- Scalix: the maximum scale-out limit was reduced to what the database could sustain.
- Promptle: a PoC with no token limit cost more than 20k; fixed with token limits and a usage cap where possible.
Trade-offs
Loggle overview: capping drops data, so alert before the cap is hit. Caps elsewhere may limit capacity.