Microservice Governance
Scenarios
Microservice engines provide governance policies such as load balancing, service degradation, rate limiting, fault tolerance, circuit breaker, fault injection, blacklist, and whitelist.
User Story
You can configure governance policies in advance based on actual service scenarios to flexibly respond to service requirement changes and ensure stable running of applications.
Service degradation: In this practice, if the number of frontend requests increases sharply, the system responds slowly or may even break down. In this case, you can degrade the forecast microservice from fusionweather and request only important real-time weather data to ensure the proper running of important service functions and restore the service when traffic peaks are over.
Service Degradation
ServiceStage supports service degradation by microservice or API. The following uses the forecast microservice as an example.
- Log in to ServiceStage.
- Choose Cloud Service Engine > Microservice Governance.
- Select the microservice engine where the weather forecast component is deployed from the Microservice Engine drop-down list.
- Select weathermap from the All applications drop-down list.
- Click the fusionweather microservice. The Microservice Governance page is displayed.
Figure 1 Accessing the Microservice Governance page
- Set a service degradation policy.
- Select Service Degradation.
- Click New.
- Set Service Degradation Object to forecast.
- Disable Request Path.
- Set Service Degradation to Open.
- Click OK.
Figure 2 Setting a service degradation policy - Check the configurations.
Access the application. The weather forecast on the right is blank.
Figure 3 Microservice degraded - Click
to delete the service degradation policy to prevent it from affecting user experience.
Figure 4 Deleting a policy
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