Fault Injection
You can use fault injection on the consumer side to configure the latency, fault, and triggering probability of requests sent to a specified microservice to ensure that core services are accessed only by key microservices during peak hours.
Spring Cloud Huawei does not support fault injection.
servicecomb: handler: chain: Consumer: default: loadbalance,fault-injection-consumer
Add the following dependency to the POM file:
<dependency> <groupId>org.apache.servicecomb</groupId> <artifactId>handler-fault-injection</artifactId> <version>${project.version}</version> </dependency>
For details, see ServiceComb Fault Injection Development Guide.
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