shared_rules
Last updated
Was this helpful?
Last updated
Was this helpful?
A shared_rule
defines a re-usable mapping of traffic between and . This can be very simple, or very complex, depending on the need and the stage of deployment. In it's most simple setup, any given request is just sent to a single cluster. However, traffic can also be fractionally diverted and/or simultaneously shadowed to alternate clusters.
NOTE Some features of the
shared_rules
object can also be defined in the object. When defined inline, they cannot be shared between proxies.
Retry Policies
Traffic Splitting
Traffic Tap/Shadow
shared_rules_key
A unique key to identify this shared_rule configuration in the Fabric API.
name
The name of the shared rules object. This will become the value of a header with key "shared_rules_key"
on all routes linked to this shared rule.
zone_key
The zone in which this object will live. It will only be able to be referenced by objects or sent to Sidecars that live in the same zone.
default
NOTE:
default
also contains adark
and alight
field which currently have no effect.dark
array will be used in future versions to support traffic shadowing to Instances. Similarly thetap
array will determine an Instance to send a copy of the request to, comparing the response to thelight
response.
rules
response_data
cohort_seed
This field has no effect.
properties
This field has no effect.
retry_policy
checksum
An API calculated checksum. Can be used to verify that the API contains the expected object before performing a write.
The default
field defines arrays that map requests to clusters. Currently, the only implemented field is the light
field which is used to determine the Instance to which the live request will be sent and from which the response will be sent to the caller.
Currently, the default
field must set a light
field that contains an array of .
A list of to specify various more complex route matching and forwarding specifications.
A collection of annotations that should be applied to responses when handling a request.
Specifies the default and timeout for any route referencing this shared rule object. Any retry policy set on the will take precedence over one configured here.