Which SLIs/SLOs are relevant for Canary windows?

Relevant SLIs/SLOs for Canary Windows

In the context of canary deployments, it is crucial to monitor specific Service Level Indicators (SLIs) and set appropriate Service Level Objectives (SLOs) to ensure that the main application remains stable while testing new features.

Some relevant SLIs/SLOs for canary deployment windows include:

  • Error Rate: Measure the percentage of requests that result in an error. A low error rate is expected during canary releases.
  • Latency: Track the time taken to process requests. SLOs can be set to ensure that latency remains within acceptable thresholds.
  • Request Volume: Monitor the total number of requests handled by the canary version. Significant fluctuations could indicate underlying issues.
  • Performance Metrics: Metrics such as CPU and Memory usage to ensure resource efficiency during the canary deployment.
  • User Feedback: Collect qualitative data from users encountering the canary version to gauge user experience and satisfaction.

By monitoring these SLIs and adhering to set SLOs during canary deployment windows, teams can effectively assess the impact of new changes before a full rollout.

<?php // Example of checking an error rate SLI $total_requests = 1000; // Total requests to the canary version $error_requests = 50; // Failed requests $error_rate = ($error_requests / $total_requests) * 100; if ($error_rate < 5) { echo "Canary deployment is stable"; } else { echo "Canary deployment has issues"; } ?>

canary deployment SLIs SLOs error rate latency request volume performance metrics user feedback