Operation and maintenance method and apparatus, system, server, electronic device, and medium
The present disclosure discloses an operation and maintenance method, apparatus, and system, a server, an electronic device, and a medium. The method includes: searching for an operation and maintenance service capability based on an operation and maintenance request to determine a service agent device and an operation and maintenance instruction corresponding to the service agent device, wherein the service agent device is provided in a container and provides an operation and maintenance service, and the operation and maintenance service capability is a service capability of the service agent device determined based on operation and maintenance data of the container; and sending the operation and maintenance instruction corresponding to the service agent device to the service agent device for the service agent device to execute the operation and maintenance instruction.
1 . An operation and maintenance method, comprising:
searching for an operation and maintenance service capability based on an operation and maintenance request to determine a service agent device and an operation and maintenance instruction corresponding to the service agent device, wherein the service agent device is provided in a container and provides an operation and maintenance service, and the operation and maintenance service capability is a service capability of the service agent device determined based on operation and maintenance data of the container; and
sending the operation and maintenance instruction corresponding to the service agent device to the service agent device for the service agent device to execute the operation and maintenance instruction;
wherein the operation and maintenance data comprises at least one of operation environment parameter, system state, service process state, or service index of the container.
2 . The method of claim 1 , wherein searching for the operation and maintenance service capability based on the operation and maintenance request to determine the service agent device and the operation and maintenance instruction corresponding to the service agent device comprises:
searching for the operation and maintenance service capability of the service agent device based on the operation and maintenance request to determine the service agent device to execute the operation and maintenance request and an operation and maintenance task corresponding to the service agent device; and
determining the operation and maintenance instruction corresponding to the service agent device based on the operation and maintenance task corresponding to the service agent device.
3 . The method of claim 2 , wherein searching for the operation and maintenance service capability of the service agent device based on the operation and maintenance request to determine the service agent device to execute the operation and maintenance request and the operation and maintenance task corresponding to the service agent device comprises:
searching for a service capability interface based on the operation and maintenance request to determine the service agent device to execute the operation and maintenance request and the operation and maintenance task corresponding to the service agent device;
wherein the service capability interface corresponds to the service agent device.
4 . The method of claim 3 , before searching for the operation and maintenance service capability based on the operation and maintenance request to determine the service agent device and the operation and maintenance instruction corresponding to the service agent device, further comprising:
receiving registration information sent from the service agent device, wherein the registration information comprises the service capability interface corresponding to the service agent device; and
storing the registration information of the service agent device.
5 . The method of claim 1 , before searching for the operation and maintenance service capability based on the operation and maintenance request to determine the service agent device and the operation and maintenance instruction corresponding to the service agent device, further comprising:
receiving and storing the operation and maintenance data sent from the service agent device; and
determining the operation and maintenance service capability of the service agent device based on the operation and maintenance data.
6 . The method of claim 1 , after sending the operation and maintenance instruction corresponding to the service agent device to the service agent device for the service agent device to execute the operation and maintenance instruction, further comprising:
receiving feedback information returned from the service agent device after executing the operation and maintenance instruction.
7 . An operation and maintenance method applicable to a service agent device which is provided in a container and provides an operation and maintenance service, comprising:
receiving an operation and maintenance instruction, wherein the operation and maintenance instruction is an instruction which corresponds to a service agent device to execute the operation and maintenance service and which is determined by an operation and maintenance apparatus searching for an operation and maintenance service capability based on an operation and maintenance request; and the operation and maintenance service capability is a capability of the service agent device to implement the operation and maintenance service; and
executing the operation and maintenance service according to the operation and maintenance instruction,
wherein before receiving the operation and maintenance instruction, the method further comprises:
sending registration information to the operation and maintenance apparatus;
acquiring operation and maintenance data, wherein the operation and maintenance data comprises one or more of operation environment parameter, system state, service process state, or service index of a service module in the container; and
sending the operation and maintenance data to the operation and maintenance apparatus, so as to allow the operation and maintenance apparatus to determine the operation and maintenance service capability of a service agent device based on the operation and maintenance data.
8 . The method of claim 7 ,
wherein the registration information comprises a service capability interface of the service agent device.
9 . An operation and maintenance apparatus, comprising:
a service manager configured to manage an operation and maintenance service capability provided by a service agent device; wherein the service agent device is provided in a container and provides an operation and maintenance service, and the operation and maintenance service capability is a capability of the service agent device to implement the operation and maintenance service;
a service controller configured to determine the service agent device and an operation and maintenance instruction corresponding to the service agent device based on an operation and maintenance request and the operation and maintenance service capability of the service agent device, wherein the operation and maintenance request is a request made by a user; and
a service capability interface configured to receive the operation and maintenance instruction and send the operation and maintenance instruction to the service agent device for the service agent device to execute the operation and maintenance instruction,
wherein the service controller comprises:
a receiver configured to receive operation and maintenance data sent from the service agent device, wherein the operation and maintenance data comprises at least one of operation environment parameter, system state, service process state, or service index of the container; and
a service capability decision generator configured to determine the operation and maintenance service capability of the service agent device based on the operation and maintenance data from the service agent device.
10 . The apparatus of claim 9 , wherein the service manager comprises:
a service capability maintainer configured to maintain the operation and maintenance service capability of the service agent device; and
a service capability storage configured to store the service agent device and the corresponding operation and maintenance service capability.
11 . The apparatus of claim 10 , wherein the service manager further comprises:
a service capability register configured to acquire registration information of the service agent device and register the service agent device.
12 . The apparatus of claim 10 , wherein the service capability maintainer periodically acquires operation and maintenance data, and updates the operation and maintenance service capability of the service agent device based on the operation and maintenance data.
13 . The apparatus of claim 10 , wherein the service manager further comprises:
an interface standard generator configured to give a standardized definition to the service capability interface.
14 . The apparatus of claim 13 , wherein the standardized definition comprises at least one of type, execution time, execution script, and execution result of the operation or maintenance instruction.
15 . The apparatus of claim 9 , wherein the service controller further comprises:
a receiver configured to search for the operation and maintenance service capability based on the operation and maintenance request to obtain the service agent device to execute the operation and maintenance request;
an instruction generator configured to generate the operation and maintenance instruction based on the operation and maintenance request and the operation and maintenance service capability of the service agent device; and
a transmitter configured to send the operation and maintenance instruction to the service agent device corresponding to the operation and maintenance instruction for the service agent device to execute the operation and maintenance instruction.
16 . The apparatus of claim 9 , further comprising:
a signal transmission interface configured to receive the operation and maintenance request and return an execution result of the operation and maintenance service.