Updating a Traffic Policy
Updating a Traffic Policy Using YAML
If access to the forecast service instances is abnormal for five consecutive times within 4 minutes, 30% of instances will be isolated for 10 minutes. After the first isolation period expires, abnormal instances will receive traffic again. If these instances still cannot work normally, they will be isolated for 20 minutes for the second time. The other isolation periods follow the same rule. You can update the parameter values as required.
- Log in to the UCS console. In the navigation pane, choose Service Meshes.
- Click the name of the target service mesh to go to its details page.
- In the navigation pane, choose Traffic Governance > Traffic Policy.
- Locate the traffic policy to be updated and click Edit YAML in the Operation column.
The following are the parameters in the YAML file. (Configure the parameters based on site requirements.)
apiVersion: networking.istio.io/v1beta1 kind: DestinationRule metadata: name: forecast namespace: weather spec: host: forecast trafficPolicy: connectionPool: tcp: maxConnections: 80 connectTimeout: 25ms http: http2MaxRequests: 800 maxRequestsPerConnection: 10 outlierDetection: consecutive5xxErrors: 5 interval: 4m baseEjectionTime: 10m maxEjectionPercent: 30
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot