Adding a Traffic Shift Stage
Traffic Shift stage routes the traffic between two sets of backend IPs. You can specify the IPs in each group and also configure the batch count and batch delay based on which the traffic is distributed.
-
A load balancer with pre-provisioned bandwidth.
-
A backend set with a health check policy. See Backend Set Management for more information.
-
Backend servers for your backend set. See Backend Server Management for more information.
-
One or more listeners . See Listener Management for more information.
-
Load balancer subnet security rules to allow the intended traffic. See Security Rules.
To add a traffic shift stage to the pipeline, run the
create-load-balancer-traffic-shift-stage
command:oci devops deploy-stage create-load-balancer-traffic-shift-stage
Required parameters for the
create-load-balancer-traffic-shift-stage
command:--blue-backend-ips
--green-backend-ips
--load-balancer-config
--pipeline-id
--rollout-policy
--stage-predecessor-collection
--traffic-shift-target
To get all the commands for
deploy-stage
:oci devops deploy-stage -h
To get help for the
create-load-balancer-traffic-shift-stage
command:oci devops deploy-stage create-load-balancer-traffic-shift-stage -h
To add a traffic shift stage to the pipeline, use the
CreateDeployStage
operation. FordeployStageType
attribute, specify theLOAD_BALANCER_TRAFFIC_SHIFT
value.