Proposal 134500

Upgrade the Cycles-minting - 134500

The target canister is correct rkp4c-7iaaa-aaaaa-aaaca-cai.

The install mode is upgrade as expected.

The args are correct and correspond to the empty arg: 0fee102bd16b053022b69f2c65fd5e2f41d150ce9c214ac8731cfaf496ebda4e.

The wasm is reproducible.

Screenshot 2024-12-14 at 15.26.14

In-depth review

This update introduces new constants, metrics, and logging to improve transparency and control over cycles minted via the CMC (Cycles Minting Canister). It raises the cycles limit to accommodate higher demand and adds metrics to monitor limiter behavior, enhancing operational insight.

  1. Cycles Limit Increase: The default cycles limit (DEFAULT_CYCLES_LIMIT) was increased from 50e15 to 150e15 to address legitimate user requests that were previously blocked.
  2. Metrics Enhancements:
  • Added cmc_limiter_reject_count to track how often requests are blocked by the limiter.
  • Introduced cmc_limiter_cycles to monitor the recent cycles minted.
  • Exposed cmc_cycles_limit to track the upper bound for minting cycles.
  1. Limiter Enhancements: Added LIMITER_REJECT_COUNT to increment whenever a minting request is rejected, improving visibility into limiter rejections.
  2. Temporary State Update: Updated post_upgrade to reset the cycles limit using the new default. This change is flagged for removal after release, requiring follow-up to avoid lingering unused code.
1 Like