The invention relates to the technical field of distributed service management, in particular to a distributed service degradation self-adaption method and
system based on
annotation driving, and the method comprises the steps: customizing a degradation
annotation on a target service instance, and the degradation
annotation comprises a basic threshold value, a priority identifier and a first instruction; receiving a degradation annotation and context information of the target service instance, the context information being applied to the differentiated
processing strategy, the context information comprising
user information; multi-dimensional indexes of the target service instance are monitored in real time, the multi-dimensional indexes comprise a
system index, a service index and an environment index, and the service index comprises
response time; constructing a service instance dependency relationship, and generating a dynamic threshold according to a
system index, a priority identifier and a basic threshold in combination with a differential
processing strategy; when the
response time of the target service instance is greater than a dynamic threshold, triggering a
degradation process, and executing the first instruction and generating state information by the target service instance; and
synchronizing the state information to a service registration center, and triggering a distributed cooperative degradation strategy.