Define error threshold for canary deployment
Last updated
Last updated
The error threshold can be defined for . 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.
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.