WO2018103521A1 - 服务器的监控方法、装置和存储介质 - Google Patents

服务器的监控方法、装置和存储介质 Download PDF

Info

Publication number
WO2018103521A1
WO2018103521A1 PCT/CN2017/111531 CN2017111531W WO2018103521A1 WO 2018103521 A1 WO2018103521 A1 WO 2018103521A1 CN 2017111531 W CN2017111531 W CN 2017111531W WO 2018103521 A1 WO2018103521 A1 WO 2018103521A1
Authority
WO
WIPO (PCT)
Prior art keywords
server
client
monitoring process
target monitoring
request
Prior art date
Application number
PCT/CN2017/111531
Other languages
English (en)
French (fr)
Inventor
侯坤明
Original Assignee
腾讯科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Publication of WO2018103521A1 publication Critical patent/WO2018103521A1/zh
Priority to US16/281,869 priority Critical patent/US10802906B2/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3006Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/327Alarm or error message display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3495Performance evaluation by tracing or monitoring for systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/04Processing captured monitoring data, e.g. for logfile generation
    • H04L43/045Processing captured monitoring data, e.g. for logfile generation for graphical visualisation of monitoring data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0751Error or fault detection not based on redundancy
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0793Remedial or corrective actions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3055Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment

Definitions

  • the embodiments of the present invention relate to the field of computers, and in particular, to a method, an apparatus, and a storage medium for monitoring a server.
  • FIG. 1 is a schematic diagram of an operating environment of a client according to the related art.
  • APP1 to NEW APP are independently developed, independently deployed, and each set of running environment.
  • APP1 includes node server (NODE SERVER), public gateway interface (CGI), programming language script (PAGE), and model (Model ), tools (Utils), request proxy (Request Proxy), process management (Process Mgr).
  • APP2 to NEW APP also deploy the above-mentioned operating environment, so that the coupling between the client and the entire service system is low, there is no unified operating environment and dependent environment, and there is no unified operation and maintenance deployment and service operation monitoring function, resulting in server monitoring. Low availability.
  • the server monitors the client
  • the monitoring information of the client and the target monitoring process are not combined to form a closed loop to further control the target monitoring process, resulting in low stability and low monitoring of the server monitoring, resulting in server monitoring. Low availability.
  • the embodiment of the invention provides a monitoring method, device and storage medium for a server, so as to at least solve the technical problem of low availability of server monitoring in the related art.
  • a monitoring method of a server includes: the server starts the target monitoring process of the client; after the server starts the target monitoring process, the server monitors whether the target monitoring process is abnormally exited; when the server detects that the target monitoring process is abnormally exited, the server sends the target to the preset terminal.
  • the alarm information indicating that the target monitoring process is abnormally exited, wherein the preset terminal sends an operation and maintenance instruction to the server according to the alarm information; the server maintains the target monitoring process according to the operation and maintenance instruction.
  • a monitoring device for a server includes: a startup unit configured to enable the server to start a target monitoring process of the client; and a monitoring unit configured to: after the server starts the target monitoring process, the server monitors whether the target monitoring process exits abnormally; the first sending unit When the server detects that the target monitoring process is abnormally exited, the server sends the alarm information to the preset terminal to indicate that the target monitoring process is abnormally exited, wherein the preset terminal sends an operation and maintenance instruction to the server according to the alarm information;
  • the unit is configured to enable the server to maintain the target monitoring process according to the operation and maintenance instructions.
  • a terminal configured to execute program code for performing the steps in the monitoring method of the server of the embodiment of the present invention.
  • a storage medium configured to store program code for performing the steps in the monitoring method of the server of the embodiment of the present invention.
  • a monitoring device of a server includes: one or more processors, and one or more memories storing instructions, wherein the instructions are executed by a processor, and the program unit to be executed by the processor comprises: a boot unit, which is set In order to enable the server to start the target monitoring process of the client; the monitoring unit is configured to enable the server to monitor whether the target monitoring process exits abnormally after the server starts the target monitoring process; the first sending unit is configured to detect that the target monitoring process is abnormal when the server detects When exiting, the server sends the alarm information to the preset terminal to indicate that the target monitoring process is abnormally exited, wherein the preset terminal sends an operation and maintenance instruction to the server according to the alarm information; the maintenance unit is configured to make the server according to the operation and maintenance instruction The target monitoring process is maintained.
  • the target monitoring process of the client is started by the server; after the server starts the target monitoring process, the server monitors whether the target monitoring process is abnormally exited; when the server detects that the target monitoring process is abnormally exited, the server sends the target monitoring process to the preset terminal.
  • the alarm information is used to indicate that the target monitoring process is abnormally exited.
  • the preset terminal sends an operation and maintenance instruction to the server according to the alarm information.
  • the server maintains the target monitoring process according to the operation and maintenance instruction, and achieves the purpose of monitoring the target process.
  • FIG. 1 is a schematic diagram of an operating environment of a client according to the related art
  • FIG. 2 is a schematic diagram of a hardware environment of a method for monitoring a server according to an embodiment of the present invention
  • FIG. 3 is a flowchart of a method for monitoring a server according to an embodiment of the present invention
  • FIG. 4 is a flowchart of another method for monitoring a server according to an embodiment of the present invention.
  • FIG. 5 is a flowchart of another method for monitoring a server according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of a service system architecture according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of another relationship of server monitoring according to an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of process management according to an embodiment of the present invention.
  • FIG. 9 is a schematic diagram of an operation monitoring interface of a management console according to an embodiment of the present invention.
  • FIG. 10 is a schematic diagram of a log list interface of a management console according to an embodiment of the present invention.
  • FIG. 11 is a schematic diagram of an interface of a cloud database web server according to an embodiment of the present invention.
  • FIG. 12 is a schematic diagram of a monitoring device of a server according to an embodiment of the present invention.
  • FIG. 13 is a schematic diagram of another monitoring device of a server according to an embodiment of the present invention.
  • FIG. 14 is a schematic diagram of another monitoring device of a server according to an embodiment of the present invention.
  • FIG. 15 is a schematic diagram of another monitoring device of a server according to an embodiment of the present invention.
  • FIG. 16 is a structural block diagram of a terminal according to an embodiment of the present invention.
  • an embodiment of a monitoring method of a server is provided.
  • the monitoring method of the foregoing server may be applied to a hardware environment composed of the server 202 and the terminal 204 as shown in FIG. 2 .
  • FIG. 2 is a schematic diagram of a hardware environment of a method for monitoring a server according to an embodiment of the present invention.
  • the server 202 is connected to the terminal 204 through a network.
  • the network includes but is not limited to a wide area network, a metropolitan area network, or a local area network.
  • the terminal 204 is not limited to a PC, a mobile phone, a tablet, or the like.
  • the monitoring method of the server in the embodiment of the present invention may be performed by the server 202, may be performed by the terminal 204, or may be jointly performed by the server 202 and the terminal 204.
  • the monitoring method of the server that the terminal 204 performs in the embodiment of the present invention may also be performed by a client installed thereon.
  • FIG. 3 is a flowchart of a method for monitoring a server according to an embodiment of the present invention. As shown in FIG. 3, the monitoring method of the server includes the following steps:
  • step S302 the server starts the target monitoring process of the client.
  • the server starts the target monitoring process of the client.
  • the server accesses the client.
  • the server monitors the client through the target monitoring process, where the target monitoring process is a process in which the server performs monitoring on the client.
  • the server can be deployed as a service system framework.
  • the service system is a service encapsulation service framework.
  • the device is encapsulated by the Node js operating environment to implement preset functions for monitoring the client.
  • the user's request is forwarded to the client port by using a web server, where the web server is a reverse proxy server, for example, the web server is an Nginx server, and the HTTP request is forwarded to the client port through the Nginx server, and is used for the client.
  • the monitoring server obtains the target monitoring process through the port of the client, and the target monitoring process can determine the running state of the client, and determine the resource allocation and scheduling of the system.
  • the Nginx server is a lightweight web server/reverse proxy server and email proxy server.
  • the server manages and monitors the accessed clients, and first starts the target monitoring process. After the startup target monitoring process is started, the target monitoring process can be restarted according to the preset restart condition to ensure that the target monitoring process is always running.
  • the preset restart condition is a condition for updating the client file, that is, the target monitoring process is smoothly restarted after the client file is updated, and when the domain value of the client is changed, the target monitoring process may be restarted through the calling interface of the client.
  • the preset restart condition may also be a condition when the server detects that the target monitoring process exits due to an abnormality, that is, when the target monitoring process exits abnormally, the target monitoring process is automatically restarted.
  • step S304 the server monitors whether the target monitoring process exits abnormally.
  • step S304 of the present invention after the server starts the target monitoring process, the server monitors whether the target monitoring process exits abnormally.
  • the target monitoring process After the server starts the target monitoring process, the target monitoring process starts running. During the running of the target monitoring process, the server can monitor the target monitoring process through the monitoring module of the target monitoring process, and monitor whether the target monitoring process exits abnormally due to the abnormal situation. If the server detects that the target monitoring process exits abnormally, step S308 is performed. If the server detects that the target monitoring process does not exit abnormally, the target monitoring process is continuously monitored.
  • the server of the embodiment monitors whether the target monitoring process exits abnormally, including whether the server monitors the client terminal process to exit abnormally.
  • Step S306 When the server detects that the target monitoring process is abnormally exiting, the server sends alarm information indicating that the target monitoring process is abnormally exited to the preset terminal.
  • step S306 of the present invention when the server detects that the target monitoring process is abnormally exited, the server sends an alarm message to the preset terminal to indicate that the target monitoring process is abnormally exited, wherein the preset terminal according to the alarm information
  • the server sends an operation and maintenance instruction.
  • the server After the server monitors that the target monitoring process is abnormally exited, when the server detects that the target monitoring process is abnormally exited, the server automatically restarts the target monitoring process, and sends an alarm message indicating that the target monitoring process is abnormally exited to the preset terminal.
  • the alarm information is an alarm message.
  • the preset terminal is a management terminal, for example, a mobile communication terminal, a tablet computer, a palmtop computer, and a mobile Internet device (MID), a PAD, and the like.
  • the phone number and the mailbox number of the preset terminal are configured by the configuration file.
  • the server detects that the target monitoring process is abnormally exited, the server sends the alarm information to the preset terminal by using the phone number and the mailbox number.
  • the management terminal determines the operation and maintenance method for solving the abnormal exit problem according to the reason that the management terminal explicitly exits the abnormality according to the alarm information, and the management terminal sends an operation and maintenance instruction for maintaining the target monitoring process to the server.
  • Step S308 the server maintains the target monitoring process according to the operation and maintenance instruction.
  • the server performs maintenance on the target monitoring process according to the operation and maintenance instruction.
  • the server After the server sends the alarm information indicating that the target monitoring process is abnormally exited to the preset terminal, the server receives the operation and maintenance instruction, and maintains the target monitoring process according to the operation and maintenance instruction, so as to prevent the target monitoring process from exiting abnormally due to the same reason again. To achieve the effect of improving the availability of server monitoring.
  • the server can display the real-time running status of the client, display the load status of the target monitoring process, and display the log file of the client in real time.
  • the server displays the real-time running status of the client through the management console, and displays the load status of the target monitoring process.
  • the log file of the client can be displayed in real time, so that the user can understand the real-time running status of the client, understand the load status of the target monitoring process, and can view and download the log file generated by the client in real time.
  • the log file of this embodiment is usually a record of some processing that has been completed for future reference, and has no fixed format, usually a text file, which can be opened with Notepad to view the content, or other formats.
  • the server can enable the client to perform data interaction with a third-party server, which is related to a specific business scenario.
  • the target monitoring process of the client is started by the server; after the server starts the target monitoring process, the server monitors whether the target monitoring process is different. If the server detects that the target monitoring process is abnormally exited, the server sends an alarm message to the preset terminal to indicate that the target monitoring process is abnormally exited.
  • the preset terminal sends an operation and maintenance instruction to the server according to the alarm information; The maintenance of the target monitoring process by the dimensional command can solve the technical problem of low availability of server monitoring in the related technology, thereby achieving the technical effect of improving the usability of the server monitoring.
  • the server restarts the target monitoring process.
  • FIG. 4 is a flow chart of another method of monitoring a server according to an embodiment of the present invention. As shown in FIG. 4, the monitoring method of the server further includes the following steps:
  • step S401 the server determines whether the service file of the client is updated.
  • step S401 of the present invention after the server starts the target monitoring process of the client, the server determines whether the service file of the client is updated.
  • the client's business file is updated, for example, the APP file is updated.
  • the server starts the target monitoring process, it is determined whether the service file of the client is updated. If it is determined that the service file of the client is updated, step S402 is performed.
  • step S402 the server restarts the target monitoring process.
  • step S402 of the present invention if the server determines that the service file of the client is updated, the server restarts the target monitoring process.
  • the server determines whether the service file of the client is updated, if it is determined that the service file of the client is updated, the server restarts the target monitoring process, and the process monitoring module of the server may restart the target monitoring process, and the target monitoring process may be restarted through the calling interface of the client. This keeps the target monitoring process running at all times.
  • the server determines whether the service file of the client is updated; if the server determines that the service file of the client is updated, the server Restarting the target monitoring process can be implemented through the framework of the preset service system deployed by the server.
  • the server determines whether the service file of the client is updated. If the server determines that the service file of the client is updated, the server restarts the target monitoring process, so that the target monitoring process is always running.
  • the server after the server starts the target monitoring process of the client, when the server detects that the target monitoring process exits abnormally, the server restarts the target monitoring process.
  • the server After the server starts the target monitoring process of the client, the server monitors the running state of the target process, and determines whether the target process has an abnormality, for example, determining whether the target process has an error. If the server detects that the target process is abnormal and exits, the server sends an alarm message to the management terminal, and automatically restarts the client process, so that the target monitoring process is always running.
  • the server starts the target monitoring process of the client, when the server detects that the target monitoring process exits abnormally, the server restarts the target monitoring process, which can be implemented by using a preset service system architecture deployed by the server.
  • the server displays the state of the client according to the target monitoring process, where the state of the client includes at least one of the following: the client Running status; load status of the client; log file of the client.
  • the server can display the status of the client through the visual management console.
  • the visual management console has a client running monitoring interface and a client log list interface, so that the visual management console can be used to view the running status of the client, and the log files generated by the APP can be viewed and downloaded in real time, thereby improving server monitoring. Availability.
  • the server displays the state of the client according to the target monitoring process, which can be implemented by the framework of the preset service system deployed by the server.
  • the server obtains the target monitoring process according to the processing result, wherein the processing result is obtained by processing the request of the client forwarded by the preset WEB server by the port of the client, and the request of the client is used to indicate that the requesting WEB server allows the client to execute the preset event.
  • the client port obtains the request of the client forwarded by the preset WEB server, wherein the preset WEB server may be an Nginx server, and the client request is used to indicate that the requesting WEB server allows the client to execute a preset event, which may be a hypertext transfer protocol ( Hyper Text Transfer Protocol (referred to as HTTP) request.
  • HTTP Hyper Text Transfer Protocol
  • the client's port processes the client's request, obtains the processing result, and the server obtains the processing result, and obtains the target monitoring process according to the processing result.
  • the server obtains the target monitoring process according to the processing result, which can be implemented by the server deploying the preset service system architecture.
  • the client includes multiple clients, and the server obtains the target monitoring process according to the processing result, where the server acquires a target monitoring process of each client according to the processing result of each client, where each client
  • the processing result is obtained by processing the request of each client forwarded by the preset WEB server by the port of each client.
  • the client includes a plurality of clients, and the port of each client acquires the request of each of the above-mentioned clients forwarded by the preset WEB server, wherein the preset WEB server may be an Nginx server, and each client's request is used to indicate the requesting WEB server. Allow the client corresponding to it to execute the preset event, which can be an HTTP request.
  • each client's port processes the request of the corresponding client, and obtains the processing result.
  • the server obtains the processing result, and obtains the target monitoring process according to the processing result.
  • the server of this embodiment does not manage the port, but allows the client to manage it internally, and then forwards it to the respective port through the preset WEB server for processing, thereby achieving the effect of improving the availability of the server monitoring.
  • the server listens to the preset port of the server, and obtains a request for instructing the client to execute the preset event.
  • the server sends a request to the client port, and the processing result obtained by processing the server request according to the client port obtains the target. Monitor the process.
  • FIG. 5 is a flowchart of another method for monitoring a server according to an embodiment of the present invention. As shown in FIG. 5, the monitoring method of the server further includes the following steps:
  • step S501 the server listens to the preset port of the server to obtain a request from the server.
  • the server intercepts the preset port of the server to obtain a request of the server, wherein the request of the server is used to instruct the requesting client to execute the preset event.
  • the server Before the server starts the target monitoring process of the client, if the external network server has sufficient resources, the server can directly listen to the preset port, and obtain a request for instructing the client to execute the preset event, wherein the preset port can be 80.
  • Port, port 80 is open for Hypertext Transfer Protocol and can be accessed via HTTP address plus ":80".
  • Step S502 the server sends a request of the server to the port of the client.
  • the server sends a request of the server to the port of the client, wherein the port of the client processes the request of the server, and the processing result is obtained.
  • the server After the server listens to the server's default port to get the server's request, the server sends a server request to the client's port.
  • the client's port receives the server's request, processes the server's request, and obtains the processing result.
  • the processing result is used to obtain the target monitoring process.
  • step S503 the server acquires the target monitoring process according to the processing result.
  • the server acquires the target monitoring process according to the processing result.
  • the server After the server sends a request to the server to the client, the server obtains the target monitoring process according to the processing result, that is, the server accesses the client and monitors the target monitoring process. Measurement.
  • the server can monitor whether the target monitoring process is abnormal during the running process, and monitor whether the client exits due to an abnormality during the running of the target monitoring process.
  • the server detects that the client exits abnormally, it sends an alarm message indicating that the target monitoring process is abnormal to the management terminal, and automatically restarts the target monitoring process.
  • the server listens to the preset port of the server, and obtains a request for instructing the client to execute the server of the preset event, and the server sends a request of the server to the port of the client, and processes the request of the server according to the port of the client.
  • the processing result obtains the target monitoring process, which can be implemented by the framework of the preset service system deployed by the server.
  • the server listens to the server's preset port to obtain a server request, wherein the server request is used to instruct the requesting client to execute a preset event; the server sends the server to the client's port.
  • the request wherein the client port processes the server request, and obtains the processing result; the server obtains the target monitoring process according to the processing result, and implements the acquisition of the target monitoring process.
  • the client includes multiple clients, and the server sends the server request to the client's port, including: the server distributes the server request to each client's port, where each client's port is to the server.
  • the request is processed to obtain the processing result of each client; the server obtaining the client process according to the processing result includes: the server acquires the client process of each client according to the processing result of each client.
  • the server After the server listens to the server's default port and obtains the server's request, the server sends a server request to each client's port, that is, the server's request is routed, and the domain name, path, and uniform resource locator of different clients may be used. The route is forwarded to the corresponding client.
  • Each client's port processes the request of the server that is forwarded by the route, and obtains the processing result of each client.
  • the server obtains the target monitoring process according to the processing result of each client, that is, the server accesses the client to monitor the target monitoring process.
  • the server is deployed with a WEB service system architecture encapsulated according to a preset function, and the WEB service system architecture is a high-availability WEB service system architecture.
  • the default features are packaged as installation packages and deployed on the server.
  • the server performs data interaction with the third-party server by calling the interface in a preset running environment and a preset dependency environment.
  • the server of this embodiment has a unified standard operating environment and a dependent environment, which may be a Node js running environment.
  • Node js is an open source, cross-platform, server-side and network application running environment for writing web applications like WEB servers.
  • the server interacts with a third-party server by calling an interface in a preset running environment and a preset dependency environment.
  • the calling interface is an Application Programming Interface (API), which is reserved for the operating system by the operating system.
  • API Application Programming Interface
  • the third-party server that performs data interaction with the server determines the service scenario according to the specific service, and can be a service back-end server.
  • the server manages and monitors the accessed client, and the target monitoring process is started. After the client file is updated, the target monitoring process is smoothly restarted. When the target monitoring process exits abnormally, the alarm message is sent to the management terminal and the target is automatically restarted. Monitor the process, and display the real-time running status of the client, the load status of the client process, and the log files generated when viewing and downloading the client. This implements the monitoring and target monitoring process for the client when the server monitors the client. The alarm information is combined to form a closed loop to further control the target monitoring process, which improves the availability of server monitoring.
  • the server of the embodiment of the present invention is deployed with a service system architecture, which is a service framework for performing functional encapsulation.
  • the server supports a Node js runtime environment, which is a service framework for functional encapsulation based on the Nodejs runtime environment.
  • FIG. 6 is a schematic diagram of a service system architecture in accordance with an embodiment of the present invention.
  • multiple clients APPs
  • the child process is a specific process running the APP
  • the process management APP process management
  • the version number is used to identify the version type of the service system architecture.
  • the node module (node_modules) is the dependency environment of the service system architecture, including common libraries (for example, express library, cookies library, and react library), and also includes a call interface (API).
  • API call interface
  • the dimension tool is the component used to maintain the server.
  • the target monitoring process of the server startup client is implemented by the service system architecture; after the server starts the target monitoring process, the server monitors whether the target monitoring process exits abnormally; when the server detects that the target monitoring process exits abnormally, the server sends the indication to the preset terminal for indicating The alarm information of the target monitoring process is abnormally exited.
  • the preset terminal sends an operation and maintenance instruction to the server according to the alarm information.
  • the server maintains the target monitoring process according to the operation and maintenance instruction, thereby improving the availability of the server monitoring.
  • FIG. 7 is a schematic diagram of another relationship of server monitoring according to an embodiment of the present invention. As shown in FIG. 7 , the entire monitoring process implementation involves the server interacting with multiple systems, including: a third-party server, a management terminal, a management console, a service back-end server, and a web server, wherein the web server is preferably an Nginx server.
  • the service system architecture is uniformly deployed to the servers that need to be installed.
  • the server manages and monitors the accessed client through the service system architecture, including starting the client process (APP process), and the client file (APP file) is updated to smoothly restart the client process, and the client process exits abnormally.
  • the management terminal sends a maintenance instruction for performing maintenance on the client process to the management console according to the alarm information, and the management console transmits the maintenance instruction to the process through process monitoring. Management to achieve management of client processes.
  • monitoring the abnormal exit status of the client terminal process by using process monitoring if the abnormal process of the APP sub-process exits, the process monitoring sends information to the process management that indicates that the abnormal process of the client terminal process is sent to the process management.
  • Management implements a restart of the client terminal process, which is also used to initiate the client terminal process.
  • the server provides a visual management console through the service system architecture.
  • the visual management console monitors the running status of the client process sent by the process, and can view the real-time running status of the client, the load status of the client process, and can be real-time. Viewing and downloading the log file generated by the client, the management terminal can receive information indicating the real-time running status of the client, the load status of the client process, log files, and the like.
  • the web server receives a request sent by the user, the request may be an HTTP request, and the web server forwards the request to the APP port.
  • the APP port processes the request and obtains the processing result, and the server obtains the client process according to the processing result.
  • the client process can be further sent to the user through the web server, thereby implementing the response of the web server to the request.
  • the client process interacts with the service backend server for data.
  • the running environment of the server can be a Node js running environment, and the dependent environment includes common libraries, such as an express library, a cookies library, a react library, and there is no limitation here, and a common business function is integrated, and the calling interface (API) is used. Data interaction with third-party services.
  • FIG. 8 is a schematic diagram of process management according to an embodiment of the present invention.
  • the service system architecture is deployed on the server that needs to be installed, and the client APP is deployed to the server through the system.
  • the APP process monitor receives a message indicating that the APP process has abnormal exit, the APP process monitor sends an instruction to the server to instruct the APP process to restart the APP process, and the process management module deployed in the server is used to indicate the APP process management.
  • the instruction to restart the APP process automatically restarts the process, and the APP process can be restarted by the post script.
  • the APP process monitor After monitoring the situation that the APP process is abnormally exited through the APP process monitoring, the APP process monitor sends a message to the management console to indicate that the APP process has abnormally exited, that is, it will be used to indicate that the APP process has abnormally exited. The message is reported to the management control platform. Through the management console, the real-time running status of the APP, the load of the APP process, and the log files generated by the APP can be viewed and downloaded in real time.
  • this embodiment reloads the client through a post script.
  • FIG. 9 is a schematic diagram of an operation monitoring interface of a management console according to an embodiment of the present invention.
  • the management console of the embodiment is implemented by deploying a service system architecture, and the operation monitoring interface of the management console includes: opening of a management console, introduction to a management console, monitoring, monitoring of an instance operation,
  • the instance log can be used to select a machine.
  • the external network-Guangzhou can be used to select an application.
  • the management console of this embodiment can also display an IP address, for example, the display IP address is 10.251.71.150, 10.251.64.7.
  • 10.250.100.183, 10.251.196.13 can also display information corresponding to the IP address, for example, the information corresponding to the IP address 10.251.71.150 is 14246.14256, the information corresponding to the IP address 10.251.64.7 is 25938.25948.25958.25968, the IP address is 10.250.
  • the information corresponding to 100.183 is 18145.18155
  • the information corresponding to the IP address 10.251.196.13 is 25616.25626.25636.25646.25656.25666.2...
  • the state corresponding to the IP address can also be displayed.
  • the state corresponding to the IP address is normal.
  • the embodiment can also display the running state of the central processing unit (CPU) and the memory usage, thereby realizing the display of the real-time running condition of the client and improving the availability of the server monitoring.
  • CPU central processing unit
  • FIG. 10 is a schematic diagram of a log list interface of a management console according to an embodiment of the present invention.
  • the log list interface of the management console includes: restart, introduction, monitoring, instance running monitoring, instance log, and resource of the management console, which can be used to select a machine, for example, an external network-Guangzhou-10.251. 71.150, which can be used to select an application, display logs, and corresponding log size, creation time, update time, and operation, thereby realizing real-time viewing and downloading of log files generated by the APP, thereby improving the availability of server monitoring.
  • the server of this embodiment can directly listen to port 80 through the service system architecture when the external network server has sufficient resources, and then the service system framework forwards the request route to the App for processing, thereby improving the availability of server monitoring.
  • the embodiment is based on the unified running environment of the Nodejs, the deployment plan, and the perfect monitoring management and the console, thereby realizing the technical effect of improving the availability of the server monitoring, thereby solving the technical problem of low availability of the server monitoring in the related art.
  • the application environment of the embodiment of the present invention may be, but is not limited to, the reference to the application environment in the foregoing embodiment, which is not described in this embodiment.
  • Embodiments of the present invention provide for implementing the foregoing server An optional specific application of the monitoring method.
  • the server of this embodiment deploys a service framework based on functional encapsulation of Node js.
  • Nodejs is mainly used to write web applications like web servers, which is similar to PHP and Python, and can be applied to web servers of cloud databases.
  • FIG. 11 is a schematic diagram of an interface of a cloud database web server according to an embodiment of the invention.
  • the cloud database web server of the embodiment can implement a target monitoring process of the startup client; after the server starts the target monitoring process, the server monitors whether the target monitoring process exits abnormally; when the server detects that the target monitoring process exits abnormally, The server sends an alarm message to the preset terminal to indicate that the target monitoring process is abnormally exited.
  • the preset terminal sends an operation and maintenance instruction to the server according to the alarm information.
  • the server maintains the target monitoring process according to the operation and maintenance instruction.
  • the cloud database includes a database (MySQL), a database management system (SQL Server), and also includes an instance list, a task list, a parameter template, an operation log, a database audit, a data transfer, a database synchronization, etc., and also includes an ID/example name, each The running status, specifications, network, intranet address, expiration time, and operation of the instance name achieve the effect of improving the availability of server monitoring.
  • the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation.
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, CD-ROM, including a number of instructions to make a terminal device (available).
  • a storage medium such as ROM/RAM, disk, CD-ROM, including a number of instructions to make a terminal device (available
  • the method described in various embodiments of the present invention is implemented by a mobile phone, a computer, a server, or a network device.
  • FIG. 12 is a schematic diagram of a monitoring device of a server according to an embodiment of the present invention.
  • the monitoring device of the server may include: a starting unit 10, a monitoring unit 20, a first transmitting unit 30, and a maintenance unit 40.
  • the boot unit 10 is configured to cause the server to initiate a target monitoring process of the client.
  • the server manages and monitors the accessed client, and first starts the target monitoring process through the startup unit 10.
  • the target monitoring process may be restarted according to the preset restart condition to ensure that the target monitoring process is always in the running state.
  • the preset restart condition is a condition for updating the client file, that is, the target monitoring process is smoothly restarted after the client file is updated, and when the domain value of the client is changed, the target monitoring process may be restarted through the calling interface of the client.
  • the preset restart condition may also be a condition when the server detects that the target monitoring process exits due to an abnormality, that is, when the target monitoring process exits abnormally, the target monitoring process is automatically restarted.
  • the monitoring unit 20 is configured to enable the server to monitor whether the target monitoring process exits abnormally after the server starts the target monitoring process.
  • the target monitoring process starts running.
  • the monitoring unit 20 enables the server to monitor the target monitoring process through the monitoring module of the target monitoring process, and monitor whether the target monitoring process is abnormally exited due to the occurrence of an abnormal situation. If the monitoring unit 20 causes the server to monitor that the target monitoring process exits abnormally, the server maintains the target monitoring process according to the operation and maintenance instruction. If the monitoring unit 20 causes the server to monitor that the target monitoring process does not exit abnormally, the monitoring unit 20 continues to monitor the target. The process is monitored.
  • the monitoring unit 20 of the embodiment causes the server to monitor whether the target monitoring process is abnormally exited, including causing the server to monitor whether the client terminal process exits abnormally.
  • the first sending unit 30 is configured to: when the server detects that the target monitoring process is abnormally exiting, the server sends the alarm information to the preset terminal to indicate that the target monitoring process is abnormally exited, wherein the preset terminal sends the alarm information to the server according to the alarm information. Operation and maintenance instructions.
  • the server After the monitoring unit 20 causes the server to monitor the target monitoring process to exit abnormally, when the server detects that the target monitoring process exits abnormally, the server automatically restarts the target monitoring process, and sends the server to the preset terminal to indicate the target through the first sending unit 30. Monitors the alarm information that the process exits abnormally.
  • the alarm information is an alarm message
  • the preset terminal is a management terminal, for example, a mobile communication terminal, a tablet computer, a palmtop computer, and a mobile Internet device (MID), a PAD, and the like.
  • the phone number, mailbox number, etc. of the preset terminal are configured by the configuration file.
  • the first sending unit 30 causes the server to send the alarm information to the preset terminal by using a telephone number, a mailbox number, or the like.
  • the management terminal determines the operation and maintenance method for solving the abnormal exit problem according to the reason that the management terminal explicitly exits the abnormality according to the alarm information, and the management terminal sends an operation and maintenance instruction for maintaining the target monitoring process to the server.
  • the maintenance unit 40 is configured to enable the server to maintain the target monitoring process according to the operation and maintenance instruction.
  • the server After the first sending unit 30 is configured to enable the server to send the alarm information indicating that the target monitoring process is abnormally exited to the preset terminal, the server receives the operation and maintenance instruction, and the maintenance unit 40 maintains the target monitoring process according to the operation and maintenance instruction. Therefore, the target monitoring process is prevented from exiting abnormally for the same reason again, thereby achieving the effect of improving the availability of server monitoring.
  • the server can display the real-time running status of the client, display the load status of the target monitoring process, and display the log file of the client in real time.
  • the server displays the real-time running status of the client through the management console, and displays the load status of the target monitoring process.
  • the log file of the client can be displayed in real time, so that the user can understand the real-time running status of the client, understand the load status of the target monitoring process, and can view and download the log file generated by the client in real time.
  • the server can enable the client to perform data interaction with a third-party server, which is related to a specific business scenario.
  • the above-mentioned starting unit 10, the monitoring unit 20, the first sending unit 30 and the maintenance unit 40 may be operated in the terminal as part of the device, and the functions implemented by the above modules may be performed by a processor in the terminal.
  • the terminal can also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, an applause computer, and a mobile Internet device (MID), a PAD, and the like.
  • FIG. 13 is a schematic diagram of another monitoring device of a server according to an embodiment of the present invention.
  • the monitoring device of the server may include: a starting unit 10, a monitoring unit 20, a first transmitting unit 30, and a maintenance unit 40.
  • the monitoring device of the server further includes: a determining unit 50 and a first restarting unit 60.
  • the activation unit 10, the monitoring unit 20, the first sending unit 30, and the maintenance unit 40 of the embodiment have the same functions as those of the monitoring device of the server shown in FIG. 12, and details are not described herein again.
  • the determining unit 50 is configured to cause the server to determine whether the service file of the client is updated after the server starts the target monitoring process of the client.
  • the client's business file is updated, for example, the APP file is updated.
  • the determining unit 50 causes the server to determine whether the service file of the client is updated.
  • the first restarting unit 60 is configured to restart the target monitoring process when the server determines that the service file of the client is updated.
  • the first restarting unit 60 causes the server to restart the target monitoring process, and the first restarting unit 60 may be configured by the server.
  • the process management module restarts the target monitoring process, and the target monitoring process can be restarted through the calling interface of the client, so that the target monitoring process is always running.
  • the foregoing determining unit 50 and the first restarting unit 60 may be run in the terminal as part of the device, and the module implementation may be implemented by a processor in the terminal.
  • the functions of the terminal can also be smart devices (such as Android phones, iOS phones, etc.), tablet computers, applause computers, and mobile Internet devices (MID), PAD and other terminal devices.
  • FIG. 14 is a schematic diagram of another monitoring device of a server according to an embodiment of the present invention.
  • the monitoring device of the server may include: a starting unit 10, a monitoring unit 20, a first transmitting unit 30, and a maintenance unit 40.
  • the monitoring device of the server further includes: a second restarting unit 70.
  • the activation unit 10, the monitoring unit 20, the first sending unit 30, and the maintenance unit 40 of the embodiment have the same functions as those of the monitoring device of the server shown in FIG. 12, and details are not described herein again.
  • the second restarting unit 70 is configured to restart the target monitoring process when the server detects that the target monitoring process abnormally exits after the server starts the target monitoring process of the client.
  • the server monitors the running state of the target process, and determines whether the target process has an abnormality, for example, determining whether the target process has an error. If the monitoring unit 20 causes the server to detect that the target process is abnormal and exits, the server sends an alarm message to the management terminal, and the second restart unit 70 automatically restarts the client process, so that the target monitoring process is always kept running.
  • the second restart unit 70 may be operated in the terminal as a part of the device, and the function implemented by the module may be performed by a processor in the terminal, and the terminal may also be a smart phone (such as an Android mobile phone or an iOS device). Mobile phones, etc., tablet computers, applause computers, and mobile Internet devices (MID), PAD and other terminal devices.
  • a smart phone such as an Android mobile phone or an iOS device.
  • MID mobile Internet devices
  • the monitoring device of the server may include: a starting unit 10, a monitoring unit 20, a first transmitting unit 30, and a maintenance unit 40.
  • the monitoring device of the server further includes: a display unit 80.
  • the starting unit 10 the monitoring unit 20, and the first sending list of this embodiment
  • the function of the element 30 and the maintenance unit 40 is the same as that of the monitoring device of the server of the embodiment shown in FIG. 12, and details are not described herein again.
  • the display unit 80 is configured to display, after the server starts the target monitoring process of the client, the server displays the state of the client according to the target monitoring process, where the state of the client includes at least one of: a running state of the client; a load state of the client; and a client Log file.
  • the display unit 80 can display the status of the client through the visual management console.
  • the visual management console has a client running monitoring interface and a client log list interface, so that the visual management console can be used to view the running status of the client, and the log files generated by the APP can be viewed and downloaded in real time, thereby improving server monitoring. Availability.
  • the above display unit 80 may be operated in the terminal as a part of the device, and the function implemented by the above module may be performed by a processor in the terminal, and the terminal may also be a smart phone (such as an Android mobile phone, an iOS mobile phone, etc.). ), tablet computers, applause computers, and mobile Internet devices (MID), PAD and other terminal devices.
  • a smart phone such as an Android mobile phone, an iOS mobile phone, etc.
  • tablet computers such as an Android mobile phone, an iOS mobile phone, etc.
  • applause computers such as mobile Internet devices (MID), PAD and other terminal devices.
  • MID mobile Internet devices
  • the apparatus shown in FIG. 12 to FIG. 15 further includes: a first acquiring unit, configured to: before the server starts the target monitoring process of the client, to enable the server to acquire the target monitoring process according to the processing result, where the processing result is The client's port is processed by the client's request forwarded by the default WEB server, and the client's request is used to indicate that the requesting WEB server allows the client to execute the preset event.
  • a first acquiring unit configured to: before the server starts the target monitoring process of the client, to enable the server to acquire the target monitoring process according to the processing result, where the processing result is The client's port is processed by the client's request forwarded by the default WEB server, and the client's request is used to indicate that the requesting WEB server allows the client to execute the preset event.
  • the client port obtains the request of the client forwarded by the preset WEB server, wherein the preset WEB server may be an Nginx server, and the client request is used to indicate that the requesting WEB server allows the client to execute a preset event, and may request the hypertext transfer protocol. .
  • the client's port processes the client's request, obtains the processing result, and the server obtains the processing result, and obtains the target monitoring process according to the processing result.
  • the client includes multiple clients, and the first obtaining unit is configured to enable the server to acquire a target monitoring process of each client according to the processing result of each client, wherein the processing result of each client is determined by each client. Port pair for each guest forwarded by the default WEB server The client's request is processed.
  • the client includes a plurality of clients, and the port of each client acquires the request of each of the above-mentioned clients forwarded by the preset WEB server, wherein the preset WEB server may be an Nginx server, and each client's request is used to indicate the requesting WEB server. Allow the client corresponding to it to execute the preset event, which can be an HTTP request.
  • the client of each client processes the request of the corresponding client, and obtains the processing result.
  • the first obtaining unit causes the server to obtain the processing result, and obtains the target monitoring process according to the processing result.
  • the foregoing first obtaining unit may be operated in the terminal as a part of the device, and the function implemented by the foregoing module may be performed by a processor in the terminal, and the terminal may also be a smart phone (such as an Android mobile phone or an iOS mobile phone). Etc.), tablet computers, applause computers, and mobile Internet devices (MID), PAD and other terminal devices.
  • a smart phone such as an Android mobile phone or an iOS mobile phone.
  • the apparatus shown in FIG. 12 to FIG. 15 further includes: a listening unit configured to enable the server to listen to the server's preset port to obtain a server request before the server starts the target monitoring process of the client, where the server The request is used to instruct the requesting client to execute the preset event; the second sending unit is configured to enable the server to send a request of the server to the port of the client, wherein the port of the client processes the request of the server to obtain a processing result; the second obtaining The unit is set to enable the server to obtain the target monitoring process according to the processing result.
  • the monitoring unit is configured to allow the server to listen to the preset port and obtain a request for requesting the client to execute the preset event, where the server is configured to start the target monitoring process of the client, and the external server has sufficient resources.
  • the port can be port 80.
  • Port 80 is open for Hypertext Transfer Protocol. You can access the website by adding ":80" to the HTTP address.
  • the second sending unit is configured to cause the server to send a request of the server to the port of the client after the server listens to the server's preset port to obtain the server's request.
  • the client's port receives the server's request, processes the server's request, and obtains the processing result.
  • the second obtaining unit is set to send a request for the server to the port of the client at the server After that, the server obtains the target monitoring process according to the processing result, that is, the server accesses the client, and monitors the target monitoring process.
  • the server can monitor whether the target monitoring process has an exception during the running process and exits due to an exception.
  • the second obtaining unit sends an alarm message indicating that the target monitoring process is abnormal to the management terminal, and automatically restarts the target monitoring process.
  • the client includes a plurality of clients
  • the second sending unit is configured to cause the server to distribute the request to each client's port, wherein each client's port processes the request to obtain a processing result of each client;
  • the second obtaining unit is configured to cause the server to acquire the client process of each client according to the processing result of each client.
  • the server After the server listens to the server's default port and obtains the server's request, the server sends a server request to each client's port, that is, the server's request is routed, and the domain name, path, and uniform resource locator of different clients may be used. The route is forwarded to the corresponding client.
  • Each client's port processes the request of the server that is forwarded by the route, and obtains the processing result of each client.
  • the server obtains the target monitoring process according to the processing result of each client, that is, the server accesses the client to monitor the target monitoring process.
  • the server is deployed with a WEB service system architecture encapsulated according to a preset function, and the WEB service system architecture is a high-availability WEB service system architecture, and the preset function is packaged into an installation package. Deployed on the server.
  • the server performs data interaction with the third-party server by calling the interface in a preset running environment and a preset dependency environment.
  • the server of this embodiment has a unified standard operating environment and a dependent environment, and the running environment can be determined by the third-party server that performs the data interaction with the server according to the application scenario of the specific service, and can be a service back-end server.
  • the foregoing monitoring unit, the second sending unit, and the second obtaining unit may be run in the terminal as part of the device, and may be performed by a processor in the terminal.
  • the functions implemented by the module, the terminal can also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, an applause computer, and a mobile Internet device (MID), a PAD, and the like.
  • the activation unit 10 in this embodiment may be configured to perform step S302 in the embodiment of the present application.
  • the monitoring unit 20 in this embodiment may be configured to perform step S304 in the embodiment of the present application.
  • the first sending unit 30 in the embodiment may be configured to perform step S306 in the embodiment of the present application, and the maintenance unit 40 in this embodiment may be configured to perform step S308 in the embodiment of the present application.
  • the server is configured to enable the server to start the target monitoring process of the client. After the server starts the target monitoring process, the monitoring unit 20 monitors whether the target monitoring process exits abnormally. When the server detects that the target monitoring process exits abnormally, the server passes.
  • the first sending unit 30 causes the server to send, to the preset terminal, alarm information for indicating that the target monitoring process is abnormally exited, wherein the preset terminal sends an operation and maintenance instruction to the server according to the alarm information, and the maintenance unit 40 causes the server to perform the operation and maintenance instruction according to the operation.
  • the maintenance of the target monitoring process can solve the technical problem of low availability of server monitoring in the related technology, and achieve the purpose of monitoring the target process, thereby realizing the technical effect of improving the availability of server monitoring, thereby solving the related art. Technical issues with low availability of server monitoring.
  • the above-mentioned units and modules are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to the contents disclosed in the above embodiments. It should be noted that the foregoing module may be implemented in a hardware environment as shown in FIG. 2 as part of the device, and may be implemented by software or by hardware, where the hardware environment includes a network environment.
  • a terminal for implementing the monitoring method of the server is further provided, wherein the terminal may be a computer terminal, and the computer terminal may be any one of the computer terminal groups.
  • the foregoing computer terminal may also be replaced with a terminal device such as a mobile terminal.
  • the computer terminal may be located in at least one network device of the plurality of network devices of the computer network.
  • FIG. 16 is a structural block diagram of a terminal according to an embodiment of the present invention.
  • the terminal may include one or more (only one shown in the figure) processor 161, memory 163, and transmission device 165.
  • the terminal may further include an input and output device 167.
  • the memory 163 can be used to store software programs and modules, such as the monitoring method of the server and the program instructions/modules corresponding to the device in the embodiment of the present invention.
  • the processor 161 executes the software program and the module stored in the memory 163.
  • Memory 163 may include high speed random access memory, and may also include non-volatile memory such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory.
  • memory 163 can further include memory remotely located relative to processor 161, which can be connected to the terminal over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • the transmission device 165 described above is for receiving or transmitting data via a network, and can also be used for data transmission between the processor and the memory. Specific examples of the above network may include a wired network and a wireless network.
  • the transmission device 165 includes a Network Interface Controller (NIC) that can be connected to other network devices and routers via a network cable to communicate with the Internet or a local area network.
  • the transmission device 165 is a Radio Frequency (RF) module for communicating with the Internet wirelessly.
  • NIC Network Interface Controller
  • RF Radio Frequency
  • the memory 163 is used to store an application.
  • the program code of the method steps of each optional or preferred embodiment of the foregoing method embodiments may be executed by the processor 161 by using the application program stored in the memory 163 to include:
  • the server starts the target monitoring process of the client
  • the server After the server starts the target monitoring process, the server monitors whether the target monitoring process exits abnormally;
  • the server When the server detects that the target monitoring process exits abnormally, the server sends the message to the preset terminal.
  • the alarm information indicating that the target monitoring process is abnormally exited, wherein the preset terminal sends an operation and maintenance instruction to the server according to the alarm information;
  • the server maintains the target monitoring process according to the operation and maintenance instructions.
  • the processor 161 is further configured to: after the server starts the target monitoring process of the client, the server determines whether the service file of the client is updated; if the server determines that the service file of the client is updated, the server restarts the target monitoring process.
  • the processor 161 is further configured to perform the following steps: after the server starts the target monitoring process of the client, when the server detects that the target monitoring process exits abnormally, the server restarts the target monitoring process.
  • the processor 161 is further configured to: after the server starts the target monitoring process of the client, the server displays the state of the client according to the target monitoring process, where the state of the client includes at least one of the following: a running state of the client; a load of the client Status; the client's log file.
  • the processor 161 is further configured to perform the following steps: before the server starts the target monitoring process of the client, the server acquires the target monitoring process according to the processing result, where the processing result is performed by the client port on the request of the client forwarded by the preset WEB server. The processing is obtained, and the client's request is used to indicate that the requesting WEB server allows the client to execute the preset event.
  • the processor 161 is further configured to: the client includes a plurality of clients, and the server acquires a target monitoring process of each client according to the processing result of each client, wherein the processing result of each client is configured by the port of each client.
  • the request of each client forwarded by the preset WEB server is processed.
  • the processor 161 is further configured to perform the following steps: before the server starts the target monitoring process of the client, the server listens to the server's preset port to obtain a server request, where the server request is used to instruct the requesting client to execute the preset event; Sending a request to the server to the client port, where the client's port processes the server's request and obtains the processing result; the server obtains the target monitoring process according to the processing result.
  • the processor 161 is further configured to: the client includes a plurality of clients, and the server distributes the server's request to each client's port, wherein each client's port processes the server's request to obtain each client's request. The result is processed; the server obtains the client process of each client according to the processing result of each client.
  • a solution for monitoring a server monitors the target monitoring process of the client; after the server starts the target monitoring process, the server monitors whether the target monitoring process exits abnormally; when the server detects that the target monitoring process exits abnormally, the server sends a preset terminal to indicate that the target monitoring process is abnormal.
  • the alarm information of the exit wherein the preset terminal sends an operation and maintenance instruction to the server according to the alarm information; the server maintains the target monitoring process according to the operation and maintenance instruction, and achieves the purpose of monitoring the target process, thereby improving server monitoring.
  • the technical effect of availability further solves the technical problem of low availability of server monitoring in the related art.
  • the terminal can be a smart phone (such as an Android mobile phone, an iOS mobile phone, etc.), a tablet computer, a palm computer, and a mobile Internet device (MID). Terminal equipment such as PAD.
  • Fig. 16 does not limit the structure of the above electronic device.
  • the terminal may also include more or fewer components (such as a network interface, display device, etc.) than shown in FIG. 16, or have a different configuration than that shown in FIG.
  • Embodiments of the present invention also provide a storage medium.
  • the foregoing storage medium may store program code, where the program code is used to execute the foregoing method embodiment. Provides steps in the program code for the server's monitoring method.
  • the foregoing storage medium may be located in any one of the computer terminal groups in the computer network, or in any one of the mobile terminal groups.
  • the storage medium is arranged to store program code for performing the following steps:
  • the server starts the target monitoring process of the client
  • the server After the server starts the target monitoring process, the server monitors whether the target monitoring process exits abnormally;
  • the server When the server detects that the target monitoring process is abnormally exited, the server sends an alarm message to the preset terminal to indicate that the target monitoring process is abnormally exited, wherein the preset terminal sends an operation and maintenance instruction to the server according to the alarm information;
  • the server maintains the target monitoring process according to the operation and maintenance instructions.
  • the storage medium is further configured to store program code for performing the following steps: after the server starts the target monitoring process of the client, the server determines whether the client's business file is updated; if the server determines that the client's business file is updated, the server Restart the target monitoring process; or when the server detects that the target monitoring process exits abnormally, the server restarts the target monitoring process.
  • the storage medium is further configured to store program code for performing the following steps: after the server starts the target monitoring process of the client, when the server detects that the target monitoring process exits abnormally, the server restarts the target monitoring process.
  • the storage medium is further configured to store program code for performing the following steps: after the server starts the target monitoring process of the client, the server displays the status of the client according to the target monitoring process, wherein the state of the client includes at least one of the following : The running state of the client; the load status of the client; the log file of the client.
  • the storage medium is further configured to store program code for performing the following steps: before the server starts the target monitoring process of the client, the server acquires the target monitoring process according to the processing result, wherein the processing result is determined by the client's port pair
  • the request of the client forwarded by the WEB server is processed, and the request of the client is used to indicate that the requesting WEB server allows the client to execute the preset event.
  • the storage medium is further configured to store program code for performing the following steps: the client includes a plurality of clients, and the server acquires a target monitoring process of each client according to the processing result of each client, wherein each client The processing result of the end is processed by the port of each client to the request of each client forwarded by the preset WEB server.
  • the storage medium is further configured to store program code for performing the following steps: before the server starts the target monitoring process of the client, the server listens to the server's preset port to obtain a request of the server, wherein the server's request is used to indicate The client is requested to execute a preset event; the server sends a server request to the client's port, wherein the client's port processes the server's request to obtain a processing result; and the server obtains the target monitoring process according to the processing result.
  • the storage medium is further configured to store program code for performing the steps of: the client includes a plurality of clients, and the server distributes the server's request to each client's port, wherein each client's port is to the server The request is processed to obtain the processing result of each client; the server acquires the client process of each client according to the processing result of each client.
  • the foregoing storage medium may include, but not limited to, a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, and a magnetic
  • ROM read-only memory
  • RAM random access memory
  • mobile hard disk a magnetic
  • magnetic A variety of media that can store program code, such as a disc or a disc.
  • a monitoring device of a server includes: one or more processors, and one or more memories storing instructions, wherein The instruction is executed by the processor, and the program unit to be executed by the processor comprises: a startup unit configured to enable the server to start a target monitoring process of the client; and a monitoring unit configured to enable the server to monitor the target monitoring process after the server starts the target monitoring process Whether the abnormality is exited; the first sending unit is configured to: when the server detects that the target monitoring process is abnormally exiting, the server sends the alarm information to the preset terminal to indicate that the target monitoring process is abnormally exited, wherein the preset terminal is based on the alarm information.
  • the operation and maintenance instruction is sent to the server; the maintenance unit is configured to enable the server to maintain the target monitoring process according to the operation and maintenance instruction.
  • the program unit further includes: a determining unit, configured to: after the server starts the target monitoring process of the client, cause the server to determine whether the service file of the client is updated; and the first restarting unit is configured to determine the service of the client at the server. When the file is updated, the server restarts the target monitoring process.
  • the program unit further includes: a second restarting unit, configured to restart the target monitoring process when the server detects that the target monitoring process abnormally exits after the server starts the target monitoring process of the client.
  • a second restarting unit configured to restart the target monitoring process when the server detects that the target monitoring process abnormally exits after the server starts the target monitoring process of the client.
  • the program unit further includes: a display unit, configured to: after the server starts the target monitoring process of the client, the server displays the state of the client according to the target monitoring process, where the state of the client includes at least one of the following: the running state of the client ; the load status of the client; the log file of the client.
  • a display unit configured to: after the server starts the target monitoring process of the client, the server displays the state of the client according to the target monitoring process, where the state of the client includes at least one of the following: the running state of the client ; the load status of the client; the log file of the client.
  • the program unit further includes: a first obtaining unit, configured to enable the server to obtain a target monitoring process according to the processing result before the server starts the target monitoring process of the client, where the processing result is determined by the client port pair by the preset WEB.
  • the request of the client forwarded by the server is processed, and the request of the client is used to indicate that the requesting WEB server allows the client to execute the preset event.
  • the client includes multiple clients, and the first obtaining unit is configured to enable the server to acquire a target monitoring process of each client according to the processing result of each client, wherein the processing result of each client is determined by each client.
  • the port processes the request of each client forwarded by the default WEB server.
  • the program unit further includes: a listening unit, configured to enable the server to listen to the server's preset port to obtain a server request before the server starts the target monitoring process of the client, wherein the server request is used to indicate that the requesting client performs the request.
  • a second sending unit configured to cause the server to send a request to the server to the server, wherein the client port processes the server request to obtain a processing result; and the second obtaining unit is configured to cause the server to The result is processed to obtain the target monitoring process.
  • the second sending unit is configured to cause the server to distribute the request to each client's port, wherein each client's port processes the request to obtain a processing result of each client; and the second obtaining unit is configured to enable The server obtains the target monitoring process of each client according to the processing result of each client.
  • the integrated unit in the above embodiment if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in the above-described computer readable storage medium.
  • the technical solution of the present invention may contribute to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions are included to cause one or more computer devices (which may be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the disclosed client may It is achieved in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, unit or module, and may be electrical or otherwise.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the target monitoring process of the client is started by the server; after the server starts the target monitoring process, the server monitors whether the target monitoring process is abnormally exited; when the server detects that the target monitoring process is abnormally exited, the server sends the target monitoring process to the preset terminal.
  • the alarm information is used to indicate that the target monitoring process is abnormally exited.
  • the preset terminal sends an operation and maintenance instruction to the server according to the alarm information.
  • the server maintains the target monitoring process according to the operation and maintenance instruction, and achieves the purpose of monitoring the target process.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mathematical Physics (AREA)
  • Data Mining & Analysis (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Hardware Design (AREA)
  • Computer And Data Communications (AREA)
  • Debugging And Monitoring (AREA)

Abstract

一种服务器的监控方法、装置和存储介质。其中,该方法包括:服务器启动客户端的目标监控进程(S302);在服务器启动目标监控进程之后,服务器监测目标监控进程是否异常退出(S304);当服务器监测到目标监控进程异常退出时,服务器向预设终端发送用于指示目标监控进程异常退出的告警信息(S306),其中,预设终端根据告警信息向服务器发送运维指令;服务器根据运维指令对目标监控进程进行维护(S308)。上述方法解决了相关技术中服务器监控的可用性低的技术问题。

Description

服务器的监控方法、装置和存储介质
本申请要求于2016年12月08日提交中国专利局、优先权号为2016111238313、发明名称为“服务器的监控方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明实施例涉及计算机领域,具体而言,涉及一种服务器的监控方法、装置和存储介质。
背景技术
目前,在服务器对客户端进行监控时,主要的方式为多个客户端(APP)独立开发,独立部署,各自一套运行环境。图1是根据相关技术中一种客户端的运行环境示意图。如图1所示,APP1至NEW APP独立开发,独立部署,各自一套运行环境,比如,APP1包括节点服务器(NODE SERVER)、公共网关接口(CGI)、编程语言脚本(PAGE)、模型(Model)、工具(Utils)、请求代理(Request Proxy)、进程管理(Process Mgr)。APP2至NEW APP同样各自部署上述运行环境,从而使得客户端与整个服务系统的耦合性低,没有统一的运行环境和依赖环境,也没有统一的运维部署和业务运行监控功能,导致服务器监控的可用性低。
另外,当服务器监控客户端时,没有将对客户端的监控与目标监控进程的告警信息进行结合,以形成闭环进一步控制目标监控进程,导致服务器监控的稳定性和监控性低,导致使服务器监控的可用性低。
针对上述服务器监控的可用性低的问题,目前尚未提出有效的解决方案。
发明内容
本发明实施例提供了一种服务器的监控方法、装置和存储介质,以至少解决相关技术中服务器监控的可用性低的技术问题。
根据本发明实施例的一个方面,提供了一种服务器的监控方法。该服务器的监控方法包括:服务器启动客户端的目标监控进程;在服务器启动目标监控进程之后,服务器监测目标监控进程是否异常退出;当服务器监测到目标监控进程异常退出时,服务器向预设终端发送用于指示目标监控进程异常退出的告警信息,其中,预设终端根据告警信息向服务器发送运维指令;服务器根据运维指令对目标监控进程进行维护。
根据本发明实施例的另一方面,还提供了一种服务器的监控装置。该服务器的监控装置包括:启动单元,被设置为使服务器启动客户端的目标监控进程;监测单元,被设置为使在服务器启动目标监控进程之后,服务器监测目标监控进程是否异常退出;第一发送单元,被设置为当服务器监测到目标监控进程异常退出时,使服务器向预设终端发送用于指示目标监控进程异常退出的告警信息,其中,预设终端根据告警信息向服务器发送运维指令;维护单元,被设置为使服务器根据运维指令对目标监控进程进行维护。
根据本发明实施例的另一方面,还提供了一种终端,其中,终端被设置为执行程序代码,程序代码用于执行本发明实施例的服务器的监控方法中的步骤。
根据本发明实施例的另一方面,还提供了一种存储介质,其中,存储介质被设置为存储程序代码,程序代码用于执行本发明实施例的服务器的监控方法中的步骤。
根据本发明实施例的另一方面,还提供了一种服务器的监控设备。该设备包括:一个或多个处理器,以及一个或多个存储指令的存储器,其中,指令由处理器执行,处理器所要执行的程序单元包括:启动单元,被设置 为使服务器启动客户端的目标监控进程;监测单元,被设置为在服务器启动目标监控进程之后,使服务器监测目标监控进程是否异常退出;第一发送单元,被设置为当服务器监测到目标监控进程异常退出时,使服务器向预设终端发送用于指示目标监控进程异常退出的告警信息,其中,预设终端根据告警信息向服务器发送运维指令;维护单元,被设置为使服务器根据运维指令对目标监控进程进行维护。
在本发明实施例中,通过服务器启动客户端的目标监控进程;在服务器启动目标监控进程之后,服务器监测目标监控进程是否异常退出;当服务器监测到目标监控进程异常退出时,服务器向预设终端发送用于指示目标监控进程异常退出的告警信息,其中,预设终端根据告警信息向服务器发送运维指令;服务器根据运维指令对目标监控进程进行维护,达到了对把目标进程进行监控的目的,从而实现了提高服务器监控的可用性的技术效果,进而解决了相关技术中服务器监控的可用性低的技术问题。
附图说明
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1是根据相关技术中一种客户端的运行环境示意图;
图2是根据本发明实施例的一种服务器的监控方法的硬件环境的示意图;
图3是根据本发明实施例的一种服务器的监控方法的流程图;
图4是根据本发明实施例的另一种服务器的监控方法的流程图;
图5是根据本发明实施例的另一种服务器的监控方法的流程图;
图6是根据本发明实施例的一种服务系统构架的示意图;
图7是根据本发明实施例的另一种服务器监控的关系示意图;
图8是根据本发明实施例的一种进程管理的示意图;
图9是根据本发明实施例的一种管理控制台的运行监控界面的示意图;
图10是根据本发明实施例的一种管理控制台的日志列表界面的示意图;
图11是根据本发明实施例的一种云数据库网页服务器的界面示意图;
图12是根据本发明实施例的一种服务器的监控装置的示意图;
图13是根据本发明实施例的另一种服务器的监控装置的示意图;
图14是根据本发明实施例的另一种服务器的监控装置的示意图;
图15是根据本发明实施例的另一种服务器的监控装置的示意图;以及
图16是根据本发明实施例的一种终端的结构框图。
具体实施方式
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出 的或对于这些过程、方法、产品或设备固有的其它步骤或单元。
根据本发明实施例的一方面,提供了一种服务器的监控方法的实施例。
可选地,在本实施例中,上述服务器的监控方法可以应用于如图2所示的由服务器202和终端204所构成的硬件环境中。图2是根据本发明实施例的一种服务器的监控方法的硬件环境的示意图。如图2所示,服务器202通过网络与终端204进行连接,上述网络包括但不限于:广域网、城域网或局域网,终端204并不限定于PC、手机、平板电脑等。本发明实施例的服务器的监控方法可以由服务器202来执行,也可以由终端204来执行,还可以是由服务器202和终端204共同执行。其中,终端204执行本发明实施例的服务器的监控方法也可以是由安装在其上的客户端来执行。
图3是根据本发明实施例的一种服务器的监控方法的流程图。如图3所示,该服务器的监控方法包括以下步骤:
步骤S302,服务器启动客户端的目标监控进程。
在本发明上述步骤S302提供的技术方案中,服务器启动客户端的目标监控进程。
服务器接入客户端。该服务器通过目标监控进程实现对客户端的监控,其中,目标监控进程为服务器对客户端进行待监控的进程。服务器可以部署服务系统构架,该服务系统构架为功能封装的服务框架,可选地,通过Node js运行环境进行功能封装,用于实现对客户端进行监控的预设功能。可选地,通过网页服务器向客户端端口转发用户的请求,该网页服务器为反向代理服务器,比如,该网页服务器为Nginx服务器,通过Nginx服务器向客户端端口转发HTTP请求,用于对客户端进行监控的服务器通过客户端的端口获取目标监控进程,通过该目标监控进程可以确定客户端的运行状态,确定系统进行资源的分配情况和调度情况。其中,Nginx服务器是一款轻量级的Web服务器/反向代理服务器及电子邮件代理服务器。
服务器对接入的客户端进行管理和监控,首先启动目标监控进程。在启动目标监控进程启动之后,可以根据预设重启条件重启目标监控进程以保证目标监控进程始终处于运行状态。可选地,该预设重启条件为客户端文件更新的条件,也即,在客户端文件更新后平滑重启目标监控进程,当客户端的域值改变时,可以通过客户端的调用接口重启目标监控进程。该预设重启条件也可以为当服务器监测到目标监控进程由于异常而退出时的条件,也即,当目标监控进程异常退出时自动重启目标监控进程。
步骤S304,服务器监测目标监控进程是否异常退出。
在本发明上述步骤S304提供的技术方案中,在服务器启动目标监控进程之后,服务器监测目标监控进程是否异常退出。
在服务器启动目标监控进程之后,目标监控进程开始运行。在目标监控进程运行的过程中,服务器可以通过目标监控进程的监控模块对目标监控进程进行监测,监测目标监控进程是否由于异常情况的出现而导致异常退出。如果服务器监测到目标监控进程异常退出,则执行步骤S308,如果服务器监测到目标监控进程没有异常退出,则继续对目标监控进程进行监测。
可选地,该实施例的服务器监测目标监控进程是否异常退出包括服务器监测客户端子进程是否异常退出。
步骤S306,当服务器监测到目标监控进程异常退出时,服务器向预设终端发送用于指示目标监控进程异常退出的告警信息。
在本发明上述步骤S306提供的技术方案中,当服务器监测到目标监控进程异常退出时,服务器向预设终端发送用于指示目标监控进程异常退出的告警信息,其中,预设终端根据告警信息向服务器发送运维指令。
在服务器监测目标监控进程异常退出之后,当服务器监测到目标监控进程异常退出时,服务器自动重启目标监控进程,并向预设终端发送用于指示目标监控进程异常退出的告警信息。可选地,该告警信息为告警短信, 预设终端为管理终端,比如,移动通讯终端、平板电脑、掌上电脑以及移动互联网设备(Mobile Internet Devices,MID)、PAD等终端设备等。由配置文件配置预设终端的电话号码、邮箱号等,当服务器监测到目标监控进程异常退出时,服务器通过电话号码、邮箱号等将告警信息向预设终端发送。用户通过管理终端根据告警信息明确异常退出的原因,确定用于解决异常退出问题的运维方法,管理终端向服务器发送用于对目标监控进程进行维护的运维指令。
步骤S308,服务器根据运维指令对目标监控进程进行维护。
在本发明上述步骤S308提供的技术方案中,服务器根据运维指令对目标监控进程进行维护。
在服务器向预设终端发送用于指示目标监控进程异常退出的告警信息之后,服务器接收运维指令,根据运维指令对目标监控进程进行维护,从而避免目标监控进程再次由于相同的原因而异常退出,从而达到提高服务器监控的可用性的效果。
服务器可以显示客户端的实时运行情况,显示目标监控进程负载情况,并可以实时显示客户端的日志(log)文件,可选地,服务器通过管理控制台显示客户端的实时运行情况,显示目标监控进程负载情况,并可以实时显示客户端的log文件,从而可以使用户了解客户端的实时运行情况,了解目标监控进程负载情况,并可以实时查看和下载客户端产生的log文件。
该实施例的日志文件通常是对已完成的某种处理的记录,以便将来作为参考,并没有固定的格式,通常是文本文件,可以用记事本打开以查看内容,也可以是其它格式。
服务器可以使客户端与第三方服务器进行数据交互,该第三方服务器与具体的业务场景有关。
通过上述步骤S302至步骤S308,通过服务器启动客户端的目标监控进程;在服务器启动目标监控进程之后,服务器监测目标监控进程是否异 常退出;当服务器监测到目标监控进程异常退出时,服务器向预设终端发送用于指示目标监控进程异常退出的告警信息,其中,预设终端根据告警信息向服务器发送运维指令;服务器根据运维指令对目标监控进程进行维护,可以解决相关技术中服务器监控的可用性低的技术问题,进而达到提高服务器监控的可用性的技术效果。
作为一种可选的实施方式,在服务器启动客户端的目标监控进程之后,在客户端的业务文件更新的情况下,服务器重启目标监控进程。
图4是根据本发明实施例的另一种服务器的监控方法的流程图。如图4所示,该服务器的监控方法还包括以下步骤:
步骤S401,服务器判断客户端的业务文件是否更新。
在本发明上述步骤S401提供的技术方案中,在服务器启动客户端的目标监控进程之后,服务器判断客户端的业务文件是否更新。
在客户端的业务发布、业务修改时,要对客户端的业务文件进行更新,比如,对APP文件进行更新。该实施例在服务器启动目标监控进程之后,判断客户端的业务文件是否更新。如果判断出客户端的业务文件更新,执行步骤S402。
步骤S402,服务器重启目标监控进程。
在本发明上述步骤S402提供的技术方案中,如果服务器判断出客户端的业务文件更新,服务器重启目标监控进程。
在服务器判断客户端的业务文件是否更新之后,如果判断出客户端的业务文件更新,则服务器重启目标监控进程,可以由服务器的进程管理模块重启目标监控进程,可以通过客户端的调用接口重启目标监控进程,从而使目标监控进程始终保持运行状态。
需要说明的是,在服务器启动目标监控进程之后,服务器判断客户端的业务文件是否更新;如果服务器判断出客户端的业务文件更新,服务器 重启目标监控进程,可以通过服务器部署的预设服务系统的构架实现。
该实施例在服务器启动目标监控进程之后,服务器判断客户端的业务文件是否更新;如果服务器判断出客户端的业务文件更新,服务器重启目标监控进程,从而使目标监控进程始终保持运行状态。
作为一种可选的实施方式,在服务器启动客户端的目标监控进程之后,当服务器监测到目标监控进程异常退出时,服务器重启目标监控进程。
在服务器启动客户端的目标监控进程之后,服务器监测目标进程的运行状态,判断目标进程是否出现异常,比如,判断目标进程是否出现错误。如果服务器监测到目标进程出现异常且退出时,服务器向管理终端发送告警信息,并自动重启客户端进程,从而使目标监控进程始终保持运行状态。
需要说明的是,在服务器启动客户端的目标监控进程之后,当服务器监测到目标监控进程异常退出时,服务器重启目标监控进程,可以通过服务器部署的预设服务系统的构架实现。
作为一种可选的实施方式,在服务器获取目标监控进程之后,在服务器启动客户端的目标监控进程之后,服务器根据目标监控进程显示客户端的状态,其中,客户端的状态包括以下至少之一:客户端的运行状态;客户端的负载状态;客户端的日志文件。
在服务器获取目标监控进程之后,服务器可以通过可视化管理控制台显示客户端的状态。其中,可视化管理控制台具有客户端运行监控界面,客户端日志列表界面,从而通过可视化管理控制台可以查看客户端的运行状态,并可以实时查看和下载APP产生的log文件等,从而提高了服务器监控的可用性。
需要说明的是,在服务器启动客户端的目标监控进程之后,服务器根据目标监控进程显示客户端的状态,可以通过服务器部署的预设服务系统的构架实现。
作为一种可选的实施方式,在服务器启动客户端的目标监控进程之前, 服务器根据处理结果获取目标监控进程,其中,处理结果由客户端的端口对由预设WEB服务器转发的客户端的请求进行处理得到,客户端的请求用于指示请求WEB服务器允许客户端执行预设事件。
客户端的端口获取由预设WEB服务器转发的客户端的请求,其中,预设WEB服务器可以为Nginx服务器,客户端的请求用于指示请求WEB服务器允许客户端执行预设事件,可以为超文本传输协议(Hyper Text Transfer Protocol,简称为HTTP)请求。客户端的端口在获取客户端的请求之后,对客户端的请求进行处理,得到处理结果,服务器获取该处理结果,根据该处理结果获取目标监控进程。
需要说明的是,在服务器启动客户端的目标监控进程之前,服务器根据处理结果获取目标监控进程,可以通过服务器部署预设服务系统构架实现。
作为一种可选的实施方式,客户端包括多个客户端,服务器根据处理结果获取目标监控进程包括:服务器根据每个客户端的处理结果获取每个客户端的目标监控进程,其中,每个客户端的处理结果由每个客户端的端口对由预设WEB服务器转发的每个客户端的请求进行处理得到。
客户端包括多个客户端,每个客户端的端口获取由预设WEB服务器转发的上述每个客户端的请求,其中,预设WEB服务器可以为Nginx服务器,每个客户端的请求用于指示请求WEB服务器允许与其对应的客户端执行预设事件,可以为HTTP请求。每个客户端的端口在获取与其对应的客户端的请求之后,对与其对应的客户端的请求进行处理,得到处理结果,服务器获取该处理结果,根据该处理结果获取目标监控进程。
该实施例的服务器没有对端口进行管理,而是让客户端内部自行管理,再通过预设WEB服务器转发到各自的端口进行处理,从而达到提高服务器监控的可用性的效果。
作为一种可选的实施方式,在服务器启动客户端的目标监控进程之前, 服务器监听服务器的预设端口,得到用于指示请求客户端执行预设事件的服务器的请求,服务器向客户端的端口发送服务器的请求,根据客户端的端口对服务器的请求进行处理得到的处理结果获取目标监控进程。
图5是根据本发明实施例的另一种服务器的监控方法的流程图。如图5所示,服务器的监控方法还包括以下步骤:
步骤S501,服务器监听服务器的预设端口得到服务器的请求。
在本发明上述步骤S501提供的技术方案中,服务器监听服务器的预设端口得到服务器的请求,其中,服务器的请求用于指示请求客户端执行预设事件。
在服务器启动客户端的目标监控进程之前,在外网服务器资源充足的情况下,可以直接让服务器监听预设端口,得到用于指示请求客户端执行预设事件的请求,其中,预设端口可以为80端口,80端口是为超文本传输协议开放的,可以通过HTTP地址加“:80”来访问网站。
步骤S502,服务器向客户端的端口发送服务器的请求。
在本发明上述步骤S502提供的技术方案中,服务器向客户端的端口发送服务器的请求,其中,客户端的端口对服务器的请求进行处理,得到处理结果。
在服务器监听服务器的预设端口得到服务器的请求之后,服务器向客户端的端口发送服务器的请求。客户端的端口接收服务器的请求,对服务器的请求进行处理,得到处理结果,该处理结果用于获取目标监控进程。
步骤S503,服务器根据处理结果获取目标监控进程。
在本发明上述步骤S503提供的技术方案中,服务器根据处理结果获取目标监控进程。
在服务器向客户端的端口发送服务器的请求之后,服务器根据处理结果获取目标监控进程,也即,服务器接入客户端,对目标监控进程进行监 测。服务器可以监控目标监控进程在运行过程中是否出现异常,并且监控目标监控进程在运行过程中,客户端是否由于异常而退出。当服务器监测到客户端异常退出时,向管理终端发送用于指示目标监控进程出现异常的告警信息,并且自动重启目标监控进程。
需要说明的是,服务器监听服务器的预设端口,得到用于指示请求客户端执行预设事件的服务器的请求,服务器向客户端的端口发送服务器的请求,根据客户端的端口对服务器的请求进行处理得到的处理结果获取目标监控进程,可以通过服务器部署的预设服务系统的构架实现。
该实施例通过在服务器启动客户端的目标监控进程之前,服务器监听服务器的预设端口得到服务器的请求,其中,服务器的请求用于指示请求客户端执行预设事件;服务器向客户端的端口发送服务器的请求,其中,客户端的端口对服务器的请求进行处理,得到处理结果;服务器根据处理结果获取目标监控进程,实现了对目标监控进程的获取。
作为一种可选的实施方式,客户端包括多个客户端,服务器向客户端的端口发送服务器的请求包括:服务器向每个客户端的端口分发服务器的请求,其中,每个客户端的端口对服务器的请求进行处理,得到每个客户端的处理结果;服务器根据处理结果获取客户端进程包括:服务器根据每个客户端的处理结果获取每个客户端的客户端进程。
在服务器监听服务器的预设端口得到服务器的请求之后,服务器向每个客户端的端口发送服务器的请求,也即,将服务器的请求通过路由操作,可以按照不同客户端的域名、路径、统一资源定位符路由转发至对应的客户端。每个客户端的端口对通过路由转发的服务器的请求进行处理,得到每个客户端的处理结果。在服务器向每个客户端的端口发送服务器的请求之后,服务器根据每个客户端的处理结果获取目标监控进程,也即,服务器接入客户端,对目标监控进程进行监测。
可选地,在上述实施例中,服务器部署有按照预设功能封装的WEB服务系统构架,该WEB服务系统构架为高可用性WEB服务系统架构, 预设功能打包为安装包并部署在服务器上。
可选地,服务器在预设运行环境和预设依赖环境下,通过调用接口与第三方服务器进行数据交互。
该实施例的服务器具有统一标准的运行环境和依赖环境,该运行环境可以为Node js运行环境。其中,Node js是一个开放源代码、跨平台、可用服务器端和网络应用的运行环境,用于编写像WEB服务器一样的网络应用。服务器在预设运行环境和预设依赖环境下,通过调用接口与第三方服务器进行数据交互,该调用接口为应用程序编程接口(Application Programming Interface,简称为API),为操作系统留给应用程序的一个调用接口,从而使操作系统执行应用程序的命令。与服务器进行数据交互的第三方服务器根据具体业务的应用场景进行确定,可以为业务后台服务器。
该实施例通过服务器对接入的客户端进行管理及监控,包括启动目标监控进程,客户端文件更新后平滑重启目标监控进程,在目标监控进程异常退出时发送告警短信给管理终端并自动重启目标监控进程,并且显示客户端的实时运行情况、客户端进程的负载情况、显示在查看和下载客户端时产生的日志文件等,实现了当服务器监控客户端时,将对客户端的监控与目标监控进程的告警信息进行结合,以形成闭环进一步控制目标监控进程,提高了服务器监控的可用性。
下面结合优选的实施例对本发明的技术方案进行说明。
本发明实施例的服务器部署有服务系统构架,该服务系统构架为进行功能封装的服务框架。优选地,服务器支持Node js运行环境,该服务系统构架为基于Nodejs运行环境进行功能封装的服务框架。
图6是根据本发明实施例的一种服务系统构架的示意图。如图6所示,多个客户端(APP)通过配置文件(APPS config)与服务器进行关联,子进程是运行APP的具体进程,进程管理(APP进程管理)用于对进程进行管理,包括对子进程的启动、停止、重启等管理,主进程(Main)是总的 进程。版本号用于标识服务系统构架的版本类型,节点模块(node_modules)为服务系统构架的依赖环境,包括常用库(比如,express库,cookies库,react库),还包括调用接口(API),运维工具为用于对服务器进行维护的组件。
通过服务系统构架实现服务器启动客户端的目标监控进程;在服务器启动目标监控进程之后,服务器监测目标监控进程是否异常退出;当服务器监测到目标监控进程异常退出时,服务器向预设终端发送用于指示目标监控进程异常退出的告警信息,其中,预设终端根据告警信息向服务器发送运维指令;服务器根据运维指令对目标监控进程进行维护,从而提高了服务器监控的可用性。
图7是根据本发明实施例的另一种服务器监控的关系示意图。如图7所示,整个监控过程实现涉及到服务器与多个系统进行交互,其中包括:第三方服务器、管理终端、管理控制台、业务后台服务器、网页服务器,其中,网页服务器优选为Nginx服务器。
整个功能实现有以下几个重要环节:
第一步,服务系统构架统一部署到需要安装的服务器。
第二步,服务器通过服务系统构架对接入的客户端进行管理及监控,包括启动客户端进程(APP进程),客户端文件(APP文件)更新后平滑重启客户端进程,客户端进程异常退出时发送告警短信给管理终端,并自动重启客户端进程,管理终端根据告警信息发送用于对客户端进程进行维护的维护指令至管理控制台,管理控制台将该维护指令通过流程监控传输至进程管理,从而实现对客户端进程的管理。
可选地,通过进程监控实现对客户端子进程出现异常退出情况的监控,如果APP子进程出现异常退出情况,进程监控将用于指示客户端子进程出现异常退出情况的信息发送至进程管理,通过进程管理实现对客户端子进程的重启,该进程管理还用于启动客户端子进程。
第三步,服务器通过服务系统构架提供了可视化管理控制台,该可视化管理控制台通过进程监控发送的客户端进程的运行状态,可以查看客户端实时运行情况、客户端进程负载情况,并可以实时查看和下载客户端产生的日志(log)文件,管理终端可以接收用于指示客户端实时运行情况、客户端进程负载情况的信息、日志文件等。
在该实施例中,网页服务器接收用户发送的请求,该请求可以为HTTP请求,网页服务器将该请求转发至APP端口。APP端口对请求进行处理,得到处理结果,服务器根据该处理结果获取客户端进程。该客户端进程可以通过网页服务器进一步发送至用户,从而实现了网页服务器对请求的响应。
在该实施例中,客户端进程与业务后台服务器进行数据交互。该服务器的运行环境可以为Node js运行环境,依赖环境包括常用库,比如,express库、cookies库、react库,此处不做限制,还集成了常用的业务功能,并且通过调用接口(API)与第三方服务进行数据交互。
图8是根据本发明实施例的一种进程管理的示意图。如图8所示,服务系统构架部署在需要安装的服务器上,客户端APP通过系统部署到服务器上。在APP进程监控接收到用于指示APP进程出现异常退出的消息时,APP进程监控向服务器发送用于指示APP进程管理重启APP进程的指令,服务器中部署的进程管理模块根据用于指示APP进程管理重启APP进程的指令自动重启进程,可以通过后置脚本重启(restart)APP进程。在通过APP进程监控实现对APP进程出现异常退出的情况进行监控之后,APP进程监控向管理控制台发送用于指示APP进程出现异常退出的消息,也即,将用于指示APP进程出现异常退出的消息上报管理控制平台,通过管理控制台可以查看APP实时运行情况,APP进程负载情况,并可以实时查看和下载APP产生的日志文件。
可选地,该实施例通过后置脚本重装(reload)客户端。
图9是根据本发明实施例的一种管理控制台的运行监控界面的示意图。 如图9所示,该实施例的管理控制台为通过部署服务系统构架实现,该管理控制台的运行监控界面包括:管理控制台的开启、对管理控制台的简介、监控、实例运行监控、实例日志,可以用于选择机器,比如,外网-广州,可以用于选择应用,此外,该实施例的管理控制台还可以显示IP地址,比如,显示IP地址为10.251.71.150,10.251.64.7,10.250.100.183,10.251.196.13,还可以显示与IP地址对应的信息,比如,IP地址10.251.71.150对应的信息为14246.14256,与IP地址10.251.64.7对应的信息为25938.25948.25958.25968,IP地址10.250.100.183对应的信息为18145.18155,与IP地址10.251.196.13对应的信息为25616.25626.25636.25646.25656.25666.2…,还可以显示IP地址对应的状态,比如,上述IP地址对应的状态都为正常状态。该实施例还可以显示中央处理器(CPU)运行状态以及内存使用情况,从而实现了对客户端实时运行情况的显示,提高了服务器监控的可用性。
图10是根据本发明实施例的一种管理控制台的日志列表界面的示意图。如图10所示,该管理控制台的日志列表界面包括:管理控制台的重启、简介、监控、实例运行监控、实例日志、资源,可以用于选择机器,比如,外网-广州-10.251.71.150,可以用于选择应用,同时显示日志,以及对应日志的大小、创建时间、更新时间、以及操作,从而实现了实时查看和下载APP产生的日志文件,提高了服务器监控的可用性。
该实施例的服务器可以在外网服务器资源充足的情况下,直接通过服务系统构架监听80端口,再由服务系统构架将请求路由转发给App进行处理,提高了服务器监控的可用性。
该实施例通基于Nodejs的统一运行环境、部署方案和完善的监控管理及控制台,从而实现了提高服务器监控的可用性的技术效果,进而解决了相关技术中服务器监控的可用性低的技术问题。
本发明实施例的应用环境可以但不限于参照上述实施例中的应用环境,本实施例中对此不再赘述。本发明实施例提供了用于实施上述服务器 的监控方法的一种可选的具体应用。
该实施例的服务器部署有基于Node js进行功能封装的服务框架。其中,Nodejs主要用于编写像Web服务器一样的网络应用,这和PHP和Python是类似的,可以应用于云数据库的网页服务器上。
图11是根据本发明实施例的一种云数据库网页服务器的界面示意图。如图11所示,该实施例的云数据库网页服务器可以实现启动客户端的目标监控进程;在服务器启动目标监控进程之后,服务器监测目标监控进程是否异常退出;当服务器监测到目标监控进程异常退出时,服务器向预设终端发送用于指示目标监控进程异常退出的告警信息,其中,预设终端根据告警信息向服务器发送运维指令;服务器根据运维指令对目标监控进程进行维护。
其中,云数据库包括数据库(MySQL)、数据库管理系统(SQL Server),还包括实例列表、任务列表、参数模板、操作日志、数据库审计、数据传输、数据库同步等,还包括ID/示例名、各实例名对应的运行状态、规格、所属网络、内网地址、到期时间以及操作等,达到了提高服务器监控的可用性的效果。
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可 以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。
根据本发明实施例的另一方面,还提供了一种用于实施上述服务器的监控方法的服务器的监控装置。图12是根据本发明实施例的一种服务器的监控装置的示意图。如图12所示,该服务器的监控装置可以包括:启动单元10、监测单元20、第一发送单元30和维护单元40。
启动单元10,被设置为使服务器启动客户端的目标监控进程。
服务器对接入的客户端进行管理和监控,首先通过启动单元10启动目标监控进程。在通过启动单元10启动目标监控进程启动之后,可以根据预设重启条件重启目标监控进程以保证目标监控进程始终处于运行状态。可选地,该预设重启条件为客户端文件更新的条件,也即,在客户端文件更新后平滑重启目标监控进程,当客户端的域值改变时,可以通过客户端的调用接口重启目标监控进程。该预设重启条件也可以为当服务器监测到目标监控进程由于异常而退出时的条件,也即,当目标监控进程异常退出时自动重启目标监控进程。
监测单元20,被设置为在服务器启动目标监控进程之后,使服务器监测目标监控进程是否异常退出。
在通过启动单元10使服务器启动目标监控进程之后,目标监控进程开始运行。在目标监控进程运行的过程中,监测单元20使服务器可以通过目标监控进程的监控模块对目标监控进程进行监测,监测目标监控进程是否由于异常情况的出现而导致异常退出。如果监测单元20使服务器监测到目标监控进程异常退出,则服务器根据运维指令对目标监控进程进行维护,如果监测单元20使服务器监测到目标监控进程没有异常退出,则监测单元20继续对目标监控进程进行监测。
可选地,该实施例的监测单元20使服务器监测目标监控进程是否异常退出包括使服务器监测客户端子进程是否异常退出。
第一发送单元30,被设置为当服务器监测到目标监控进程异常退出时,使服务器向预设终端发送用于指示目标监控进程异常退出的告警信息,其中,预设终端根据告警信息向服务器发送运维指令。
在监测单元20使服务器监测目标监控进程异常退出之后,当服务器监测到目标监控进程异常退出时,服务器自动重启目标监控进程,并通过第一发送单元30使服务器向预设终端发送用于指示目标监控进程异常退出的告警信息。可选地,该告警信息为告警短信,预设终端为管理终端,比如,移动通讯终端、平板电脑、掌上电脑以及移动互联网设备(Mobile Internet Devices,MID)、PAD等终端设备等。由配置文件配置预设终端的电话号码、邮箱号等。当通过监测单元20使服务器监测到目标监控进程异常退出时,第一发送单元30使服务器通过电话号码、邮箱号等将告警信息向预设终端发送。用户通过管理终端根据告警信息明确异常退出的原因,确定用于解决异常退出问题的运维方法,管理终端向服务器发送用于对目标监控进程进行维护的运维指令。
维护单元40,被设置为使服务器根据运维指令对目标监控进程进行维护。
在第一发送单元30被设置为使服务器向预设终端发送用于指示目标监控进程异常退出的告警信息之后,服务器接收运维指令,通过维护单元40根据运维指令对目标监控进程进行维护,从而避免目标监控进程再次由于相同的原因而异常退出,从而达到提高服务器监控的可用性的效果。
服务器可以显示客户端的实时运行情况,显示目标监控进程负载情况,并可以实时显示客户端的日志(log)文件,可选地,服务器通过管理控制台显示客户端的实时运行情况,显示目标监控进程负载情况,并可以实时显示客户端的log文件,从而可以使用户了解客户端的实时运行情况,了解目标监控进程负载情况,并可以实时查看和下载客户端产生的log文件。
服务器可以使客户端与第三方服务器进行数据交互,该第三方服务器与具体的业务场景有关。
此处需要说明的是,上述启动单元10、监测单元20、第一发送单元30和维护单元40可以作为装置的一部分运行在终端中,可以通过终端中的处理器来执行上述模块实现的功能,终端也可以是智能手机(如Android手机、iOS手机等)、平板电脑、掌声电脑以及移动互联网设备(Mobile Internet Devices,MID)、PAD等终端设备。
图13是根据本发明实施例的另一种服务器的监控装置的示意图。如图13所示,该服务器的监控装置可以包括:启动单元10、监测单元20、第一发送单元30和维护单元40。该服务器的监控装置还包括:判断单元50和第一重启单元60。
需要说明的是,该实施例的启动单元10、监测单元20、第一发送单元30和维护单元40与图12所示实施例的服务器的监控装置中的作用相同,此处不再赘述。
判断单元50,被设置为在服务器启动客户端的目标监控进程之后,使服务器判断客户端的业务文件是否更新。
在客户端的业务发布、业务修改时,要对客户端的业务文件进行更新,比如,对APP文件进行更新。该实施例在服务器启动目标监控进程之后,通过判断单元50使服务器判断客户端的业务文件是否更新。
第一重启单元60,被设置为在服务器判断出客户端的业务文件更新时,服务器重启目标监控进程。
在判断单元50使服务器判断客户端的业务文件是否更新之后,如果判断单元50使服务器判断出客户端的业务文件更新,则第一重启单元60使服务器重启目标监控进程,第一重启单元60可以由服务器的进程管理模块重启目标监控进程实现,可以通过客户端的调用接口重启目标监控进程,从而使目标监控进程始终保持运行状态。
此处需要说明的是,上述判断单元50和第一重启单元60可以作为装置的一部分运行在终端中,可以通过终端中的处理器来执行上述模块实现 的功能,终端也可以是智能手机(如Android手机、iOS手机等)、平板电脑、掌声电脑以及移动互联网设备(Mobile Internet Devices,MID)、PAD等终端设备。
图14是根据本发明实施例的另一种服务器的监控装置的示意图。如图14所示,该服务器的监控装置可以包括:启动单元10、监测单元20、第一发送单元30和维护单元40。该服务器的监控装置还包括:第二重启单元70。
需要说明的是,该实施例的启动单元10、监测单元20、第一发送单元30和维护单元40与图12所示实施例的服务器的监控装置中的作用相同,此处不再赘述。
第二重启单元70,被设置为在服务器启动客户端的目标监控进程之后,当服务器监测到目标监控进程异常退出时,服务器重启目标监控进程。
在启动单元10使服务器启动客户端的目标监控进程之后,服务器监测目标进程的运行状态,判断目标进程是否出现异常,比如,判断目标进程是否出现错误。如果监测单元20使服务器监测到目标进程出现异常且退出时,服务器向管理终端发送告警信息,通过第二重启单元70自动重启客户端进程,从而使目标监控进程始终保持运行状态。
此处需要说明的是,上述第二重启单元70可以作为装置的一部分运行在终端中,可以通过终端中的处理器来执行上述模块实现的功能,终端也可以是智能手机(如Android手机、iOS手机等)、平板电脑、掌声电脑以及移动互联网设备(Mobile Internet Devices,MID)、PAD等终端设备。
图15是根据本发明实施例的另一种服务器的监控装置的示意图。如图15所示,该服务器的监控装置可以包括:启动单元10、监测单元20、第一发送单元30和维护单元40。该服务器的监控装置还包括:显示单元80。
需要说明的是,该实施例的启动单元10、监测单元20、第一发送单 元30和维护单元40与图12所示实施例的服务器的监控装置中的作用相同,此处不再赘述。
显示单元80,被设置为在服务器启动客户端的目标监控进程之后,服务器根据目标监控进程显示客户端的状态,其中,客户端的状态包括以下至少之一:客户端的运行状态;客户端的负载状态;客户端的日志文件。
显示单元80可以通过可视化管理控制台显示客户端的状态。其中,可视化管理控制台具有客户端运行监控界面,客户端日志列表界面,从而通过可视化管理控制台可以查看客户端的运行状态,并可以实时查看和下载APP产生的log文件等,从而提高了服务器监控的可用性。
此处需要说明的是,上述显示单元80可以作为装置的一部分运行在终端中,可以通过终端中的处理器来执行上述模块实现的功能,终端也可以是智能手机(如Android手机、iOS手机等)、平板电脑、掌声电脑以及移动互联网设备(Mobile Internet Devices,MID)、PAD等终端设备。
可选地,如图12至图15所示的装置还包括:第一获取单元,被设置为在服务器启动客户端的目标监控进程之前,使服务器根据处理结果获取目标监控进程,其中,处理结果由客户端的端口对由预设WEB服务器转发的客户端的请求进行处理得到,客户端的请求用于指示请求WEB服务器允许客户端执行预设事件。
客户端的端口获取由预设WEB服务器转发的客户端的请求,其中,预设WEB服务器可以为Nginx服务器,客户端的请求用于指示请求WEB服务器允许客户端执行预设事件,可以为超文本传输协议请求。客户端的端口在获取客户端的请求之后,对客户端的请求进行处理,得到处理结果,服务器获取该处理结果,根据该处理结果获取目标监控进程。
可选地,客户端包括多个客户端,第一获取单元被设置为使服务器根据每个客户端的处理结果获取每个客户端的目标监控进程,其中,每个客户端的处理结果由每个客户端的端口对由预设WEB服务器转发的每个客 户端的请求进行处理得到。
客户端包括多个客户端,每个客户端的端口获取由预设WEB服务器转发的上述每个客户端的请求,其中,预设WEB服务器可以为Nginx服务器,每个客户端的请求用于指示请求WEB服务器允许与其对应的客户端执行预设事件,可以为HTTP请求。每个客户端的端口在获取与其对应的客户端的请求之后,对与其对应的客户端的请求进行处理,得到处理结果,第一获取单元使服务器获取该处理结果,根据该处理结果获取目标监控进程。
此处需要说明的是,上述第一获取单元可以作为装置的一部分运行在终端中,可以通过终端中的处理器来执行上述模块实现的功能,终端也可以是智能手机(如Android手机、iOS手机等)、平板电脑、掌声电脑以及移动互联网设备(Mobile Internet Devices,MID)、PAD等终端设备。
可选地,如图12至图15所示的装置还包括:监听单元,被设置为在服务器启动客户端的目标监控进程之前,使服务器监听服务器的预设端口得到服务器的请求,其中,服务器的请求用于指示请求客户端执行预设事件;第二发送单元,被设置为使服务器向客户端的端口发送服务器的请求,其中,客户端的端口对服务器的请求进行处理,得到处理结果;第二获取单元,被设置为使服务器根据处理结果获取目标监控进程。
监听单元用于在服务器启动客户端的目标监控进程之前,在外网服务器资源充足的情况下,可以直接让服务器监听预设端口,得到用于指示请求客户端执行预设事件的请求,其中,预设端口可以为80端口,80端口是为超文本传输协议开放的,可以通过HTTP地址加“:80”来访问网站。
第二发送单元被设置为在服务器监听服务器的预设端口得到服务器的请求之后,使服务器向客户端的端口发送服务器的请求。客户端的端口接收服务器的请求,对服务器的请求进行处理,得到处理结果。
第二获取单元被设置为在服务器向客户端的端口发送服务器的请求 之后,使服务器根据处理结果获取目标监控进程,也即,服务器接入客户端,对目标监控进程进行监测。服务器可以监控目标监控进程在运行过程中是否出现异常,并且由于异常而退出。当服务器监测到客户端异常退出时,通过第二获取单元向管理终端发送用于指示目标监控进程出现异常的告警信息,并且自动重启目标监控进程。
可选地,客户端包括多个客户端,第二发送单元被设置为使服务器向每个客户端的端口分发请求,其中,每个客户端的端口对请求进行处理,得到每个客户端的处理结果;第二获取单元被设置为使服务器根据每个客户端的处理结果获取每个客户端的客户端进程。
在服务器监听服务器的预设端口得到服务器的请求之后,服务器向每个客户端的端口发送服务器的请求,也即,将服务器的请求通过路由操作,可以按照不同客户端的域名、路径、统一资源定位符路由转发至对应的客户端。每个客户端的端口对通过路由转发的服务器的请求进行处理,得到每个客户端的处理结果。在服务器向每个客户端的端口发送服务器的请求之后,服务器根据每个客户端的处理结果获取目标监控进程,也即,服务器接入客户端,对目标监控进程进行监测。
可选地,在上述实施例的服务器的监控装置中,服务器部署有按照预设功能封装的WEB服务系统构架,该WEB服务系统构架为高可用性WEB服务系统架构,预设功能打包为安装包并部署在服务器上。
可选地,服务器在预设运行环境和预设依赖环境下,通过调用接口与第三方服务器进行数据交互。
该实施例的服务器具有统一标准的运行环境和依赖环境,该运行环境可以为Node js运行环境、与服务器进行数据交互的第三方服务器根据具体业务的应用场景进行确定,可以为业务后台服务器。
此处需要说明的是,上述监听单元、第二发送单元、第二获取单元可以作为装置的一部分运行在终端中,可以通过终端中的处理器来执行上述 模块实现的功能,终端也可以是智能手机(如Android手机、iOS手机等)、平板电脑、掌声电脑以及移动互联网设备(Mobile Internet Devices,MID)、PAD等终端设备。
需要说明的是,该实施例中的启动单元10可以被设置为执行本申请实施例中的步骤S302,该实施例中的监测单元20可以被设置为执行本申请实施例中的步骤S304,该实施例中的第一发送单元30可以被设置为执行本申请实施例中的步骤S306,该实施例中的维护单元40可以被设置为执行本申请实施例中的步骤S308。该实施例通过启动单元10使服务器启动客户端的目标监控进程,通过监测单元20使在服务器启动目标监控进程之后,服务器监测目标监控进程是否异常退出,当服务器监测到目标监控进程异常退出时,通过第一发送单元30使服务器向预设终端发送用于指示目标监控进程异常退出的告警信息,其中,预设终端根据告警信息向服务器发送运维指令,通过维护单元40使服务器根据运维指令对目标监控进程进行维护,可以解决了相关技术中服务器监控的可用性低的技术问题,达到了对把目标进程进行监控的目的,从而实现了提高服务器监控的可用性的技术效果,进而解决了相关技术中服务器监控的可用性低的技术问题。
此处需要说明的是,上述单元和模块与对应的步骤所实现的示例和应用场景相同,但不限于上述实施例所公开的内容。需要说明的是,上述模块作为装置的一部分可以运行在如图2所示的硬件环境中,可以通过软件实现,也可以通过硬件实现,其中,硬件环境包括网络环境。
根据本发明实施例的另一方面,还提供了一种用于实施上述服务器的监控方法的终端,其中,终端就可以为计算机终端,该计算机终端可以是计算机终端群中的任意一个计算机终端设备。可选地,在本实施例中,上述计算机终端也可以替换为移动终端等终端设备。
可选地,在本实施例中,上述计算机终端可以位于计算机网络的多个网络设备中的至少一个网络设备。
图16是根据本发明实施例的一种终端的结构框图。如图16所示,该终端可以包括:一个或多个(图中仅示出一个)处理器161、存储器163、以及传输装置165。如图16所示,该终端还可以包括输入输出设备167。
其中,存储器163可用于存储软件程序以及模块,如本发明实施例中的服务器的监控方法和装置对应的程序指令/模块,处理器161通过运行存储在存储器163内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的服务器的监控方法。存储器163可包括高速随机存储器,还可以包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器163可进一步包括相对于处理器161远程设置的存储器,这些远程存储器可以通过网络连接至终端。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
上述的传输装置165用于经由一个网络接收或者发送数据,还可以用于处理器与存储器之间的数据传输。上述的网络具体实例可包括有线网络及无线网络。在一个实例中,传输装置165包括一个网络适配器(Network Interface Controller,NIC),其可通过网线与其他网络设备与路由器相连从而可与互联网或局域网进行通讯。在一个实例中,传输装置165为射频(Radio Frequency,RF)模块,其用于通过无线方式与互联网进行通讯。
其中,具体地,存储器163用于存储应用程序。
处理器161可以通过传·输装置135调用存储器163存储的应用程序,以执行上述方法实施例中的各个可选或优选实施例的方法步骤的程序代码,包括:
服务器启动客户端的目标监控进程;
在服务器启动目标监控进程之后,服务器监测目标监控进程是否异常退出;
当服务器监测到目标监控进程异常退出时,服务器向预设终端发送用 于指示目标监控进程异常退出的告警信息,其中,预设终端根据告警信息向服务器发送运维指令;
服务器根据运维指令对目标监控进程进行维护。
处理器161还用于执行下述步骤:在服务器启动客户端的目标监控进程之后,服务器判断客户端的业务文件是否更新;如果服务器判断出客户端的业务文件更新,服务器重启目标监控进程。
处理器161还用于执行下述步骤:在服务器启动客户端的目标监控进程之后,当服务器监测到目标监控进程异常退出时,服务器重启目标监控进程。
处理器161还用于执行下述步骤:在服务器启动客户端的目标监控进程之后,服务器根据目标监控进程显示客户端的状态,其中,客户端的状态包括以下至少之一:客户端的运行状态;客户端的负载状态;客户端的日志文件。
处理器161还用于执行下述步骤:在服务器启动客户端的目标监控进程之前,服务器根据处理结果获取目标监控进程,其中,处理结果由客户端的端口对由预设WEB服务器转发的客户端的请求进行处理得到,客户端的请求用于指示请求WEB服务器允许客户端执行预设事件。
处理器161还用于执行下述步骤:客户端包括多个客户端,服务器根据每个客户端的处理结果获取每个客户端的目标监控进程,其中,每个客户端的处理结果由每个客户端的端口对由预设WEB服务器转发的每个客户端的请求进行处理得到。
处理器161还用于执行下述步骤:在服务器启动客户端的目标监控进程之前,服务器监听服务器的预设端口得到服务器的请求,其中,服务器的请求用于指示请求客户端执行预设事件;服务器向客户端的端口发送服务器的请求,其中,客户端的端口对服务器的请求进行处理,得到处理结果;服务器根据处理结果获取目标监控进程。
处理器161还用于执行下述步骤:客户端包括多个客户端,服务器向每个客户端的端口分发服务器的请求,其中,每个客户端的端口对服务器的请求进行处理,得到每个客户端的处理结果;服务器根据每个客户端的处理结果获取每个客户端的客户端进程。
采用本发明实施例,提供了一种服务器的监控的方案。通过服务器启动客户端的目标监控进程;在服务器启动目标监控进程之后,服务器监测目标监控进程是否异常退出;当服务器监测到目标监控进程异常退出时,服务器向预设终端发送用于指示目标监控进程异常退出的告警信息,其中,预设终端根据告警信息向服务器发送运维指令;服务器根据运维指令对目标监控进程进行维护,达到了对把目标进程进行监控的目的,从而实现了提高服务器监控的可用性的技术效果,进而解决了相关技术中服务器监控的可用性低的技术问题。
可选地,本实施例中的具体示例可以参考上述实施例中所描述的示例,本实施例在此不再赘述。
本领域普通技术人员可以理解,图16所示的结构仅为示意,终端可以是智能手机(如Android手机、iOS手机等)、平板电脑、掌上电脑以及移动互联网设备(Mobile Internet Devices,MID)、PAD等终端设备。图16其并不对上述电子装置的结构造成限定。例如,终端还可包括比图16中所示更多或者更少的组件(如网络接口、显示装置等),或者具有与图16所示不同的配置。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令终端设备相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:闪存盘、只读存储器(Read-Only Memory,ROM)、随机存取器(Random Access Memory,RAM)、磁盘或光盘等。
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以存储程序代码,所述程序代码用于执行上述方法实施例所 提供的服务器的监控方法的程序代码中的步骤。
可选地,在本实施例中,上述存储介质可以位于计算机网络中计算机终端群中的任意一个计算机终端中,或者位于移动终端群中的任意一个移动终端中。
可选地,在本实施例中,存储介质被设置为存储用于执行以下步骤的程序代码:
服务器启动客户端的目标监控进程;
在服务器启动目标监控进程之后,服务器监测目标监控进程是否异常退出;
当服务器监测到目标监控进程异常退出时,服务器向预设终端发送用于指示目标监控进程异常退出的告警信息,其中,预设终端根据告警信息向服务器发送运维指令;
服务器根据运维指令对目标监控进程进行维护。
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:在服务器启动客户端的目标监控进程之后,服务器判断客户端的业务文件是否更新;如果服务器判断出客户端的业务文件更新,服务器重启目标监控进程;或者当服务器监测到目标监控进程异常退出时,服务器重启目标监控进程。
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:在服务器启动客户端的目标监控进程之后,当服务器监测到目标监控进程异常退出时,服务器重启目标监控进程。
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:在服务器启动客户端的目标监控进程之后,服务器根据目标监控进程显示客户端的状态,其中,客户端的状态包括以下至少之一:客户端的运行状态;客户端的负载状态;客户端的日志文件。
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:在服务器启动客户端的目标监控进程之前,服务器根据处理结果获取目标监控进程,其中,处理结果由客户端的端口对由预设WEB服务器转发的客户端的请求进行处理得到,客户端的请求用于指示请求WEB服务器允许客户端执行预设事件。
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:客户端包括多个客户端,服务器根据每个客户端的处理结果获取每个客户端的目标监控进程,其中,每个客户端的处理结果由每个客户端的端口对由预设WEB服务器转发的每个客户端的请求进行处理得到。
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:在服务器启动客户端的目标监控进程之前,服务器监听服务器的预设端口得到服务器的请求,其中,服务器的请求用于指示请求客户端执行预设事件;服务器向客户端的端口发送服务器的请求,其中,客户端的端口对服务器的请求进行处理,得到处理结果;服务器根据处理结果获取目标监控进程。
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:客户端包括多个客户端,服务器向每个客户端的端口分发服务器的请求,其中,每个客户端的端口对服务器的请求进行处理,得到每个客户端的处理结果;服务器根据每个客户端的处理结果获取每个客户端的客户端进程。
可选地,本实施例中的具体示例可以参考上述实施例中所描述的示例,本实施例在此不再赘述。
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
根据本发明实施例的另一方面,还提供了一种服务器的监控设备。该设备包括:一个或多个处理器,以及一个或多个存储指令的存储器,其中, 指令由处理器执行,处理器所要执行的程序单元包括:启动单元,被设置为使服务器启动客户端的目标监控进程;监测单元,被设置为在服务器启动目标监控进程之后,使服务器监测目标监控进程是否异常退出;第一发送单元,被设置为当服务器监测到目标监控进程异常退出时,使服务器向预设终端发送用于指示目标监控进程异常退出的告警信息,其中,预设终端根据告警信息向服务器发送运维指令;维护单元,被设置为使服务器根据运维指令对目标监控进程进行维护。
可选地,程序单元还包括:判断单元,被设置为在服务器启动客户端的目标监控进程之后,使服务器判断客户端的业务文件是否更新;第一重启单元,被设置为在服务器判断出客户端的业务文件更新时,服务器重启目标监控进程。
可选地,程序单元还包括:第二重启单元,被设置为在服务器启动客户端的目标监控进程之后,当服务器监测到目标监控进程异常退出时,服务器重启目标监控进程。
可选地,程序单元还包括:显示单元,被设置为在服务器启动客户端的目标监控进程之后,服务器根据目标监控进程显示客户端的状态,其中,客户端的状态包括以下至少之一:客户端的运行状态;客户端的负载状态;客户端的日志文件。
可选地,程序单元还包括:第一获取单元,被设置为在服务器启动客户端的目标监控进程之前,使服务器根据处理结果获取目标监控进程,其中,处理结果由客户端的端口对由预设WEB服务器转发的客户端的请求进行处理得到,客户端的请求用于指示请求WEB服务器允许客户端执行预设事件。
可选地,客户端包括多个客户端,第一获取单元被设置为使服务器根据每个客户端的处理结果获取每个客户端的目标监控进程,其中,每个客户端的处理结果由每个客户端的端口对由预设WEB服务器转发的每个客户端的请求进行处理得到。
可选地,程序单元还包括:监听单元,被设置为在服务器启动客户端的目标监控进程之前,使服务器监听服务器的预设端口得到服务器的请求,其中,服务器的请求用于指示请求客户端执行预设事件;第二发送单元,被设置为使服务器向客户端的端口发送服务器的请求,其中,客户端的端口对服务器的请求进行处理,得到处理结果;第二获取单元,被设置为使服务器根据处理结果获取目标监控进程。
可选地,第二发送单元被设置为使服务器向每个客户端的端口分发请求,其中,每个客户端的端口对请求进行处理,得到每个客户端的处理结果;第二获取单元被设置为使服务器根据每个客户端的处理结果获取每个客户端的目标监控进程。
如上参照附图以示例的方式描述了根据本发明的服务器的监控方法、装置和存储介质。但是,本领域技术人员应当理解,对于上述本发明所提出的服务器的监控方法、装置和存储介质,还可以在不脱离本发明内容的基础上做出各种改进。因此,本发明的保护范围应当由所附的权利要求书的内容确定。
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。
上述实施例中的集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在上述计算机可读取的存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在存储介质中,包括若干指令用以使得一台或多台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。
在本发明的上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
在本申请所提供的几个实施例中,应该理解到,所揭露的客户端,可 通过其它的方式实现。其中,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,单元或模块的间接耦合或通信连接,可以是电性或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。
工业实用性
在本发明实施例中,通过服务器启动客户端的目标监控进程;在服务器启动目标监控进程之后,服务器监测目标监控进程是否异常退出;当服务器监测到目标监控进程异常退出时,服务器向预设终端发送用于指示目标监控进程异常退出的告警信息,其中,预设终端根据告警信息向服务器发送运维指令;服务器根据运维指令对目标监控进程进行维护,达到了对把目标进程进行监控的目的,从而实现了提高服务器监控的可用性的技术效果,进而解决了相关技术中服务器监控的可用性低的技术问题。

Claims (22)

  1. 一种服务器的监控方法,包括:
    服务器启动客户端的目标监控进程;
    在所述服务器启动所述目标监控进程之后,所述服务器监测所述目标监控进程是否异常退出;
    当所述服务器监测到所述目标监控进程异常退出时,所述服务器向预设终端发送用于指示所述目标监控进程异常退出的告警信息,其中,所述预设终端根据所述告警信息向所述服务器发送运维指令;
    所述服务器根据所述运维指令对所述目标监控进程进行维护。
  2. 根据权利要求1所述的方法,其中,在所述服务器启动所述客户端的目标监控进程之后,所述方法还包括:
    所述服务器判断所述客户端的业务文件是否更新;
    如果所述服务器判断出所述客户端的所述业务文件更新,所述服务器重启所述目标监控进程。
  3. 根据权利要求1所述的方法,其中,在所述服务器启动所述客户端的目标监控进程之后,所述方法还包括:当所述服务器监测到所述目标监控进程异常退出时,所述服务器重启所述目标监控进程。
  4. 根据权利要求1所述的方法,其中,在所述服务器启动所述客户端的目标监控进程之后,所述方法还包括:
    所述服务器根据所述目标监控进程显示所述客户端的状态,其中,所述客户端的状态包括以下至少之一:所述客户端的运行状态;所述客户端的负载状态;所述客户端的日志文件。
  5. 根据权利要求1至4中任意一项所述的方法,其中,在所述服务器启动所述客户端的目标监控进程之前,所述方法还包括:
    所述服务器根据处理结果获取所述目标监控进程,其中,所述处 理结果由所述客户端的端口对由预设WEB服务器转发的所述客户端的请求进行处理得到,所述客户端的请求用于指示请求所述WEB服务器允许所述客户端执行预设事件。
  6. 根据权利要求5所述的方法,其中,所述客户端包括多个客户端,所述服务器根据所述处理结果获取所述目标监控进程包括:
    所述服务器根据每个客户端的处理结果获取所述每个客户端的目标监控进程,其中,所述每个客户端的处理结果由所述每个客户端的端口对由所述预设WEB服务器转发的所述每个客户端的请求进行处理得到。
  7. 根据权利要求1至4中任意一项所述的方法,其中,在所述服务器启动所述客户端的目标监控进程之前,所述方法还包括:
    所述服务器监听所述服务器的预设端口得到所述服务器的请求,其中,所述服务器的请求用于指示请求所述客户端执行预设事件;
    所述服务器向所述客户端的端口发送所述服务器的请求,其中,所述客户端的端口对所述服务器的请求进行处理,得到处理结果;
    所述服务器根据所述处理结果获取所述目标监控进程。
  8. 根据权利要求7所述的方法,其中,所述客户端包括多个客户端,
    所述服务器向所述客户端的端口发送所述服务器的请求包括:所述服务器向每个客户端的端口分发所述服务器的请求,其中,所述每个客户端的端口对所述服务器的请求进行处理,得到所述每个客户端的处理结果;
    所述服务器根据所述处理结果获取所述目标监控进程包括:所述服务器根据所述每个客户端的处理结果获取所述每个客户端的目标监控进程。
  9. 一种服务器的监控装置,包括:
    启动单元,被设置为使服务器启动客户端的目标监控进程;
    监测单元,被设置为在所述服务器启动所述目标监控进程之后,使所述服务器监测所述目标监控进程是否异常退出;
    第一发送单元,被设置为当所述服务器监测到所述目标监控进程异常退出时,使所述服务器向预设终端发送用于指示所述目标监控进程异常退出的告警信息,其中,所述预设终端根据所述告警信息向所述服务器发送运维指令;
    维护单元,被设置为使所述服务器根据所述运维指令对所述目标监控进程进行维护。
  10. 根据权利要求9所述的装置,其中,所述装置还包括:
    判断单元,被设置为在所述服务器启动所述客户端的目标监控进程之后,使所述服务器判断所述客户端的业务文件是否更新;
    第一重启单元,被设置为在所述服务器判断出所述客户端的所述业务文件更新时,所述服务器重启所述目标监控进程。
  11. 根据权利要求9所述的装置,其中,所述装置还包括:
    第二重启单元,被设置为在所述服务器启动所述客户端的目标监控进程之后,当所述服务器监测到所述目标监控进程异常退出时,所述服务器重启所述目标监控进程。
  12. 根据权利要求9所述的装置,其中,所述装置还包括:
    显示单元,被设置为在服务器启动客户端的目标监控进程之后,所述服务器根据所述目标监控进程显示所述客户端的状态,其中,所述客户端的状态包括以下至少之一:所述客户端的运行状态;所述客户端的负载状态;所述客户端的日志文件。
  13. 根据权利要求9至12中任意一项所述的装置,其中,所述装置还包括:
    第一获取单元,被设置为在所述服务器启动所述客户端的目标监控进程之前,使所述服务器根据处理结果获取所述目标监控进程,其 中,所述处理结果由所述客户端的端口对由预设WEB服务器转发的所述客户端的请求进行处理得到,所述客户端的请求用于指示请求所述WEB服务器允许所述客户端执行预设事件。
  14. 根据权利要求13所述的装置,其中,所述客户端包括多个客户端,所述第一获取单元被设置为使所述服务器根据每个客户端的处理结果获取所述每个客户端的目标监控进程,其中,所述每个客户端的处理结果由所述每个客户端的端口对由所述预设WEB服务器转发的所述每个客户端的请求进行处理得到。
  15. 根据权利要求9至12中任意一项所述的装置,其中,所述装置还包括:
    监听单元,被设置为在所述服务器启动所述客户端的目标监控进程之前,使所述服务器监听所述服务器的预设端口得到所述服务器的请求,其中,所述服务器的请求用于指示请求所述客户端执行预设事件;
    第二发送单元,被设置为使所述服务器向所述客户端的端口发送所述服务器的请求,其中,所述客户端的端口对所述服务器的请求进行处理,得到处理结果;
    第二获取单元,被设置为使所述服务器根据所述处理结果获取所述目标监控进程。
  16. 根据权利要求15所述的装置,其中,所述客户端包括多个客户端,
    所述第二发送单元被设置为使所述服务器向每个客户端的端口分发所述请求,其中,所述每个客户端的端口对所述请求进行处理,得到所述每个客户端的处理结果;
    所述第二获取单元被设置为使所述服务器根据所述每个客户端的处理结果获取所述每个客户端的目标监控进程。
  17. 一种终端,其中,所述终端被设置为执行程序代码,所述程序代码用于执行所述权利要求1至8中任意一项所述的服务器的监控方法中的 步骤。
  18. 一种存储介质,其中,所述存储介质被设置为存储程序代码,所述程序代码用于执行所述权利要求1至8中任意一项所述的服务器的监控方法中的步骤。
  19. 一种服务器的监控设备,包括:一个或多个处理器,以及一个或多个存储指令的存储器,其中,所述指令由所述处理器执行,所述处理器所要执行的程序单元包括:
    启动单元,被设置为使服务器启动客户端的目标监控进程;
    监测单元,被设置为在所述服务器启动所述目标监控进程之后,使所述服务器监测所述目标监控进程是否异常退出;
    第一发送单元,被设置为当所述服务器监测到所述目标监控进程异常退出时,使所述服务器向预设终端发送用于指示所述目标监控进程异常退出的告警信息,其中,所述预设终端根据所述告警信息向所述服务器发送运维指令;
    维护单元,被设置为使所述服务器根据所述运维指令对所述目标监控进程进行维护。
  20. 根据权利要求19所述的设备,其中,所述程序单元还包括:
    判断单元,被设置为在所述服务器启动所述客户端的目标监控进程之后,使所述服务器判断所述客户端的业务文件是否更新;
    第一重启单元,被设置为在所述服务器判断出所述客户端的所述业务文件更新时,所述服务器重启所述目标监控进程。
  21. 根据权利要求19所述的设备,其中,所述程序单元还包括:
    第二重启单元,被设置为在所述服务器启动所述客户端的目标监控进程之后,当所述服务器监测到所述目标监控进程异常退出时,所述服务器重启所述目标监控进程。
  22. 根据权利要求19所述的设备,其中,所述程序单元还包括:
    显示单元,被设置为在服务器启动客户端的目标监控进程之后,所述服务器根据所述目标监控进程显示所述客户端的状态,其中,所述客户端的状态包括以下至少之一:所述客户端的运行状态;所述客户端的负载状态;所述客户端的日志文件。
PCT/CN2017/111531 2016-12-08 2017-11-17 服务器的监控方法、装置和存储介质 WO2018103521A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US16/281,869 US10802906B2 (en) 2016-12-08 2019-02-21 Monitoring method and apparatus of server, and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201611123831.3 2016-12-08
CN201611123831.3A CN106844137B (zh) 2016-12-08 2016-12-08 服务器的监控方法和装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US16/281,869 Continuation US10802906B2 (en) 2016-12-08 2019-02-21 Monitoring method and apparatus of server, and storage medium

Publications (1)

Publication Number Publication Date
WO2018103521A1 true WO2018103521A1 (zh) 2018-06-14

Family

ID=59139110

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/111531 WO2018103521A1 (zh) 2016-12-08 2017-11-17 服务器的监控方法、装置和存储介质

Country Status (3)

Country Link
US (1) US10802906B2 (zh)
CN (1) CN106844137B (zh)
WO (1) WO2018103521A1 (zh)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109947618A (zh) * 2019-02-26 2019-06-28 上海鹰瞳医疗科技有限公司 应用程序状态监控方法、设备和系统
CN110032487A (zh) * 2018-11-09 2019-07-19 阿里巴巴集团控股有限公司 保活监控方法、装置及电子设备
CN110532322A (zh) * 2019-08-20 2019-12-03 腾讯云计算(北京)有限责任公司 运维交互方法、系统、计算机可读存储介质及设备
CN111352975A (zh) * 2020-03-04 2020-06-30 中国建设银行股份有限公司 数据质量管理方法、客户端、服务端和系统
CN114885010A (zh) * 2022-06-06 2022-08-09 中国工商银行股份有限公司 请求响应方法、装置、设备、介质

Families Citing this family (33)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106844137B (zh) 2016-12-08 2020-05-19 腾讯科技(深圳)有限公司 服务器的监控方法和装置
CN107579864B (zh) * 2017-10-16 2021-01-08 深圳大宇无限科技有限公司 请求监控方法、装置及服务器
CN110198230B (zh) * 2018-04-20 2022-04-15 腾讯科技(深圳)有限公司 应用的监控方法、装置、存储介质和电子装置
CN110445628B (zh) * 2018-05-02 2024-01-12 北京京东尚科信息技术有限公司 基于nginx的服务器及其部署、监控的方法和装置
CN108880912A (zh) * 2018-07-18 2018-11-23 北京力尊信通科技股份有限公司 一种it运维控制系统及方法
CN109522179B (zh) * 2018-10-12 2022-05-27 网易(杭州)网络有限公司 服务器运行状态的监控方法、装置、处理器及服务器
US11126457B2 (en) * 2019-03-08 2021-09-21 Xiamen Wangsu Co., Ltd. Method for batch processing nginx network isolation spaces and nginx server
CN112148420B (zh) * 2019-06-28 2024-04-02 杭州海康威视数字技术股份有限公司 基于容器技术的异常任务处理方法、服务器及云平台
CN110381042B (zh) * 2019-07-01 2021-11-12 北京字节跳动网络技术有限公司 一种平滑重启服务的方法、装置、介质和电子设备
CN110442493A (zh) * 2019-07-23 2019-11-12 贵阳朗玛通信科技有限公司 一种自动化服务管理系统及方法
CN111190707B (zh) * 2019-08-02 2023-04-28 腾讯科技(深圳)有限公司 一种数据处理方法及装置
CN110493355A (zh) * 2019-09-11 2019-11-22 无锡华云数据技术服务有限公司 一种系统日志的下载方法及装置
CN110704390B (zh) * 2019-09-17 2024-05-24 平安科技(深圳)有限公司 获取服务器维护脚本的方法、装置、电子设备及介质
CN110737560B (zh) * 2019-10-22 2023-10-20 北京百度网讯科技有限公司 一种服务状态检测方法、装置、电子设备和介质
CN111026431B (zh) * 2019-12-19 2023-08-29 上海米哈游天命科技有限公司 一种游戏软件的更新方法、装置及系统
CN111898116B (zh) * 2019-12-26 2021-09-24 长扬科技(北京)有限公司 一种基于高速缓存的工业白名单学习方法和系统
CN111459770A (zh) * 2020-04-01 2020-07-28 深圳市伊欧乐科技有限公司 服务器运行状态的告警方法、装置、服务器及存储介质
CN111522711B (zh) * 2020-04-17 2023-05-05 北京奇艺世纪科技有限公司 一种数据监控处理系统、方法、执行端、监控端及电子设备
CN111651322A (zh) * 2020-05-29 2020-09-11 山东中创软件商用中间件股份有限公司 一种进程监控告警方法、系统及装置
CN113765687B (zh) * 2020-06-05 2023-08-01 网联清算有限公司 服务器的故障报警方法、装置、设备及存储介质
CN112035312B (zh) * 2020-07-22 2023-05-26 大箴(杭州)科技有限公司 一种检测Kafka集群中Leader进程的可用状态方法及装置
CN111897698A (zh) * 2020-08-17 2020-11-06 杭州安恒信息安全技术有限公司 一种端口服务识别方法、装置、设备及可读存储介质
CN112052111B (zh) * 2020-09-08 2022-06-03 中国平安人寿保险股份有限公司 服务器异常预警的处理方法、装置、设备及存储介质
CN113778780B (zh) * 2020-11-27 2024-05-17 北京京东尚科信息技术有限公司 应用稳定性的确定方法、装置、电子设备和存储介质
CN112783514B (zh) * 2020-12-31 2022-06-14 罗普特科技集团股份有限公司 一种web前端项目部署管理的方法与系统
CN112769652B (zh) * 2021-01-14 2022-12-16 苏州浪潮智能科技有限公司 一种节点服务监控方法、装置、设备及介质
CN113542424B (zh) * 2021-07-19 2023-04-28 中移(杭州)信息技术有限公司 数据处理方法、装置、设备及可读存储介质
CN113608750B (zh) * 2021-08-04 2023-01-24 北京元年科技股份有限公司 监控组件的部署方法、装置、计算机设备以及存储介质
CN113535208A (zh) * 2021-08-05 2021-10-22 浙江万朋教育科技股份有限公司 基于python实现可视化集中维护和更新测试应用程序的方法
CN114124665A (zh) * 2021-11-25 2022-03-01 秦皇岛泰和安科技有限公司 应用程序异常的处理方法、装置、计算机设备及存储介质
CN114785861B (zh) * 2022-06-22 2022-12-13 飞狐信息技术(天津)有限公司 一种服务请求转发系统、方法、计算机设备和存储介质
CN115858295A (zh) * 2022-12-16 2023-03-28 长扬科技(北京)股份有限公司 一种监控告警方法、装置、计算设备及存储介质
CN116719702B (zh) * 2023-08-10 2024-03-26 深圳开源互联网安全技术有限公司 一种采集开源信息的方法、装置、电子设备及存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7733774B1 (en) * 2007-06-07 2010-06-08 Symantec Corporation Method and apparatus for detecting process failure
CN101729567A (zh) * 2009-12-14 2010-06-09 北京神州泰岳软件股份有限公司 基于Socket协议的Web告警监控系统及方法
US20110167491A1 (en) * 2010-01-06 2011-07-07 Alcatel-Lucent Usa Inc. Computer Security Process Monitor
CN102694871A (zh) * 2012-06-21 2012-09-26 甘肃省科学技术情报研究所 基于手机短信的服务器远程监控及故障处理的装置和方法
CN105512027A (zh) * 2015-11-26 2016-04-20 珠海多玩信息技术有限公司 进程状态监控方法和装置
CN106844137A (zh) * 2016-12-08 2017-06-13 腾讯科技(深圳)有限公司 服务器的监控方法和装置

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9183068B1 (en) * 2005-11-18 2015-11-10 Oracle America, Inc. Various methods and apparatuses to restart a server
WO2010068465A2 (en) * 2008-11-25 2010-06-17 Citrix Systems. Inc. Systems and methods for maintaining persistence by a backup virtual server
CN102063360A (zh) * 2010-11-29 2011-05-18 深圳市五巨科技有限公司 一种远程服务器监控报警的方法和装置
CN102591765A (zh) * 2011-12-31 2012-07-18 珠海市君天电子科技有限公司 一种进程自动管理系统
CN104391777B (zh) * 2014-11-12 2018-01-23 中标软件有限公司 基于Linux操作系统的云平台及其运行监控方法和装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7733774B1 (en) * 2007-06-07 2010-06-08 Symantec Corporation Method and apparatus for detecting process failure
CN101729567A (zh) * 2009-12-14 2010-06-09 北京神州泰岳软件股份有限公司 基于Socket协议的Web告警监控系统及方法
US20110167491A1 (en) * 2010-01-06 2011-07-07 Alcatel-Lucent Usa Inc. Computer Security Process Monitor
CN102694871A (zh) * 2012-06-21 2012-09-26 甘肃省科学技术情报研究所 基于手机短信的服务器远程监控及故障处理的装置和方法
CN105512027A (zh) * 2015-11-26 2016-04-20 珠海多玩信息技术有限公司 进程状态监控方法和装置
CN106844137A (zh) * 2016-12-08 2017-06-13 腾讯科技(深圳)有限公司 服务器的监控方法和装置

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110032487A (zh) * 2018-11-09 2019-07-19 阿里巴巴集团控股有限公司 保活监控方法、装置及电子设备
CN109947618A (zh) * 2019-02-26 2019-06-28 上海鹰瞳医疗科技有限公司 应用程序状态监控方法、设备和系统
CN110532322A (zh) * 2019-08-20 2019-12-03 腾讯云计算(北京)有限责任公司 运维交互方法、系统、计算机可读存储介质及设备
CN110532322B (zh) * 2019-08-20 2024-04-30 腾讯云计算(北京)有限责任公司 运维交互方法、系统、计算机可读存储介质及设备
CN111352975A (zh) * 2020-03-04 2020-06-30 中国建设银行股份有限公司 数据质量管理方法、客户端、服务端和系统
CN111352975B (zh) * 2020-03-04 2024-01-30 建信金融科技有限责任公司 数据质量管理方法、客户端、服务端和系统
CN114885010A (zh) * 2022-06-06 2022-08-09 中国工商银行股份有限公司 请求响应方法、装置、设备、介质
CN114885010B (zh) * 2022-06-06 2024-01-05 中国工商银行股份有限公司 请求响应方法、装置、设备、介质

Also Published As

Publication number Publication date
US20190179726A1 (en) 2019-06-13
CN106844137B (zh) 2020-05-19
US10802906B2 (en) 2020-10-13
CN106844137A (zh) 2017-06-13

Similar Documents

Publication Publication Date Title
WO2018103521A1 (zh) 服务器的监控方法、装置和存储介质
CN108551487B (zh) PaaS平台的应用部署方法、装置、服务器及存储介质
US10728340B2 (en) Internet of things (IOT) platform for device configuration management and support
US10776091B1 (en) Logging endpoint in an on-demand code execution system
CN111431740B (zh) 数据的传输方法、装置、设备及计算机可读存储介质
US11842222B2 (en) Using scripts to bootstrap applications with metadata from a template
JP2021524090A (ja) 代替サーバ名を使用する相互トランスポート層セキュリティを選択的に提供すること
US20160043892A1 (en) System and method for cloud based provisioning, configuring, and operating management tools
JP2017534107A (ja) 動的コードデプロイメント及びバージョニング
KR102056960B1 (ko) 온라인 스토어를 통해 소프트웨어 컴포넌트를 업데이트하는 기법
CA2969141C (en) Computer readable storage media for dynamic service deployment and methods and systems for utilizing same
US20170033980A1 (en) Agent manager for distributed transaction monitoring system
CN103207802B (zh) 软件操作系统及方法
CN115454636A (zh) 一种容器云平台gpu资源调度方法、装置及应用
US10367689B2 (en) Monitoring internet usage on home networks of panelist users
US10397071B2 (en) Automated deployment of cloud-hosted, distributed network monitoring agents
CN109729177B (zh) 用于生成信息的方法和装置
CN115632815A (zh) 一种数据的更新方法、装置、电子设备及存储介质
US20210392075A1 (en) Multilayer decentralized server network
US10216926B2 (en) Isolation of untrusted code in operating system without isolation capability
CN115080338A (zh) 一种自动监测边缘设备容器内应用进程的系统及方法
CA3057458C (en) System and method for self-deploying and self-adapting contact center components
US20230418669A1 (en) Optimizing execution of scheduled tasks
CN114064054A (zh) 一种微服务发布方法、装置、设备及存储介质
CN112711425A (zh) 服务运行方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17879270

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17879270

Country of ref document: EP

Kind code of ref document: A1