The application relates to the technical field of distributed
system monitoring, and discloses a running state monitoring method and
system applied to a
server cluster, wherein the running state monitoring method applied to the
server cluster comprises the following steps: acquiring patch change data of a local code warehouse, and generating an initial dependency relationship matrix;
processing code structure features by using a
differential privacy algorithm, and generating a privacy-protected feature
fingerprint vector; homomorphically encrypting
feature data, and generating an encrypted
dependency graph which can be calculated in a
ciphertext domain; executing a graph propagation
algorithm in the
ciphertext domain, and calculating a propagation probability distribution of patch influence; performing secure multi-party aggregation, and calculating a
risk level of global cascading influence; and generating a patch deployment suggestion based on a
risk assessment result. The application overcomes the cascading effect omission problem caused by relying on local assessment only, thereby solving the technical problem of global
risk assessment under the premise of protecting code privacy.