Define error threshold for canary deployment
How to define error threshold?
The error threshold can be defined for blue green deployments . The value can be passed as part of --options. The parameter for the same is canary_config
which takes a json input and lets the users define error threshold. This is an optional field and only applicable if canary is set to true.
odin operate component --name YourApplicationComponent --service YourServiceName --operation redeploy --options='{"artifact_version": "YourArtifactVersion","strategy":{"name":"blue-green", "auto_routing": true, "canary": true, "passive_downscale":false, "canary_config": {"error_threshold": {"metric": "percent", "value": 5}} }}' --env YourEnvName
canary_config
json
Contains the error_threshold details in json format
error_threshold
json
Contains the error threshold value in absolute or percentage format. Takes two input parameters both of which are mandatory: 1. metric 2. value
metric
string
Two possible values: 1. Absolute: No. of absolute errors that user is willing to tolerate. 2. Percent: Percentage of error out of total requests.
Value
float
Can be defined in float format. For absolute, if a user defines a non integer value, it will automatically take the floor of that particular value. E.g: If a user defines metric as absolute and value as 5.5, Odin will automatically take 5 as the required input.
Last updated