Server operation and maintenance method, device, operation and maintenance server, and server operation and maintenance system

By automatically obtaining and processing the registration information and operation parameter information of the program server in the operation and maintenance server, the problem of server operation and maintenance difficulty and cost under the microservice architecture is solved, and no manual operation and maintenance is achieved, which reduces the technical threshold and operation and maintenance costs.

CN116170302BActive Publication Date: 2025-03-11LANGCHAO ELECTRONIC INFORMATION IND CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310183069.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-24
Publication Date
2025-03-11
Estimated Expiration
2043-02-24

AI Technical Summary

Technical Problem

The existing technology has increased the number of programs in server operation and maintenance due to the microservice architecture, and the difficulty and cost of operation and maintenance are increased. In addition, the introduction of k8s tools requires high technical level and frequent manual operations, which is difficult to widely use.

Method used

By automatically obtaining the registration information and operation parameter information of the program server in the operation and maintenance server, storing it in the preset library, and automatically sending it to the client, realizing unmanned manual operation and maintenance.

Benefits of technology

It reduces technical threshold and operation and maintenance difficulty, reduces operation and maintenance costs, simplifies the operation and maintenance process, and is conducive to widespread application.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116170302B_ABST
    Figure CN116170302B_ABST
Patent Text Reader

Abstract

The present invention discloses a server operation and maintenance method, device, operation and maintenance server and server operation and maintenance system, which relates to the field of server operation and maintenance. By acquiring registration information corresponding to a program generated by a program server when detecting that the program server itself has a program started, the registration information is stored in a preset registration information library. For any registration information stored in the preset registration information library, the operating parameter information of the program corresponding to the registration information in the program server is acquired, and all the operating parameter information is sent to a client. The operation and maintenance server is used to automatically acquire the operating parameter information of each program in the program server and automatically send it to the client. The staff does not need to manually operate and maintain the program server, and the staff does not need to invest learning costs to learn to use the operation and maintenance tools, which reduces the technical threshold and the technical requirements for the staff, and is conducive to wide application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of server operation and maintenance, and in particular to a server operation and maintenance method, device, operation and maintenance server, and server operation and maintenance system. Background Art

[0002] In order to ensure the reliability of the server and reduce the impact on the server when a problem occurs in an application on the server, the current server usually uses a microservice architecture to deploy applications. However, the use of a microservice structure will increase the number of programs in the server. During the life cycle of the server, in order to ensure the normal operation of the server, the staff needs to operate and maintain the server, and too many programs in the server will increase the difficulty of operation and maintenance of the server and increase the operation and maintenance cost. In order to reduce the difficulty and cost of operation and maintenance, the existing technology usually introduces k8s (Kubernetes) tools to operate and maintain the server. The operating parameter information of the program in the server can be obtained in batches through the instructions in k8s. Since k8s has comprehensive functions for operation and maintenance and perfect technology, it can effectively reduce the difficulty and cost of operation and maintenance. However, it is difficult for the staff to learn and master the use of k8s tools, and the operation and maintenance of the server using k8s also requires frequent manual operations by the staff. Therefore, the introduction of k8s tools requires high technical level and large workload of the staff, and it is difficult to be widely used. Summary of the invention

[0003] The purpose of the present invention is to provide a server operation and maintenance method, device, operation and maintenance server and server operation and maintenance system, which does not require staff to manually operate and maintain the program server, and does not require staff to invest learning costs to learn to use operation and maintenance tools, thereby reducing the technical threshold and technical requirements for staff, and facilitating wide application.

[0004] In order to solve the above technical problems, the present invention provides a server operation and maintenance method, which is applied to a processor in an operation and maintenance server, wherein the operation and maintenance server is connected to a client and a program server respectively, and the server operation and maintenance method comprises:

[0005] Acquiring registration information corresponding to the program generated by the program server when detecting that the program server itself has a program started;

[0006] Storing the registration information in a preset registration information library;

[0007] For any of the registration information stored in the preset registration information library, obtaining the running parameter information of the program corresponding to the registration information in the program server;

[0008] Send all the operating parameter information to the client.

[0009] Preferably, after storing the registration information in a preset registration information library, the method further includes:

[0010] Start recording the idle time of the registration information;

[0011] When it is detected that the idle time is longer than a preset time, the uncalled time is cleared and the registration information is removed from the preset registration information database;

[0012] When it is detected that the idle time is not greater than the preset time and the registration information is called by any program in the program server, the idle time is cleared.

[0013] Preferably, after storing the registration information in a preset registration information library, the method further includes:

[0014] All the registration information in the preset registration information library are sent to the program server, so that the program in the program server calls other programs in the program server.

[0015] Preferably, it also includes:

[0016] When receiving a user instruction, determining the registration information corresponding to the user instruction;

[0017] Determining the program corresponding to the registration information;

[0018] Using the user instructions to control the running state of the program through the program server;

[0019] When the control of the running state of the program is completed, obtaining the running parameter information of the program;

[0020] The running parameter information of the program is sent to the client.

[0021] Preferably, the operation and maintenance server is further connected to a registration server to obtain registration information corresponding to the program generated by the program server when detecting that the program server itself has a program started, including:

[0022] The registration information corresponding to the program generated by the program server when detecting that the program server itself has a program started is obtained through the registration server.

[0023] Preferably, after storing the registration information in a preset registration information library, the method further includes:

[0024] When obtaining offline information corresponding to the program generated by the program server when detecting that the program server itself has a program closed, determining the registration information corresponding to the offline information in the preset registration information database;

[0025] The registration information corresponding to the offline information is removed from the preset registration information database.

[0026] Preferably, after acquiring the running parameter information of the program corresponding to the registration information in the program server, the method further includes:

[0027] Storing the operating parameter information in a preset parameter information library;

[0028] Determining the running trend of each of the programs in the program server according to the running parameter information in the preset parameter information library;

[0029] The running trends of each of the programs are sent to the client.

[0030] The present application also provides an operation and maintenance device for a server, comprising:

[0031] Memory for storing computer programs;

[0032] A processor is used to implement the steps of the server operation and maintenance method as described above when executing the computer program.

[0033] The present application also provides an operation and maintenance server, including an operation and maintenance server body, and also including an operation and maintenance device of the server as described above;

[0034] The operation and maintenance server body is connected to the operation and maintenance device of the server.

[0035] The present application also provides a server operation and maintenance system, including a client and a plurality of program servers, and also including the operation and maintenance server as described above;

[0036] The operation and maintenance server is connected to the client and the plurality of program servers respectively.

[0037] The present application provides a server operation and maintenance method, device, operation and maintenance server, and server operation and maintenance system, which obtains registration information corresponding to a program generated by a program server when detecting that the program server itself has a program started, stores the registration information in a preset registration information library, obtains the operating parameter information of the program corresponding to the registration information in the program server for any registration information stored in the preset registration information library, and sends all the operating parameter information to the client. The operation and maintenance server is used to automatically obtain the operating parameter information of each program in the program server and automatically send it to the client, so that the staff does not need to manually operate and maintain the program server, and does not need to invest learning costs to learn to use the operation and maintenance tools, which reduces the technical threshold and technical requirements for the staff, and is conducive to wide application. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the prior art and the drawings required for use in the embodiments are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0039] Figure 1 A flow chart of a server operation and maintenance method provided in this application;

[0040] Figure 2 A schematic diagram of the structure of a server operation and maintenance system provided for this application;

[0041] Figure 3 A schematic diagram of the structure of an operation and maintenance device for a server provided in this application. DETAILED DESCRIPTION

[0042] The core of the present invention is to provide a server operation and maintenance method, device, operation and maintenance server and server operation and maintenance system, which does not require staff to manually operate and maintain the program server, and does not require staff to invest learning costs to learn to use operation and maintenance tools, thereby reducing the technical threshold and technical requirements for staff, and facilitating wide application.

[0043] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0044] In order to ensure the reliability of the server and reduce the impact of a problem on an application on the server, the current server usually uses a microservice architecture to deploy applications. The microservice architecture is a structure that divides the multiple functions of a single application into multiple programs (or multiple services) that implement a single function. Such an architecture can make each program loosely coupled and independent of each other in both the development and deployment stages. Since each program is equivalent to a single function of the original application, it is easy to modify it locally, and the impact of a problem with a single program is not as great as the impact of a problem with the entire original application. Each program can also be designed separately according to different user needs and personalized experience, which increases the user experience. Since the content structure of a single program is simple and the code is easy to understand, the workload of the staff responsible for the program can be reduced. However, the method of dividing a single application into multiple programs in the microservice architecture will also increase the overall number of programs, and the overall number of programs that the staff needs to monitor and maintain will increase, resulting in the need for the staff to perform more operation and maintenance operations and stronger management methods, which makes the overall operation and maintenance difficulty and cost higher than before.

[0045] Although the existing technology uses k8s to solve the above technical problems, because k8s is a tool that gives up convenience in order to obtain more powerful functions, the staff needs to set the parameter information of each configuration and interface in k8s before using k8s, and also needs to set the corresponding ideal configuration and control loop for each configuration. The setting process of its core control loop is very complicated, which requires the staff to have a high level of technical skills; and in actual use, according to the level of the core control loop designed by the staff, k8s will have different degrees of confusion, making k8s unable to recognize user instructions or unable to operate and maintain the server. It can be seen that the method of using k8s to operate and maintain the server is difficult to be widely used.

[0046] In order to solve the above technical problems, this application provides an operation and maintenance method based on a microservice architecture that is simple to use, has a low technical threshold, low operation and maintenance difficulty, and low operation and maintenance cost. Please refer to Figure 1 , Figure 1 A flowchart of a server operation and maintenance method provided in the present application is applied to a processor in the operation and maintenance server, the operation and maintenance server is connected to a client and a program server respectively, and the server operation and maintenance method includes:

[0047] S1: Acquire registration information corresponding to a program generated by the program server when detecting that a program is started by the program server itself;

[0048] Program servers refer to servers that staff need to operate and maintain. These servers are servers that use a microservice architecture. Program servers usually contain multiple programs that implement a single function. Clients need to obtain some parameter information when these programs are running in the program server to facilitate the staff to operate and maintain these program servers.

[0049] An operation and maintenance server is set up between the client and the program server. The purpose of setting up the operation and maintenance server is to transfer some steps that originally require manual operation by the staff on the client to be automatically executed on the operation and maintenance server, so as to achieve the purpose of reducing technical barriers and operation and maintenance difficulties. Specifically, first, the program server will detect the running status of each program in itself. When the program server detects that a program is started in itself, the program server will record some characteristic information of the program, such as port number, process number, API (Application Programming Interface) and program name and other characteristic information. Then, the program server will package the characteristic information of the program together with some characteristic information of the program server itself (such as ip (Internet Protocol) address or server name and other characteristic information) into a registration information, and send the registration information to the operation and maintenance server. The registration information obtained by the operation and maintenance server includes the characteristic information of the program itself and the characteristic information of the server where the program is located, so that the operation and maintenance server can find which programs are currently running and where these programs are located.

[0050] S2: storing the registration information in a preset registration information library;

[0051] In order to reduce the cost and difficulty of operation and maintenance, it is understandable that the unactivated programs in the program server have no effect on the program server itself. Therefore, when operating and maintaining the program server, it is only necessary to pay attention to the active programs in the program server, that is, to pay attention to the activated programs. In order to simply and accurately identify the active programs in the server, when the registration information sent by the program server is obtained, it is stored in the preset registration information library. It can be seen that because the program server will only send registration information when it detects that a program is started, the registration information stored in the preset registration information library is all activated programs. The operation and maintenance server only needs to know which programs are active programs through the preset registration information library. Further, in order to more accurately identify active programs, when the program is offline or closed, the program server can also send offline information to the operation and maintenance server so that the operation and maintenance server can delete the registration information of the offline program in the preset registration information library; or the operation and maintenance server can also detect in real time how long each registration information has not been used, and if it has not been used for too long, it can also be deleted; in this way, the registration information in the preset registration information library is updated in real time.

[0052] S3: for any registration information stored in the preset registration information library, obtaining the running parameter information of the program corresponding to the registration information in the program server;

[0053] When obtaining the operation parameter information, different operation parameter information is obtained for programs with different functions and roles. For example, when obtaining the operation parameter information of a program used to record work logs in a program server, it is usually necessary to obtain information such as the recording time when the program records each work log, whether an error log is found during recording, the number of error logs found, and whether the work log is successfully recorded. The operation parameter information obtained needs to be information that can show whether the program is running normally and whether the server function corresponding to the program is running normally (such as whether the program recording the log itself is normal and whether the log recorded by the program recording the log is normal). In actual applications, for each program active in the program server, that is, for programs whose registration information exists in the preset registration information library, it is necessary to obtain the operation parameter information of these programs.

[0054] S4: Send all operating parameter information to the client.

[0055] After obtaining the operating parameter information of these active programs, the operating parameter information is finally sent to the client for the staff to view. It can be seen that when the staff needs to operate and maintain a program in a program server, they only need to view it on the client. The specific operation and maintenance process is automatically implemented by the operation and maintenance server, and there is no need to place too many requirements on the staff.

[0056] In addition, in order to ensure the security and stability of the communication connection between the operation and maintenance server and the program server, the operation and maintenance server and the program server can be connected through SSH (Secure Shell). Specifically, SSH is an application layer-based protocol that provides security for remote login sessions and other network services. SSH is most commonly used for remote login and file transfer. Traditional protocols that implement this function are not safe (ftp, telnet, etc.) because they use plain text to transmit data. The data in the transmission process of SSH is encrypted, which is more secure. The operation and maintenance server supports two verification methods to connect to each program server: when mutual trust and secret-free login have been established between each program server, a public key-based verification method is used; when mutual trust and secret-free login have not been established between each node, a password-based verification method is used.

[0057] In summary, by obtaining the registration information corresponding to the program generated by the program server when detecting that the program server itself has a program started, the registration information is stored in the preset registration information library, and for any registration information stored in the preset registration information library, the operating parameter information of the program corresponding to the registration information in the program server is obtained, and all the operating parameter information is sent to the client. The operation and maintenance server is used to automatically obtain the operating parameter information of each program in the program server and automatically send it to the client, so that the staff does not need to manually operate and maintain the program server, and the staff does not need to invest in learning costs to learn to use the operation and maintenance tools, which reduces the technical threshold and technical requirements for the staff, and is conducive to wide application.

[0058] Based on the above embodiments:

[0059] As a preferred embodiment, after storing the registration information in the preset registration information library, the method further includes:

[0060] Start recording the idle time of registration information;

[0061] When it is detected that the idle time is longer than the preset time, the uncalled time is cleared and the registration information is removed from the preset registration information library;

[0062] When it is detected that the idle time is not greater than the preset time and the registration information is called by any program in the program server, the idle time is cleared.

[0063] In order to reduce the difficulty and cost of operation and maintenance, in this application, it is considered that the unstarted programs in the program server have no effect on the program server itself. Therefore, when operating and maintaining the program server, it is only necessary to pay attention to the active programs in the program server, that is, to pay attention to the started programs. In order to update the currently running programs in real time, it is necessary to find out which started programs have been offline in time, and it is necessary to determine whether the started programs are running normally. Specifically, when a program is started, if the program server or other servers need to use the program to implement certain functions, these servers need to call the registration information in the operation and maintenance server to obtain the location of the program in order to use the program. It can be seen that if a program is in a normal running state, it will often be called by various servers; if a started program has no server call for a long time, this may indicate that the program has been closed or offline by the program server, and other servers will no longer call the program. Based on this, in actual applications, after adding a registration information to the preset registration information library, it starts to record in real time how long the registration information has not been called. If it has not been called for a long time, it means that the program has been closed by the program server or offline, and the registration information can be deleted at this time; if it is detected that the registration information has been called, it will start recording the length of time it has not been called. Based on this, by recording the idle time of each registration information, it is possible to find out in real time which programs have been offline, thereby avoiding the operation and maintenance of programs that have been offline, and avoiding unnecessary increase in operation and maintenance difficulty and cost.

[0064] As a preferred embodiment, after storing the registration information in the preset registration information library, the method further includes:

[0065] All registration information in the preset registration information library is sent to the program server so that the program in the program server can call other programs in the program server.

[0066] In order to improve the availability, in this application, considering that programs can usually establish a connection and jointly implement a certain function, based on this, in order for a program to simply establish a connection with another program, all the registration information in the preset registration information library can be sent to the program server, so that each program in the program server knows which programs are currently running, and also knows the specific location and information of these running programs. Specifically, it can be achieved by querying the API. When the program server sends the registration information to the operation and maintenance server, the registration information contains the program's API. The available program instances can be queried through the API, which is equivalent to querying which programs can be called now through the API. When a program needs to call another program, after obtaining the registration information of the called program from the operation and maintenance server, it detects whether its API can be called. If it can, a connection is established for calling. Based on this, by sending all the registration information to the program server, it is easy to establish a connection between programs and jointly implement a certain function, thereby improving the availability of the server.

[0067] As a preferred embodiment, it also includes:

[0068] When receiving a user instruction, determining the registration information corresponding to the user instruction;

[0069] Determine the program corresponding to the registration information;

[0070] Using user instructions to control the running status of the program through the program server;

[0071] After the control of the program's running state is completed, the program's running parameter information is obtained;

[0072] Send the program's running parameter information to the client.

[0073] In order to control the program server, in this application, considering that in actual use, the staff may have the need to actively open or close a program, update the program version or uninstall the program, so it is necessary to control the program server according to user instructions. Specifically, since the characteristic information of the program server and the characteristic information of the program are known to the client and the staff, the staff does not need to additionally determine the specific address of the program server and the program. The staff only needs to enter fixed instructions to open or close a program and update the program version. For example, when it is necessary to actively open a program, the staff enters a shell script on the client and sends it to the operation and maintenance server. The operation and maintenance server uses the script to complete the remote opening, closing or restarting of a program through the program server; when it is necessary to update the program version or obtain the program log, the staff also enters the SFTP (SSH File Transfer Protocol) script on the client and sends it to the operation and maintenance server. The operation and maintenance server uses the script to complete the download of log files and the upload of program update packages through the program server; in addition, Linux commands, such as top, free, ps and other instructions, can also be executed to actively collect certain data information in the program or program server. Please refer to Figure 2 , Figure 2 A structural diagram of a server operation and maintenance system provided for this application, the operation and maintenance client is the operation end for staff and users, the operation and maintenance service cluster serves as the operation and maintenance server, and each server in the streaming media storage and management platform service cluster composed of servers such as the access service cluster and the transfer service cluster serves as a program server. Users or staff send instructions such as log download, program upgrade and process monitoring to the operation and maintenance service cluster through the operation and maintenance client, and the operation and maintenance service cluster performs operations such as the above examples according to the instructions. Based on this, fixed instructions are input through the client, and the operation and maintenance server performs the corresponding control operations. On the premise of realizing the control of the program server, the staff does not need to master the more difficult control methods, which reduces the difficulty of controlling the program server.

[0074] As a preferred embodiment, the operation and maintenance server is further connected to the registration server to obtain registration information corresponding to the program generated by the program server when detecting that the program server itself has a program started, including:

[0075] The registration server obtains registration information corresponding to the program generated by the program server when it detects that the program server itself has a program started.

[0076] In order to improve availability, in this application, the operation and maintenance function is considered to be a complete functional module; and after the program server generates the registration information of the program, it needs to authenticate the registration information through the registration center's function to make the registration information safe and usable. The registration center is a network structure, which verifies the registration information and generates the corresponding encryption and decryption information and digital signature public key, etc., and the registration center is also a complete functional module. It can be seen that if both complete functional modules are placed in the operation and maintenance server, not only will the readability and coupling be reduced due to the long code, but also when the operation and maintenance server itself has problems, both the operation and maintenance and the registration center functions will be unavailable.

[0077] Based on this, it is necessary to separate the two functions of operation and maintenance and registration center. Please refer to Figure 2 , Figure 2 A structural diagram of a server operation and maintenance system provided for this application, in which the operation and maintenance client is the operating end for staff and users, the operation and maintenance service cluster serves as the operation and maintenance server, and each server in the streaming media storage and management platform service cluster composed of servers such as the access service cluster and the transfer service cluster serves as a program server. These program servers will send registration information to the registration center, and the operation and maintenance server will obtain registration information containing features such as IP address, port and process number from the registration center. The registration center itself is set as a separate server or a separate server cluster between the program service cluster and the operation and maintenance service cluster.

[0078] Considering that operation and maintenance is a function that needs to be run in real time, and the registration center only makes the registration information available intermittently when it is generated, it can be seen that the priority of the registration center is not as high as that of operation and maintenance. Therefore, the registration center function can be set up separately on a secondary server, and the server is used as a registration server. The registration server is set between the program server and the operation and maintenance server. After the program server generates the registration information, it makes it available through the registration server, and maintains a program registration table on the registration server to record the registration information. The operation and maintenance server can obtain the program registration table from the registration server; and the operation and maintenance server provides an interface to the client for the staff to view; for example, it can be a RestAPI interface, which specifically includes a program list query interface, a program start interface, a program stop interface, a program restart interface, a program log file download interface, a program package upgrade interface, and a program monitoring history information query interface. Based on this, by separating the two functions of the registration center and operation and maintenance, when one of the functions is unavailable, the other function can be guaranteed to be available normally, thereby improving the overall availability.

[0079] As a preferred embodiment, after storing the registration information in the preset registration information library, the method further includes:

[0080] When obtaining offline information corresponding to a program generated by the program server when detecting that a program on the program server itself is closed, determining registration information corresponding to the offline information in a preset registration information database;

[0081] The registration information corresponding to the offline information is removed from the preset registration information library.

[0082] In order to update the preset registration information base in time, in this application, considering that the unactivated programs in the program server have no effect on the program server itself, when operating and maintaining the program server, it is only necessary to pay attention to the active programs in the program server, that is, it is necessary to pay attention to the activated programs. In order to update the currently running programs in real time, it is necessary to find out in time which programs that have been activated have been offline. Specifically, it can be detected by the program server itself, which detects whether there are programs offline among the programs that have been activated in the program server (for example, the staff actively operates offline or offline due to abnormal reasons such as program jamming and flashing). If detected, offline information indicating that the program is offline is generated and sent to the operation and maintenance server. The offline information contains the characteristic information of the program and the server characteristic information, etc., so that the operation and maintenance server can distinguish. After obtaining the offline information, the operation and maintenance server will find the registration information corresponding to the offline information in the preset registration information base, and then delete it to indicate that the program corresponding to the registration information has been offline. Based on this, the preset registration information base can be updated in time.

[0083] As a preferred embodiment, after obtaining the running parameter information of the program corresponding to the registration information in the program server, the method further includes:

[0084] Storing the operating parameter information in a preset parameter information library;

[0085] Determine the running trend of each program in the program server according to the running parameter information in the preset parameter information library;

[0086] Send the running trends of each program to the client.

[0087] In order to further reduce the operation and maintenance costs, in this application, it is considered that in the operation and maintenance process of the program server or program, predicting the future trend of the server or program is also an important part of the operation and maintenance process. In the prior art, it is usually determined manually based on the operation parameter information detected multiple times, and the future trend of the program server / program is predicted based on its trend. Based on this, the operation trend can be determined by the operation and maintenance server instead of manually. Specifically, after each acquisition of the program's operation parameter information, the operation parameter information is stored in a preset parameter information library, and the relationship between the program's operation parameters and time is determined based on the operation parameter information obtained at multiple different times in the preset parameter information library, thereby determining the operation trend of the program. For example, if the operation parameter is the utilization rate of a program for the server CPU, the utilization rate at a certain moment is 1%, the utilization rate at the next moment is 2%, and the utilization rate at the next moment is 3%. Based on this, it can be determined that the utilization rate of the program for the server CPU is constantly increasing, thereby determining that its operation trend is an upward trend. After obtaining the running trends of each program, they are sent to the client. Users can directly predict the future direction of the program based on the running trends. There is no need to determine the running trends of the program, which further reduces the operation and maintenance costs.

[0088] Please refer to Figure 3 , Figure 3 A schematic diagram of the structure of a server operation and maintenance device provided in this application includes:

[0089] A memory 21, used for storing computer programs;

[0090] The processor 22 is used to implement the steps of the server operation and maintenance method as described above when executing a computer program.

[0091] For a detailed introduction to a server operation and maintenance device provided in the present application, please refer to the embodiment of the above-mentioned server operation and maintenance method, and the present application will not go into details here.

[0092] The present application also provides an operation and maintenance server, including an operation and maintenance server body, and also including an operation and maintenance device of the server as described above;

[0093] The operation and maintenance server body is connected to the operation and maintenance device of the server.

[0094] For a detailed introduction to an operation and maintenance server provided in the present application, please refer to the embodiment of the operation and maintenance method of the above-mentioned server, and the present application will not go into details here.

[0095] The present application also provides a server operation and maintenance system, including a client and a plurality of program servers, and also including the operation and maintenance server as described above;

[0096] The operation and maintenance server is connected to the client and multiple program servers respectively.

[0097] For a detailed introduction to a server operation and maintenance system provided in the present application, please refer to the embodiment of the above-mentioned server operation and maintenance method, and the present application will not go into details here.

[0098] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0099] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

Claims

1. A server operation and maintenance method, characterized in that: A processor applied to an operation and maintenance server, wherein the operation and maintenance server is connected to a client and a program server respectively, and the operation and maintenance method of the server includes: Acquire registration information corresponding to the program generated by the program server when detecting that the program server itself has a program started; the program server refers to a server that the staff needs to operate and maintain; the registration information is obtained by the following steps: when the program server detects that the program is started in itself, the program server records the characteristic information of the program, including the port number, process number, application programming interface and program name; the program server packages the characteristic information of the program together with the characteristic information of the program server itself into the registration information; Storing the registration information in a preset registration information library; For any of the registration information stored in the preset registration information library, obtaining the operating parameter information of the program corresponding to the registration information in the program server; the operating parameter information needs to be information that can show whether the program is running normally and whether the server function corresponding to the program is running normally; Send all the operating parameter information to the client.

2. The server operation and maintenance method according to claim 1, characterized in that: After storing the registration information in a preset registration information library, the method further includes: Start recording the idle time of the registration information; When it is detected that the idle time is longer than the preset time, the uncalled time is cleared and the registration information is removed from the preset registration information database; When it is detected that the idle time is not greater than the preset time and the registration information is called by any program in the program server, the idle time is cleared.

3. The server operation and maintenance method according to claim 1, characterized in that: After storing the registration information in a preset registration information library, the method further includes: All the registration information in the preset registration information library are sent to the program server, so that the program in the program server calls other programs in the program server.

4. The server operation and maintenance method according to claim 1, characterized in that: Also includes: When receiving a user instruction, determining the registration information corresponding to the user instruction; Determining the program corresponding to the registration information; Using the user instructions to control the running state of the program through the program server; When the control of the running state of the program is completed, obtaining the running parameter information of the program; The running parameter information of the program is sent to the client.

5. The server operation and maintenance method according to claim 1, characterized in that: The operation and maintenance server is also connected to the registration server to obtain registration information corresponding to the program generated by the program server when detecting that the program server itself has a program started, including: The registration information corresponding to the program generated by the program server when detecting that the program server itself has a program started is obtained through the registration server.

6. The server operation and maintenance method according to claim 1, characterized in that: After storing the registration information in a preset registration information library, the method further includes: When obtaining offline information corresponding to the program generated by the program server when detecting that the program server itself has a program closed, determining the registration information corresponding to the offline information in the preset registration information database; The registration information corresponding to the offline information is removed from the preset registration information database.

7. The server operation and maintenance method according to any one of claims 1 to 6, characterized in that: After acquiring the running parameter information of the program corresponding to the registration information in the program server, the method further includes: Storing the operating parameter information in a preset parameter information library; Determining the running trend of each of the programs in the program server according to the running parameter information in the preset parameter information library; The running trend of each of the programs is sent to the client.

8. A server operation and maintenance device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the server operation and maintenance method as described in any one of claims 1 to 7 when executing the computer program.

9. An operation and maintenance server, characterized in that: It includes an operation and maintenance server body, and also includes an operation and maintenance device for the server as claimed in claim 8; The operation and maintenance server body is connected to the operation and maintenance device of the server.

10. A server operation and maintenance system, characterized in that: It includes a client and a plurality of program servers, and also includes the operation and maintenance server as claimed in claim 9; The operation and maintenance server is connected to the client and the plurality of program servers respectively.

Citation Information

Patent Citations

  • Application program monitoring method and device

    CN112861191A

  • Self-adaptive data acquisition method, device and system

    CN113448819A