Server node operation method and apparatus

By using automated tools and messaging robots to work together, CDN server nodes can be remotely controlled, solving the problem of low fault handling efficiency and achieving rapid response and safe and reliable fault recovery.

CN119814622BActive Publication Date: 2025-10-24CHINA TELECOM CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411719598.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-27
Publication Date
2025-10-24
Estimated Expiration
2044-11-27

AI Technical Summary

Technical Problem

In existing technologies, CDN server node failure handling efficiency is low, resulting in a poor user experience, and requires manual operation by operators in a specific intranet environment.

Method used

The system communicates with message robots and server nodes through automated tools, receives operation instructions, sends network test commands, determines feasibility based on test results and operation types, and remotely controls the operation of server nodes.

Benefits of technology

It improves fault handling efficiency, reduces fault recovery time, enhances user experience, and strengthens operational safety and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119814622B_ABST
    Figure CN119814622B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a kind of server node operation method and device, the method comprises: receiving the operation instruction sent by the message robot;The operation instruction at least includes the network address of the server node to be operated and operation type;According to the network address, network test command is sent to the server node;Receive the network test result sent by the server node for the network test command;According to the network test result and the operation type, the feasibility that the service node executes the operation instruction is determined;According to the feasibility, the operation instruction is handled.The embodiment of the present application can be remotely controlled by automation tool to server node, without operating server node in specific intranet environment, improve the processing efficiency of server node fault, reduce the fault recovery time of server node, to improve the user experience of server node use.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] Embodiments of the present application relate to the technical field of Internet, in particular to a server node operation method, a server node operation device, an electronic device and a computer readable storage medium. BACKGROUND

[0002] In a specific implementation, a CDN (Content Delivery Network) is used to accelerate content transmission on the Internet, especially for large-scale distribution applications such as streaming media and downloads. The CDN includes a plurality of server nodes (nodes). The CDN can improve the loading speed and reliability of user access to website or application content by distributing content to nodes in multiple geographic locations around the world.

[0003] When a single server node in the CDN fails, the current solution is for an operator to log in to a network management WEB page to manually stop the heartbeat of the server node. The network management sends a message to the CDN through an MC interface to modify parameters. However, this solution takes a long time, usually 6-10 minutes, requires the operator to be familiar with complex operation methods, and requires a specific intranet environment for operation, resulting in low efficiency in handling server node failures and poor user experience with server nodes. SUMMARY

[0004] Embodiments of the present application aim to provide a server node operation method to solve the problem of low efficiency in handling server node failures and poor user experience with server nodes. The specific technical solution is as follows:

[0005] In a first aspect of the present application, a server node operation method is first provided, applied to an automated tool, the automated tool being in communication connection with a message robot and a server node, and the method comprising:

[0006] receiving an operation instruction sent by the message robot; the operation instruction at least including a network address of a server node to be operated and an operation type;

[0007] sending a network test command to the server node according to the network address;

[0008] receiving a network test result sent by the server node for the network test command;

[0009] determining the feasibility of the server node executing the operation instruction according to the network test result and the operation type;

[0010] processing the operation instruction according to the feasibility.

[0011] In an embodiment of the present application, determining the feasibility of the service node to execute the operation instruction according to the network test result and the operation type comprises:

[0012] When the network test result indicates that the server node is in a reachable state and the operation type is an isolation type, it is determined that the feasibility of the service node to execute the operation instruction is feasible.

[0013] When the network test result indicates that the server node is in an unreachable state and the operation type is an isolation type, it is determined that the feasibility of the service node to execute the operation instruction is infeasible.

[0014] In an embodiment of the present application, determining the feasibility of the service node to execute the operation instruction according to the network test result and the operation type comprises:

[0015] When the network test result indicates that the server node is in an unreachable state and the operation type is a recovery type, it is determined that the feasibility of the service node to execute the operation instruction is feasible.

[0016] When the network test result indicates that the server node is in a reachable state and the operation type is a recovery type, it is determined that the feasibility of the service node to execute the operation instruction is infeasible.

[0017] In an embodiment of the present application, determining the feasibility of the service node to execute the operation instruction according to the network test result and the operation type comprises:

[0018] When the network test result indicates that the server node is in a reachable state and the operation type is a shutdown type, it is determined that the feasibility of the service node to execute the operation instruction is feasible.

[0019] When the network test result indicates that the server node is in an unreachable state and the operation type is a shutdown type, it is determined that the feasibility of the service node to execute the operation instruction is infeasible.

[0020] In an embodiment of the present application, processing the operation instruction according to the feasibility comprises:

[0021] When the feasibility of the service node to execute the operation instruction is feasible, the operation instruction is sent to the server node according to the network address; wherein the server node is used to execute the operation instruction.

[0022] When the feasibility of the service node to execute the operation instruction is infeasible, prompt information that the server node is infeasible to execute the operation instruction is sent to the message robot.

[0023] In an embodiment of the present application, sending the operation instruction to the server node according to the network address comprises

[0024] sending approval information for the operation instruction to the message robot;

[0025] When receiving an approval result for the approval information that the operation instruction is executed, sending the operation instruction to the server node according to the network address.

[0026] In an embodiment of the present application, when the service node is feasible to execute the operation instruction, after sending the operation instruction to the server node according to the network address, the method further comprises:

[0027] receiving an execution result of the operation instruction sent by the server node;

[0028] sending the execution result of the operation instruction to the message robot.

[0029] The embodiment of the present application also discloses a server node control device applied to an automatic tool, the automatic tool being in communication connection with a message robot and a server node, and the device comprising:

[0030] an operation instruction receiving module configured to receive an operation instruction sent by the message robot, wherein the operation instruction at least comprises a network address of a server node to be operated and an operation type;

[0031] a network test command sending module configured to send a network test command to the server node according to the network address;

[0032] a network test result sending module configured to receive a network test result sent by the server node for the network test command;

[0033] a feasibility determining module configured to determine feasibility of the service node to execute the operation instruction according to the network test result and the operation type;

[0034] an operation instruction processing module configured to process the operation instruction according to the feasibility.

[0035] In another aspect of the embodiment of the present application, a computer readable storage medium is also provided, the computer readable storage medium storing instructions, when the instructions are run on a computer, causing the computer to execute the server node operation method.

[0036] In another aspect of the embodiments of the present application, a computer program product containing instructions, which, when executed on a computer, cause the computer to perform any of the above-mentioned server node operation method.

[0037] Compared with the related art, the embodiments of the present application have at least the following advantages:

[0038] In the embodiments of the present application, the automation tool receives the operation instruction sent by the message robot, the operation instruction at least including an operation type of a server node to be operated, sends a network test command to the server node according to the network address to obtain a network test result of the server node, determines the feasibility of the server node executing the operation instruction according to the network test result and the operation type, and then processes the operation instruction according to the feasibility. The embodiments of the present application can remotely control the server node through the automation tool, without the need to operate the server node in a specific intranet environment, thereby improving the processing efficiency of the server node fault, reducing the fault recovery time of the server node, and further improving the user experience of using the server node. In addition, the automation tool can predict the feasibility of the server node to the operation instruction according to the network test result and the operation type, and process the operation instruction according to the predicted feasibility. In this way, the operation instruction is sent to the server node only when the feasibility of the server node to the operation instruction is feasible, thereby enhancing the security and reliability of the server node operating based on the operation instruction. BRIEF DESCRIPTION OF DRAWINGS

[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings needed to be used in the embodiments or prior art description will be briefly introduced as follows.

[0040] Figure 1 A flowchart of a server node operation method provided in the embodiments of the present application;

[0041] Figure 2 A schematic diagram of an application environment provided in the embodiments of the present application;

[0042] Figures 3a-3d A schematic diagram of a user interface provided in the embodiments of the present application;

[0043] Figure 4 A structural block diagram of a server node operation device provided in the embodiments of the present application;

[0044] Figure 5 A structural block diagram of an electronic device provided in the embodiments of the present application. DETAILED DESCRIPTION

[0045] The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.

[0046] Referring to Figure 1 , a server node operation method provided in an embodiment of the present application, as shown in Figure 1 , applied to an automation tool, the automation tool is in communication connection with a message robot and a server node, and the method can specifically include the following steps:

[0047] Step 101, receiving an operation instruction sent by the message robot; the operation instruction at least includes a network address of a server node to be operated and an operation type.

[0048] Exemplarily, referring to Figure 2 , a schematic diagram of an application environment provided in an embodiment of the present application, including 201 automation tool, message robot 202 and server node 203, the automation tool is in communication connection with the message robot, so that the automation tool and the message robot can receive and send messages to each other, the automation tool is in communication connection with the server node (host / node), so that the automation tool can send a command or a message to the server node, and the server node can process based on the received command or message, and feed back the corresponding result to the automation tool according to the processing result of the command or message. Wherein, the server node can be a CDN node in a content distribution network (CDN), of course, it can also be a node in other server system, the embodiment of the present application does not need to be limited thereto.

[0049] In a specific embodiment, the automation tool (automation operation and maintenance tool) can be ansible, which is used for configuration management, application deployment, task execution and the like, the automation tool can send an operation instruction to the server node, so that the server node processes the operation instruction, and feeds back the execution result after processing the operation instruction, of course, the automation tool can also be other tools capable of realizing operation instruction processing, the embodiment of the present application does not need to be limited thereto.

[0050] The message robot is a robot tool in an enterprise-level communication tool. The enterprise-level communication integrates functions such as work communication and collaborative office. Based on the message robot in the enterprise-level communication, an operator can quickly generate an operation instruction based on a template provided by the message robot and send the operation instruction to an automation tool, and receive an execution result of the operation instruction forwarded by the automation tool. The server node can be a server node (CDN node) in a CDN (content distribution network), and is usually multiple, and can also be one. The server node is responsible for content distribution, and needs to be isolated when a fault occurs. The server node isolation refers to isolating the faulty server node from other server nodes through physical or logical means, preventing the problem of one server node from spreading to other server nodes, reducing potential security risks and fault impacts, and improving the stability and security of the overall content distribution network.

[0051] The automation tool is connected with an operation and maintenance system (an internal operation and maintenance platform or a process management system of the server node, and the operator can operate the server node through the operation and maintenance system). The operation and maintenance system is responsible for process control and permission management. The operation and maintenance system can receive the operation instruction sent by the message robot, and perform permission verification and processing on the received operation instruction, and send the operation instruction to the automation tool after the permission verification is successful and the processing is completed. The automation tool processes the server node according to the operation instruction.

[0052] In the embodiment of the application, the automation tool can receive the operation instruction sent by the operator through the message robot. The operation instruction at least includes a network address of a server node to be operated and an operation type. In a specific example, the automation tool receives an operation instruction containing an IP address (network address) of a CDN node to be operated, a device name, an operation type (isolation type / recovery type / shutdown type), a name of a message robot authorized person, a message robot ID (identity), and a name of a message robot user through the message robot. The message robot realizes the reception and transmission of cross-platform operation instructions, simplifies the operation process of the operator, improves the flexibility and convenience of the operation, and further improves the processing efficiency of the server node fault.

[0053] Reference Figure 3a A user interface schematic diagram provided in the embodiment of the application is provided. When the operator finds the server node with a fault, the operator can call out the message robot in the enterprise-level communication, and then the message robot can provide an input interface for the user. Based on the input interface, the operator can select the input template provided by the message robot to generate the operation instruction for the server node. For details, refer to Figure 3bBased on the input template, the operator can input the relevant information of the server node, such as the operation type, city, IP address, etc. After the operator completes the input based on the input template, the operation instruction can be generated by clicking the 'execute' button, and the operation instruction is submitted to the automation tool for further processing.

[0054] The embodiment of the application sends operation instructions and receives corresponding feedback and other information such as operation instructions through the message robot, and uses the automation tool ansible to automatically execute the operation instructions, thereby realizing the operation such as isolation / restoration / shutdown of the server node. Thus, the mobile phone and other portable terminals realize one-key isolation / restoration / shutdown of a single CDN node through the message robot, and realize the rapid management of the CDN node (server node) on the mobile device. The fault processing time of the CDN node is significantly shortened from the original 6-10 minutes to almost instant response, the fault processing efficiency is improved, the user perception is improved, and the operation personnel does not need to operate in a specific intranet environment, which greatly facilitates the operation execution.

[0055] It should be noted that the embodiments of the application may involve the use of user data. In actual application, user-specific personal data can be used in the schemes described herein within the scope allowed by applicable laws and regulations, for example, with the explicit consent of the user, with the actual notification to the user, etc.

[0056] Step 102, sending a network test command to the server node according to the network address.

[0057] Step 103, receiving the network test result sent by the server node for the network test command.

[0058] In a specific example, the network test command can be a ping command. Specifically, the ping command can be used to test the availability and delay of the network connection of the server node. Of course, the network test command can also be other commands that can be used to test the network state of the server node, and the embodiments of the application do not need to be limited thereto.

[0059] In the embodiment of the present application, the network test command is executed on the corresponding host (server node) according to the IP address of the server node input by the operator in the operation instruction, the server node executes the network test command correspondingly after receiving the network test command, the network test result is generated based on the execution result of the network test command, and is sent to the automation tool. The network test result can at least include that the server node is in a reachable state or that the server node is in an unreachable state. When the server node is in the reachable state, it means that the server node is accessible, that is, other server nodes or automation tools can be connected to the server node through the network. When the server node is in the unreachable state, it means that the server node is inaccessible, that is, other server nodes or automation tools cannot be connected to the server node through the network.

[0060] Step 104, determining the feasibility of the server node executing the operation instruction according to the network test result and the operation type.

[0061] Step 105, processing the operation instruction according to the feasibility.

[0062] In a specific implementation, the server node cannot normally execute part of the operation instruction due to various reasons. If the operation instruction received by the server node may not be normally executed, the repair speed of the server node fault is reduced.

[0063] In the embodiment of the present application, the automation tool can determine the feasibility of the server node executing the operation instruction according to the operation type in the operation instruction after obtaining the network test result of the server node, and then process the operation instruction according to the feasibility. In this way, the operation instruction can be sent to the server node for processing when the feasibility is feasible, so that the server node can normally receive and process the operation instruction, and the fault processing efficiency of the server node is ensured. In addition, the operation instruction can also be sent to the server node for processing when the feasibility is infeasible. Since the server node cannot receive the operation instruction or cannot execute the operation instruction, the fault processing efficiency of the server node is reduced, and unnecessary network resources are wasted. For example, the automation tool judges the server node state by pinging the dispatching network element RRS to obtain the network test result before executing the isolation operation instruction, and ensures the effectiveness of the operation.

[0064] In the server node operation described above, the automation tool receives an operation instruction sent by the message robot, the operation instruction at least including an operation type of a server node to be operated, sends a network test command to the server node according to a network address to obtain a network test result of the server node, determines the feasibility of the server node executing the operation instruction according to the network test result and the operation type, and then processes the operation instruction according to the feasibility. The embodiment of the present application can remotely control the server node through the automation tool, without the need to operate the server node in a specific intranet environment, thereby improving the processing efficiency of the server node fault, reducing the fault recovery time of the server node, and further improving the user experience of the server node. In addition, the automation tool can predict the feasibility of the server node executing the operation instruction according to the network test result and the operation type, and process the operation instruction according to the predicted feasibility. In this way, the operation instruction is sent to the server node only when the feasibility of the server node executing the operation instruction is feasible, thereby enhancing the security and reliability of the server node operating based on the operation instruction.

[0065] In an embodiment of the present application, determining the feasibility of the service node executing the operation instruction according to the network test result and the operation type comprises:

[0066] When the network test result indicates that the server node is in a reachable state and the operation type is an isolation type, it is determined that the feasibility of the service node executing the operation instruction is feasible.

[0067] When the network test result indicates that the server node is in an unreachable state and the operation type is an isolation type, it is determined that the feasibility of the service node executing the operation instruction is infeasible.

[0068] In the embodiment of the present application, if the network test result indicates that the server node is in a reachable state and the operation type is an isolation type, it is determined that the feasibility of the service node executing the operation instruction is feasible, and a message is sent to the operator through the message robot to inform the operator that the operation of the operation instruction of the isolation type is feasible. On the contrary, if the network test result indicates that the server node is in an unreachable state and the operation type is an isolation type, it is determined that the feasibility of the service node executing the operation instruction is infeasible, and a message is sent to the operator through the message robot to inform the operator that the operation of the operation instruction of the isolation type is infeasible, and the process ends.

[0069] In an embodiment of the present application, determining the feasibility of the service node executing the operation instruction according to the network test result and the operation type comprises:

[0070] When the network test result indicates that the server node is in an unreachable state and the operation type is a recovery type, it is determined that the service node is feasible to execute the operation instruction.

[0071] When the network test result indicates that the server node is in a reachable state and the operation type is a recovery type, it is determined that the service node is not feasible to execute the operation instruction.

[0072] In an embodiment of the present application, if the network test result indicates that the server node is in an unreachable state and the operation type is a recovery type, it is determined that the service node is feasible to execute the operation instruction, and a message robot is used to send a message to an operator to inform that the operation of the operation instruction of the recovery type is feasible; otherwise, if the network test result indicates that the server node is in a reachable state and the operation type is a recovery type, it is determined that the service node is not feasible to execute the operation instruction, and the message robot is used to send a message to the operator to inform that the operation of the operation instruction of the recovery type is not feasible, and the flow ends.

[0073] In an embodiment of the present application, the determination of the feasibility of the service node to execute the operation instruction according to the network test result and the operation type comprises:

[0074] When the network test result indicates that the server node is in a reachable state and the operation type is a shutdown type, it is determined that the service node is feasible to execute the operation instruction.

[0075] When the network test result indicates that the server node is in an unreachable state and the operation type is a shutdown type, it is determined that the service node is not feasible to execute the operation instruction.

[0076] In an embodiment of the present application, if the network test result indicates that the server node is in a reachable state and the operation type is a shutdown type, it is determined that the service node is feasible to execute the operation instruction, and a message robot is used to send a message to an operator to inform that the operation of the operation instruction of the shutdown type is feasible; otherwise, if the network test result indicates that the server node is in an unreachable state and the operation type is a shutdown type, it is determined that the service node is not feasible to execute the operation instruction, and the message robot is used to send a message to the operator to inform that the operation of the operation instruction of the shutdown type is not feasible, and the flow ends.

[0077] In the above embodiment, the automation tool sets an automation judgment mechanism, and based on the automation judgment mechanism, the server node can be judged whether to execute the operation instruction according to the network test result of the server node and the operation type of the operation instruction. The automation judgment mechanism ensures that the corresponding operation instruction is executed only when the network is reachable and the operation type is allowed, especially the operation instruction of the isolation type, thereby enhancing the safety and reliability of the operation.

[0078] In an embodiment of the present application, processing the operation instruction according to the feasibility can include:

[0079] When the feasibility of the service node executing the operation instruction is feasible, the operation instruction is sent to the server node according to the network address; wherein the server node is used to execute the operation instruction.

[0080] When the feasibility of the service node executing the operation instruction is infeasible, the message robot is sent prompt information that the server node is infeasible to execute the operation instruction.

[0081] In the embodiment of the present application, when the automation tool determines that the feasibility of the service node executing the operation instruction is feasible, the operation instruction can be sent to the corresponding server node according to the network address in the operation instruction. The server node executes the operation instruction after receiving the operation instruction and obtains the execution result. When the automation tool determines that the feasibility of the service node executing the operation instruction is infeasible, the message robot is sent prompt information that the server node is infeasible to execute the operation instruction, reminding the operator to perform the next step.

[0082] In an embodiment of the present application, sending the operation instruction to the server node according to the network address can include

[0083] The message robot is sent the approval information for the operation instruction.

[0084] When the approval result of agreeing to execute the operation instruction for the approval information is received, the operation instruction is sent to the server node according to the network address.

[0085] In the embodiment of the present application, if the feasibility of the server node executing the operation instruction is feasible according to the network test result and the isolation type, the operation instruction can be sent to the server node for processing, so that the server node can normally receive and process the operation instruction, and the fault processing efficiency of the server node is ensured. In some optional embodiments, in order to further ensure the safety of the server node, if the feasibility of the server node executing the operation instruction is feasible according to the network test result and the isolation type, an approval link can be added, and whether the operation instruction can be sent to the server node for processing is determined according to the approval result of the approval link. When the approval result of the approval information is received, the operation instruction is sent to the server node according to the network address, so that the server node executes the operation instruction.

[0086] Exemplarily, referring to Figure 3c If the network test result of the server node is reachable state by using the ping command, and the operation type is the isolation type, it is determined that the feasibility of the operation instruction is feasible, and the prompt information that the operation instruction is feasible is displayed on the message robot. At this time, the approval link can be entered. When the approval link is entered, the approval information of the operation instruction is sent to other message robots (which can include the message robot sending the operation instruction). If the operator agrees to execute the operation instruction, the approval result of the operation instruction can be received. When the approval result of the operation instruction is received, the operation instruction is sent to the server node according to the network address, so that the server node executes the operation instruction. After the message robot initiates the operation instruction, the process in the embodiment of the present application includes the necessary approval step, which ensures the correctness and legality of the operation based on the operation instruction, reduces the network and skill requirements of the maintenance personnel in the single server node fault scenario, and ensures the compliance and safety of the operation.

[0087] In the embodiment of the present application, after the operation instruction is approved, the automation tool ansible can execute the isolation command and other operation instructions on the remote host (server node) using the ansible interface, simulate denial of service through iptables, or restore service, or shut down the function by stopping the server node process. In the embodiment of the present application, the server node is isolated by using iptables instead of stopping the process. Compared with stopping the process, the impact on users is smaller when simulating denial of service using iptables, because the iptables rule is temporary and will not be permanently saved in the system. When the system is restarted, the iptables rule will be automatically cleared when the HMS device is restarted, and the system will return to the normal state. That is, even if the iptables rule is applied incorrectly, the system will return to normal after restarting and will not affect business continuity. This minimizes the impact on user services while maintaining the efficiency of the operation. In addition, the addition and deletion of iptables rules is very fast and can be completed in a few seconds. Therefore, when the server node needs to be isolated or restored, it can respond quickly and reduce the impact on users.

[0088] In an embodiment of the present application, when the service node can execute the operation instruction, after the operation instruction is sent to the server node according to the network address, the method further comprises:

[0089] receiving the execution result of the operation instruction sent by the server node;

[0090] sending the execution result of the operation instruction to the message robot.

[0091] In the embodiment of the present application, after the server node executes the operation instruction, the automation tool can receive the execution result of the operation instruction sent by the server node. At this time, the automation tool can send the execution result of the operation instruction, the server node that executes, the IP address, the applicant and other information to the message robot, so that the relevant personnel can know the current state of the server node. For details, please refer to Figure 3d

[0092] By sending the execution result of the operation instruction of the server node to the fault handling group or other related groups through the message robot, it is ensured that the operator can know the operation state in time. Through the result feedback mechanism, the operation is transparent, which is convenient for team cooperation and fault tracking.

[0093] In order for those skilled in the art to better understand the embodiments of the present application, the following will be described with specific examples.

[0094] For example, assume that the operation instruction received by the automation tool ansible is to isolate the CDN node. The specific steps are as follows:​

[0095] (1) Receive operation instructions: The operator issues an isolation instruction through the message robot, and the isolation instruction contains the IP address, device name and other related information of the CDN node.

[0096] (2) Determine the feasibility: The automation tool ansible executes the ping command of the RRS (server node) of the dispatching network element according to the IP address of the CDN node, checks whether the CDN node is reachable. If the CDN node is reachable, the message robot sends a message to confirm that the isolation operation can be performed; if the CDN node is not reachable, a message is sent to prompt that the operation is not feasible.

[0097] (3) Operation audit: If it is confirmed that the CDN node can be isolated, the message robot sends a message prompting that the operation needs to be audited, and the pre-determined operation audit group approves the operation. If the approval is passed, the operation execution link is entered, and if it is not passed, the process is ended.

[0098] (4) Perform isolation operation: The automation tool ansible sends an iptables command to the target CDN node to simulate denial of service and realize node isolation. After the automation tool ansible executes the command, the command execution result is checked, and the operation result is sent to the fault handling group through the message robot.

[0099] (5) Result feedback: The execution result is fed back to the fault handling group in real time. In addition to the execution result, detailed information such as the success or failure of isolation can also be included.

[0100] Through the above process, the CDN node is quickly isolated, the fault recovery time is reduced, the technical dependence on the operation and maintenance personnel is reduced, and the operation and maintenance efficiency is improved. In addition, the approval link is added, which reduces the network and skill requirements of the maintenance personnel in the single CDN node fault scenario, greatly reduces the fault recovery time, and has good popularization value.

[0101] In view of the high-definition business customer service pressure, the perception requirement is high, and the operation and maintenance characteristics are put forward. The requirement of fast isolation of fault equipment for high-definition maintenance support. Originally, the CDN node needs to be logged in to the network management WEB to stop the heartbeat, and the operation needs 6-10 minutes, which is too long, and needs a specific internal network environment. From the perspective of improving fault handling efficiency and user perception, the embodiment of the application proposes to realize the portable terminal such as mobile phone based on the automation tool ansible automation tool, and uses the message robot to isolate / recover / stop the server node in the single CDN.

[0102] The embodiments of the present application can be applied to high-definition service operation and maintenance, aiming to use message robots on mobile terminals and other portable terminals to one-key isolate, recover or shut down individual CDN nodes (server nodes) to quickly respond to failures and ensure user experience. In specific implementation, high-definition service refers to a service or a service that provides high-quality, high-resolution content, which usually includes video, audio, image, etc., aiming to provide users with clearer and more delicate visual and auditory experience. Key devices and technologies involved in high-definition service operation and maintenance can include:

[0103] CDN node (server node): responsible for content distribution and needs to be isolated when a failure occurs. Message robot: an enterprise-level communication tool for sending operation instructions and receiving result feedback. Ansible: an automation tool for executing remote operation commands (including operation instructions). Operation and maintenance system: an internal operation and maintenance platform or process management system responsible for process control and permission management.

[0104] The communication connection relationship between each device is as follows: the user initiates the operation instruction of isolation / recovery / shutdown through the message robot; the operation and maintenance system performs permission verification and processing on the received operation instruction command; the automation tool ansible executes the operation instruction according to the parameters transmitted by the operation and maintenance system to isolate / recover / shutdown the corresponding CDN node; the automation tool ansible feeds back the execution result to the user through the message robot.

[0105] In an optional embodiment: during the high-definition service operation and maintenance, a certain CDN node fails and needs to be quickly isolated to prevent affecting user experience. The specific steps can include:

[0106] 1. The user sends an operation instruction to isolate the failed CDN node through the message robot.

[0107] 2. The operation instruction can at least include the CDN node IP address, device name, operation type (isolation / recovery / shutdown), message robot authorized person name, message robot ID, and message robot user name to be operated.

[0108] 3. The automation tool ansible issues a ping measurement RRS command to the corresponding host according to the input CDN node IP address, parses the ping measurement result to obtain the network test result, and judges whether to perform the subsequent process in combination with the input operation type.

[0109] 4. If the operation type is isolation and the ping command measures that the RRS is reachable (the server node is in a reachable state by testing the server node through the ping command), a message is sent through the message robot to indicate that the CDN state supports isolation, and the subsequent process is entered; if the operation type is isolation and the ping command measures that the RRS is not reachable (the server node is in an unreachable state), a message is sent through the message robot to indicate that the CDN state does not support isolation, and the process ends.

[0110] 5. The automation tool ansible simulates denial of service through iptables to realize isolation of the fault CDN node.

[0111] 6. The automation tool ansible sends the execution result to the fault handling group through the message robot.

[0112] Among them, the automation tool ansible is connected to the operation and maintenance system to realize automatic execution of operation instructions. Ansible, as an automation tool, is responsible for receiving instructions from the message robot and executing corresponding operation instructions, ensuring the efficiency and consistency of the operation. The use of the automation tool ansible greatly simplifies the execution process of remote commands and improves the reliability and accuracy of the operation.

[0113] In an optional embodiment, the CDN node needs to be closed in a short time for maintenance or emergency repair, and the specific steps can include:

[0114] (1) The user issues an operation instruction of stopping the CDN node through the message robot.

[0115] (2) Ansible stops the HMS (Host Management System) process of the CDN node according to the operation instruction. The HMS process refers to a management process running on the server node, responsible for managing and monitoring various resources and states of the host.

[0116] (3) The execution result is fed back to the user (operation and maintenance personnel) through the message robot.

[0117] It should be noted that the embodiments of the present application can be divided into operation instruction generation, operation instruction sending, operation instruction approval, and execution result feedback, and other modules. Through modular design, each functional component is easy to configure and reuse, improving the flexibility and scalability of the system, providing convenience for the rapid deployment and online of subsequent functions, and having good popularization value.

[0118] By using the embodiment of the present application, the fault CDN node (server node) can be quickly isolated by an automatic tool, the fault recovery time of the server node is reduced, and the user experience is improved.(2) The operation threshold is reduced, the operation process is simplified, and ordinary operation personnel can also quickly respond to various sudden situations of the server node.(3) The execution result of the operation instruction is fed back through the message robot, the operation transparency of the server node is improved, the fault tracking of the server node is facilitated, and the user experience is further ensured.

[0119] It should be noted that, for the method embodiments, in order to simply describe, they are all described as a series of action combinations, but those skilled in the art should know that the embodiments of the present application are not limited to the action sequence described, because according to the embodiments of the present application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should know that the embodiments described in the specification all belong to preferred embodiments, and the actions involved are not necessarily essential for the embodiments of the present application.

[0120] Reference Figure 4 The structure block diagram of a server node operation device provided in the embodiment of the present application is shown as Figure 4 The device can specifically include the following modules:

[0121] The operation instruction receiving module 401 is configured to receive the operation instruction sent by the message robot; the operation instruction at least includes the network address of the server node to be operated and the operation type;

[0122] The network test command sending module 402 is configured to send a network test command to the server node according to the network address;

[0123] The network test result sending module 403 is configured to receive the network test result sent by the server node for the network test command;

[0124] The feasibility determining module 404 is configured to determine the feasibility of the server node executing the operation instruction according to the network test result and the operation type;

[0125] The operation instruction processing module 405 is configured to process the operation instruction according to the feasibility.

[0126] In an embodiment of the present application, the feasibility determining module 404 is configured to:

[0127] When the network test result represents that the server node is in a reachable state and the operation type is an isolation type, it is determined that the feasibility of the server node executing the operation instruction is feasible;

[0128] When the network test result represents that the server node is in an unreachable state and the operation type is an isolation type, it is determined that the service node is not feasible to execute the operation instruction.

[0129] In an embodiment of the present application, the feasibility determination module 404 is configured to:

[0130] When the network test result represents that the server node is in an unreachable state and the operation type is a recovery type, it is determined that the service node is feasible to execute the operation instruction.

[0131] When the network test result represents that the server node is in a reachable state and the operation type is a recovery type, it is determined that the service node is not feasible to execute the operation instruction.

[0132] In an embodiment of the present application, the feasibility determination module 404 is configured to:

[0133] When the network test result represents that the server node is in a reachable state and the operation type is a shutdown type, it is determined that the service node is feasible to execute the operation instruction.

[0134] When the network test result represents that the server node is in an unreachable state and the operation type is a shutdown type, it is determined that the service node is not feasible to execute the operation instruction.

[0135] In an embodiment of the present application, the operation instruction processing module 405 is configured to:

[0136] When the service node is feasible to execute the operation instruction, the operation instruction is sent to the server node according to the network address, and the server node is configured to execute the operation instruction.

[0137] When the service node is not feasible to execute the operation instruction, the message robot is sent prompt information that the server node is not feasible to execute the operation instruction.

[0138] In an embodiment of the present application, the root operation instruction processing module 405 is configured to:

[0139] The approval information for the operation instruction is sent to the message robot.

[0140] When the approval result of agreeing to execute the operation instruction for the approval information is received, the operation instruction is sent to the server node according to the network address.

[0141] In an embodiment of the present application, the device further comprises an execution result display module configured to:

[0142] receive the execution result of the operation instruction sent by the server node;

[0143] send the execution result of the operation instruction to the message robot.

[0144] In the embodiment of the present application, the automation tool receives the operation instruction sent by the message robot, the operation instruction at least comprising an operation type of a server node to be operated, sends a network test command to the server node according to the network address to obtain a network test result of the server node, determines the feasibility of the server node executing the operation instruction according to the network test result and the operation type, and then processes the operation instruction according to the feasibility. The embodiment of the present application can remotely control the server node through the automation tool, without the need to operate the server node in a specific intranet environment, thereby improving the processing efficiency of the server node fault, reducing the fault recovery time of the server node, and further improving the user experience of the server node. In addition, the automation tool can predict the feasibility of the server node to the operation instruction according to the network test result and the operation type, and process the operation instruction according to the predicted feasibility. In this way, the operation instruction will only be sent to the server node when the feasibility of the server node to the operation instruction is feasible, thereby enhancing the security and reliability of the server node based on the operation instruction.

[0145] For the above-mentioned device embodiment, since it is basically similar to the method embodiment, it is described relatively simply, and the related part is referred to the part of the method embodiment.

[0146] The embodiment of the present application further provides an electronic device, as shown in the figure, Figure 5 which comprises a processor 501, a communication interface 502, a memory 503 and a communication bus 504, wherein the processor 501, the communication interface 502 and the memory 503 complete mutual communication through the communication bus 504,

[0147] the memory 503 is configured to store a computer program;

[0148] the processor 501 is configured to execute the program stored in the memory 503, and realize the server node operation method in any of the above-mentioned embodiments.

[0149] The communication bus mentioned above can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For the convenience of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or only one type of bus.

[0150] The communication interface is used for communication between the terminal and other devices.

[0151] The memory can include a Random Access Memory (RAM) and can also include a non-volatile memory, such as at least one disk memory. Optionally, the memory can also be at least one storage device located away from the processor.

[0152] The processor mentioned above can be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; can also be a Digital Signal Processing (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component.

[0153] In another embodiment provided by the application, a computer readable storage medium is also provided, and the computer readable storage medium stores instructions, when the instructions are run on a computer, the computer executes the server node operation method in any of the above embodiments.

[0154] In another embodiment provided by the application, a computer program product containing instructions is also provided, when the instructions are run on a computer, the computer executes the server node operation method in any of the above embodiments.

[0155] In the embodiments described above, all or some of the steps can be implemented by software, hardware or firmware, or any combination thereof. When implemented in software, all or some of the steps can be implemented in the form of one or more computer programs which are stored in a computer readable medium. The computer readable medium can include one or more of a computer readable storage medium and a computer readable signal medium. The computer readable storage medium can include one or more of a magnetic storage medium, an optical storage medium, a solid state storage medium, and the like. The computer readable signal medium can include one or more of a computer readable electrical, optical, acoustical or other form of propagated signals including computer readable program code embodied in such signals. The computer readable program code can be downloaded from one computer readable medium to another computer readable medium. The computer readable program code can be executed by one or more processors associated with one or more computing devices. The computer readable medium can be a computer readable storage medium or a computer readable signal medium.

[0156] It should be noted that, in the description, relative terms such as first and second are used merely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises", "comprising", or any other variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without more limitations, an element preceded by "comprises... a" does not, without more constraints, foreclose the existence of additional identical elements in the process, method, article, or apparatus that comprises the recited element.

[0157] Each of the embodiments in the present specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other. Each of the embodiments focuses on the difference from other embodiments. In particular, for the system embodiments, since they are basically similar to the method embodiments, they are described more simply, and the related parts can be referred to the part of the description of the method embodiments.

[0158] The above merely provides the preferred embodiments of the application, and not intended to limit the protection scope of the application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the application shall fall within the protection scope of the application.

Claims

1. A method of operation of a server node, characterized by, The method is applied to an automation tool which is communicatively connected with a message robot and a server node, and comprises the following steps: receiving an operation instruction sent by the message robot; the operation instruction at least comprises a network address of a server node to be operated and an operation type; sending a network test command to the server node according to the network address; receiving a network test result sent by the server node for the network test command; determining the feasibility of the server node to execute the operation instruction according to the network test result and the operation type; processing the operation instruction according to the feasibility.

2. The method of claim 1, wherein, The determining the feasibility of the server node to execute the operation instruction according to the network test result and the operation type comprises: when the network test result represents that the server node is in a reachable state and the operation type is an isolation type, determining that the feasibility of the server node to execute the operation instruction is feasible; when the network test result represents that the server node is in an unreachable state and the operation type is an isolation type, determining that the feasibility of the server node to execute the operation instruction is unfeasible.

3. The method of claim 1, wherein, The determining the feasibility of the server node to execute the operation instruction according to the network test result and the operation type comprises: when the network test result represents that the server node is in an unreachable state and the operation type is a recovery type, determining that the feasibility of the server node to execute the operation instruction is feasible; when the network test result represents that the server node is in a reachable state and the operation type is a recovery type, determining that the feasibility of the server node to execute the operation instruction is unfeasible.

4. The method of claim 1, wherein, The determining the feasibility of the server node to execute the operation instruction according to the network test result and the operation type comprises: when the network test result represents that the server node is in a reachable state and the operation type is a shutdown type, determining that the feasibility of the server node to execute the operation instruction is feasible; when the network test result represents that the server node is in an unreachable state and the operation type is a shutdown type, determining that the feasibility of the server node to execute the operation instruction is unfeasible.

5. The method according to any one of claims 1 to 4, characterized in that, The processing the operation instruction according to the feasibility comprises: when the feasibility of the server node to execute the operation instruction is feasible, sending the operation instruction to the server node according to the network address; wherein the server node is used for executing the operation instruction; when the feasibility of the server node to execute the operation instruction is unfeasible, sending prompt information that the server node is unfeasible to execute the operation instruction to the message robot.

6. The method of any one of claim 5, characterized in that, The sending the operation instruction to the server node according to the network address comprises sending approval information for the operation instruction to the message robot; when receiving an approval result of agreeing to execute the operation instruction for the approval information, sending the operation instruction to the server node according to the network address.

7. The method of any one of claims 5, wherein, When the server node is feasible to execute the operation instruction, after the operation instruction is sent to the server node according to the network address, the method further comprises: receiving the execution result of the operation instruction sent by the server node; sending the execution result of the operation instruction to the message robot.

8. A server node control device, characterized in that: The device is applied to an automatic tool, and the automatic tool is in communication connection with the message robot and the server node, and the device comprises: An operation instruction receiving module is configured to receive an operation instruction sent by the message robot, and the operation instruction at least comprises a network address of a server node to be operated and an operation type; A network test command sending module is configured to send a network test command to the server node according to the network address; A network test result sending module is configured to receive a network test result sent by the server node for the network test command; A feasibility determining module is configured to determine the feasibility of the server node to execute the operation instruction according to the network test result and the operation type; An operation instruction processing module is configured to process the operation instruction according to the feasibility.

9. An electronic device, comprising: The device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus; The memory is configured to store a computer program; The processor is configured to execute the program stored on the memory, and implement the method steps in any one of claims 1-7.

10. A computer-readable storage medium having stored thereon a computer program, characterized in that, The program is executed by the processor to implement the method in any one of claims 1-7.

Citation Information

Patent Citations

  • Network evaluation method based on cloud server, equipment, storage medium and device

    CN108616389A

  • Quality of service analysis method, system and device, server and electronic equipment

    CN110956349A