Data processing method and device
By introducing a centralized controller into the data center network, monitoring and managing the operating status of network equipment, deciding whether to allow the failed device to restart, the business impact problems caused by multi-device failures are solved, and network stability and service continuity are achieved.
Patent Information
- Application Number
- CN202310118711.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-03
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2043-02-03
AI Technical Summary
In a data center network, when multiple network devices fail at the same time, automatic restart may cause large-scale devices to become unavailable or service termination, resulting in business impact.
Introduce a centralized controller to monitor and subscribe to the operating status information of network devices in real time, and decide whether to allow failed devices to restart based on global policies to avoid business damage caused by batch restart.
It effectively avoids business damage caused by automatic restart of large-scale devices, and ensures network stability and service continuity.
Smart Images

Figure CN116155691B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of data processing technology, and in particular to a data processing method, a data processing device, an electronic device, and a storage medium. Background Art
[0002] As the bandwidth required for east-west traffic in data center networks exceeds that required for north-south traffic, the current network architecture has evolved from the traditional tree topology architecture to the CLOS architecture, a large-scale networking architecture. Figure 1 As shown in the figure, the network devices in the CLOS architecture are mainly composed of switches with different roles (such as TOR, LEAF, SPINE, etc.). Different LEAFs and TORs and their corresponding servers can form different points of delivery (POD). In the CLOS architecture, equal-cost multipath routing (ECMP) can be formed. When a single network device fails, it will only affect part of the bandwidth without causing the entire network to be unavailable. When multiple network devices fail in batches, if each network device restarts itself, it is likely to cause a large number of devices to be unavailable or all services to be terminated, which will have a significant impact on the service business. Summary of the invention
[0003] According to a first aspect of an embodiment of the present disclosure, a data processing method is provided, comprising: monitoring the operating status of multiple electronic devices according to a preset cycle; determining the operating status of the multiple electronic devices in a time period from a starting time point to the target time point of the current preset cycle when an abnormality is detected in a first electronic device at a target time point of the current preset cycle; and determining a control operation for the first electronic device according to the operating status of the multiple electronic devices.
[0004] Optionally, monitoring the operating status of multiple electronic devices according to a preset period includes: within one of the preset periods, determining the operating status of the first electronic device and the operating status of a second electronic device based on received status abnormality information of the first electronic device; the second electronic device is an electronic device among the multiple electronic devices other than the first electronic device.
[0005] Optionally, the control operation on the first electronic device is determined according to the operating status of the multiple electronic devices, including: determining the number of electronic devices that have abnormal conditions within the time period according to the operating status of the multiple electronic devices; when the number is less than or equal to a preset threshold, controlling the first electronic device to restart; when the number is greater than the preset threshold, controlling the first electronic device not to restart.
[0006] Optionally, the method further includes: if abnormal conditions are detected in at least two electronic devices within a preset period, determining control operations on the at least two electronic devices based on the physical locations and / or device functions of the at least two electronic devices among the multiple electronic devices.
[0007] Optionally, the control operation on the at least two electronic devices is determined based on the physical positions and / or device functions of the at least two electronic devices among the multiple electronic devices, including: if the at least two electronic devices are in different groups, controlling all of the at least two electronic devices to restart; if the at least two electronic devices are in the same group, controlling a preset number of faulty electronic devices among the at least two electronic devices to restart according to the order in which the faults of the at least two electronic devices occurred.
[0008] Optionally, the control operation on the at least two electronic devices is determined based on the physical positions and / or device functions of the at least two electronic devices among the multiple electronic devices, including: if the device functions of the at least two electronic devices are different, controlling all of the at least two electronic devices to restart; if there are electronic devices with the same device functions among the at least two electronic devices, controlling a preset number of faulty electronic devices among the at least two electronic devices to restart according to the order in which the faults of the at least two electronic devices occur.
[0009] Optionally, the control operation on the at least two electronic devices is determined based on the physical positions and / or device functions of the at least two electronic devices among the multiple electronic devices, including: if the at least two electronic devices are in the same group and the device functions of the at least two electronic devices are different, controlling all of the at least two electronic devices to restart; if the at least two electronic devices are in the same group and there are electronic devices with the same device functions among the at least two electronic devices, controlling a preset number of faulty electronic devices among the at least two electronic devices to restart in the order in which the faults of the at least two electronic devices occur.
[0010] According to a second aspect of an embodiment of the present disclosure, a data processing method is provided, the method comprising: when an abnormal situation occurs in an electronic device, sending status abnormality information to a control device; receiving a control instruction for the electronic device from the control device; wherein the control device is used to control multiple electronic devices including the electronic device, the control device determines the operating status of the multiple electronic devices within a time period from a starting time point of a current preset cycle to a target time point when the status abnormality information is received, and determines the control instruction for the electronic device according to the operating status of the multiple electronic devices.
[0011] Optionally, the method also includes: starting a timer while sending the abnormal status information; if the control instruction is not received after the timer expires, controlling the electronic device to restart; if the control instruction is received before the timer expires, performing a control operation on the electronic device according to the control instruction.
[0012] According to a third aspect of an embodiment of the present disclosure, a data processing device is provided, comprising: a monitoring unit, configured to monitor the operating status of multiple electronic devices according to a preset cycle; a control unit, configured to: when an abnormal situation is detected in a first electronic device at a target time point of a current preset cycle, determine the operating status of the multiple electronic devices in a time period from a starting time point of the current preset cycle to the target time point; and determine a control operation for the first electronic device according to the operating status of the multiple electronic devices.
[0013] Optionally, monitoring the operating status of multiple electronic devices according to a preset period includes: within one of the preset periods, determining the operating status of the first electronic device and the operating status of a second electronic device based on received status abnormality information of the first electronic device; the second electronic device is an electronic device among the multiple electronic devices other than the first electronic device.
[0014] Optionally, the control operation on the first electronic device is determined according to the operating status of the multiple electronic devices, including: determining the number of electronic devices that have abnormal conditions within the time period according to the operating status of the multiple electronic devices; when the number is less than or equal to a preset threshold, controlling the first electronic device to restart; when the number is greater than the preset threshold, controlling the first electronic device not to restart.
[0015] Optionally, the control unit is configured to: if abnormal conditions are detected in at least two electronic devices within a preset period, determine control operations on the at least two electronic devices based on the physical positions and / or device functions of the at least two electronic devices among the multiple electronic devices.
[0016] Optionally, the control unit is configured to: if the at least two electronic devices are in different groups, control all of the at least two electronic devices to restart; if the at least two electronic devices are in the same group, control a preset number of faulty electronic devices among the at least two electronic devices to restart according to the order in which the faults of the at least two electronic devices occur.
[0017] Optionally, the control unit is configured to: if the device functions of the at least two electronic devices are different, control all of the at least two electronic devices to restart; if there are electronic devices with the same device functions among the at least two electronic devices, control a preset number of faulty electronic devices among the at least two electronic devices to restart according to the order in which the faults of the at least two electronic devices occur.
[0018] Optionally, the control unit is configured to: if the at least two electronic devices are in the same group and the device functions of the at least two electronic devices are different, control all of the at least two electronic devices to restart; if the at least two electronic devices are in the same group and there are electronic devices with the same device functions among the at least two electronic devices, control a preset number of faulty electronic devices among the at least two electronic devices to restart according to the order in which the faults of the at least two electronic devices occur.
[0019] According to a fourth aspect of an embodiment of the present disclosure, a data processing device is provided, the device comprising: a sending unit, configured to send status abnormality information to a control device when an abnormal situation occurs in the electronic device; a receiving unit, configured to receive control instructions for the electronic device from the control device; wherein the control device is used to control multiple electronic devices including the electronic device, the control device determines the operating status of the multiple electronic devices within a time period from a starting time point of a current preset cycle to a target time point when the status abnormality information is received, and determines the control instructions for the electronic devices according to the operating status of the multiple electronic devices.
[0020] Optionally, the device also includes: a control unit, configured to start a timer while sending the status abnormality information; if the control instruction is not received after the timer expires, control the electronic device to restart; if the control instruction is received before the timer expires, perform a control operation on the electronic device according to the control instruction.
[0021] According to a fifth aspect of an embodiment of the present disclosure, an electronic device is provided, which may include: at least one processor; at least one memory storing computer-executable instructions, wherein the computer-executable instructions, when executed by the at least one processor, cause the at least one processor to execute the data processing method as described above.
[0022] According to a sixth aspect of an embodiment of the present disclosure, a computer-readable storage medium storing instructions is provided, which, when executed by at least one processor, prompts the at least one processor to execute the data processing method as described above.
[0023] According to a seventh aspect of an embodiment of the present disclosure, a computer program product is provided, wherein instructions in the computer program product are executed by at least one processor in an electronic device to perform the data processing method as described above.
[0024] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects: the control operation of the faulty device is decided according to the operating status of all electronic devices (such as network devices, switches), thereby effectively avoiding business damage caused by batch operations of electronic devices (such as batch restart).
[0025] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.
[0027] Figure 1 It is a structural diagram of the data center network;
[0028] Figure 2 This is a schematic diagram of the switch monitoring software;
[0029] Figure 3 is a data processing architecture diagram according to an embodiment of the present disclosure;
[0030] Figure 4 is a flow chart of a data processing method according to an embodiment of the present disclosure;
[0031] Figure 5 is a flow chart of a data processing method according to another embodiment of the present disclosure;
[0032] Figure 6 is a flow chart of a data processing method performed by a centralized controller side according to an embodiment of the present disclosure;
[0033] Figure 7 is a flow chart of a data processing method performed by a switch side according to an embodiment of the present disclosure;
[0034] Figure 8 is a block diagram of a data processing device in a centralized controller according to an embodiment of the present disclosure;
[0035] Fig. 9 is a block diagram of a data processing device in a switch according to an embodiment of the present disclosure;
[0036] Fig.10 is a block diagram of a data processing device according to an embodiment of the present disclosure;
[0037] Fig.11 is a block diagram of an electronic device according to an embodiment of the present disclosure.
[0038] Throughout the drawings, it should be noted that like reference numbers are used to depict the same or similar elements, features, and structures. DETAILED DESCRIPTION
[0039] The following description with reference to the accompanying drawings is provided to assist in a comprehensive understanding of the embodiments of the present disclosure as defined by the claims and their equivalents. Various specific details are included to assist in understanding, but these details are considered to be exemplary only. Therefore, one of ordinary skill in the art will recognize that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. In addition, descriptions of well-known functions and structures are omitted for clarity and brevity.
[0040] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The implementation methods described in the following examples do not represent all implementation methods consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the attached claims.
[0041] It should be noted that the phrase "at least one of the items" in the present disclosure includes three types of parallel situations: "any one of the items", "a combination of any number of the items", and "all of the items". For example, "including at least one of A and B" includes the following three parallel situations: (1) including A; (2) including B; (3) including A and B. Another example is "executing at least one of step 1 and step 2" which means the following three parallel situations: (1) executing step 1; (2) executing step 2; (3) executing step 1 and step 2.
[0042] Currently, in the switch implementation in the data center network, each switch runs a monitoring program to monitor the operation of the operating system and application software, such as Figure 2As shown in the figure, when a serious and unrecoverable error is found in the software, in order to stop the loss in time, the monitoring program will send a restart command to the operating system, causing the switch to automatically restart. When the switch restarts, the operating system and application programs will usually return to normal. However, when batch failures occur in the operating systems or application software of multiple switches, if each switch restarts itself, it is likely to cause a large number of devices to become unavailable or all services to be terminated, which will have a significant impact on the service business.
[0043] Due to the above shortcomings of the existing solutions, the present disclosure proposes a centralized control network device (switch) restart method. The present disclosure introduces a centralized controller, which can subscribe to the operating status information of all network devices in the data center network. When a serious software error occurs in a network device, the centralized controller can collect the operating status information of the network device. At the same time, the centralized controller can also obtain the operating status information of other network devices, so it can be decided whether to allow the faulty network device to restart through a global policy.
[0044] Hereinafter, according to various embodiments of the present disclosure, the method, apparatus, and system of the present disclosure will be described in detail with reference to the accompanying drawings.
[0045] Figure 3 It is a data processing architecture diagram according to an embodiment of the present disclosure.
[0046] Reference Figure 3 , which can be found in Figure 1 A centralized controller (i.e., a control device) is introduced into the data center network shown in FIG. Figure 3 The switches in can be Figure 1 The centralized controller communicates with each switch in the data center network and subscribes to the operating status information of each switch. The centralized controller can decide whether to restart the faulty device based on the operating status information of the global device and related policies.
[0047] As an example, when a serious software error occurs in a switch (such as an operating system kernel problem, a core software failure problem, a routing software failure problem, a control chip forwarding software failure problem, etc.), the centralized controller can receive an operation failure message, and then make a decision based on the global device situation to determine whether to allow the switch to restart, and finally send the decision result to the switch through an instruction, and the switch executes the instruction sent by the centralized controller. When the faulty device receives a restart instruction sent by the centralized controller, the faulty device can be restarted directly. When the faulty device receives a non-restart instruction sent by the centralized controller, the faulty device can maintain the current state without restarting, and can wait for subsequent manual intervention for processing.
[0048] By introducing a centralized control decision-making approach, we can effectively avoid the problem of business damage caused by automatic restart of a large number of devices.
[0049] Figure 4 is a flowchart of a data processing method according to an embodiment of the present disclosure. Figure 4 The illustrated method may be executed by a centralized controller of the present disclosure.
[0050] Reference Figure 4 In step S401, the operating status of multiple electronic devices is monitored according to a preset period. For example, the multiple electronic devices may be multiple switches in a data center network. The control device (also referred to as a centralized controller) may monitor the operating status of each switch in real time. The centralized controller may monitor the operating status of each switch in real time in each monitoring period according to a preset monitoring period and make corresponding decisions.
[0051] For example, the centralized controller performs decisions according to a monitoring period, which belongs to a relative time period and has nothing to do with whether a message / messages are received from the switch. Since the centralized controller is an independent device that controls the switch, the monitoring period of the centralized controller can be configured / changed by the user / operator according to actual needs.
[0052] The centralized controller can monitor the operation status of each switch by subscribing to the operation status information of each switch. For example, the operation status information of all switches can be subscribed through Telemetry technology (i.e., a technology for remotely collecting data from devices at high speed). The above examples are only exemplary and the present disclosure is not limited thereto.
[0053] Taking a preset monitoring cycle as an example, when a switch fails, the switch may send abnormal state information to the centralized controller. The centralized controller may determine that the switch is currently in a faulty operating state based on the abnormal state information. In the present disclosure, when a switch fails, abnormal state information may be sent to the centralized controller, and when the switch operates normally, there is no need to send information to the centralized controller. Therefore, the centralized controller may determine that an electronic device that does not send abnormal state information is in a normal state, and an electronic device that sends abnormal state information is in an abnormal state. That is, the centralized controller can determine whether a switch fails by monitoring whether each switch sends abnormal state information.
[0054] It is possible to pre-set which fault conditions the switch needs to send operation fault information to the centralized controller. For example, when a serious software fault such as an operating system kernel problem, a core software fault problem, a routing software fault problem, a control chip forwarding software fault problem, etc. occurs in the switch, the switch may be triggered to send operation abnormality information to the centralized controller. The above examples are merely exemplary, and the present disclosure is not limited thereto.
[0055] In step S402, when an abnormal situation is detected in the first electronic device at the target time point of the current monitoring cycle, the operating status of all electronic devices in the time period from the start time point to the target time point of the current monitoring cycle is determined. Here, the first electronic device is one of multiple electronic devices monitored by the centralized controller. The target time point can be understood as the time point when the abnormal situation of the electronic device is detected. Within a preset period, the operating status of the first electronic device and the operating status of the second electronic device are determined based on the received status abnormality information of the first electronic device. Here, the second electronic device is an electronic device other than the first electronic device among the multiple electronic devices.
[0056] As an example, in the current monitoring cycle, when the centralized controller receives the abnormal operation information of a certain switch, it can determine the number of switches that have abnormal conditions between the start time point of the current monitoring cycle and the time point of receiving the abnormal operation information. In other words, the centralized controller needs to determine whether other abnormal operation information is received before receiving the current abnormal operation information in the current monitoring cycle.
[0057] In step S403, a control operation on the first electronic device is determined according to the operating states of all the electronic devices.
[0058] The centralized controller can determine the number of electronic devices that have experienced abnormal conditions between the start time point of the current monitoring cycle and the time point of receiving the current operation abnormality information based on the operating status of all electronic devices; when the number is less than or equal to a preset threshold, the first electronic device can be controlled to restart; when the number is greater than the preset threshold, the first electronic device is controlled not to restart.
[0059] For example, the monitoring cycle is set to 1 minute, and the preset threshold is set to 3 times. When the centralized controller receives the abnormal state information of a switch for the first time within a monitoring cycle, it can be determined that the number of switches that have failed in the current monitoring cycle is 1, which is less than the preset threshold 3. In this case, the centralized controller can send a restart instruction to the switch so that the switch can be restarted. Afterwards, after the centralized controller receives the abnormal state information of a switch for the second time, it can be determined that the number of switches that have failed in the current monitoring cycle is 2, which is less than the preset threshold 3. In this case, the centralized controller can send a restart instruction to the switch that sent the information for the second time, so that the switch can be restarted. Next, after the centralized controller receives the abnormal state information of a switch for the third time, it can be determined that the number of switches that have failed in the current monitoring cycle is 3, which is equal to the preset threshold 3. In this case, the centralized controller can send a restart instruction to the switch that sent the information for the third time, so that the switch can be restarted. After the centralized controller receives the abnormal state information of a switch for the fourth time, it can be determined that the number of switches that have failed in the current monitoring period is 4, which is greater than the preset threshold value 3. In this case, the centralized controller can send a no restart instruction to the switch that sent the information for the fourth time, so that the switch does not perform a restart operation. In this embodiment, the switch that sends the abnormal state information each time can be the same switch or a different switch. The above examples are only exemplary, and the present disclosure is not limited thereto.
[0060] In each monitoring cycle, after receiving abnormal status information of a switch, the centralized controller can determine how many switches are currently faulty in the current monitoring cycle, and thereby determine whether to send a restart instruction or a non-restart instruction to the switch currently sending information.
[0061] According to another embodiment of the present disclosure, if abnormal conditions are detected in at least two electronic devices within a preset period, control operations on the at least two electronic devices are determined based on the physical locations and / or device functions of the at least two electronic devices in a plurality of electronic devices.
[0062] As an example, if at least two electronic devices detected are in different groups, all of the at least two electronic devices can be controlled to restart; if at least two electronic devices are in the same group, the electronic devices with a preset number of faults in the at least two electronic devices are controlled to restart according to the order in which the faults of the at least two electronic devices occur. For example, if abnormal conditions are detected in 4 electronic devices within a preset period, if these 4 electronic devices are in different groups (such as in different PODs), each electronic device can be restarted directly. If these 4 electronic devices are in the same group (such as in the same POD), no more than x electronic devices can be restarted within a period, and these x electronic devices can be restarted in the order of the faults. x is a preset value and can be changed according to the configuration. For example, when x=3, the first three electronic devices are restarted in the order of the faults within this period, and the fourth electronic device is not restarted.
[0063] As another example, if the device functions of at least two detected electronic devices are different, then all of the at least two electronic devices can be controlled to restart; if there is an electronic device with the same device function among the at least two electronic devices, then according to the order in which the failures of the at least two electronic devices occur, the electronic devices with a preset number of failures among the at least two electronic devices are controlled to restart. For example, within a preset period, abnormal conditions are detected in four electronic devices. If these four electronic devices have different roles (different roles can be understood as performing different functions / having different roles), such as ToR, Leaf, Spine, and SuperSpine, each electronic device can be restarted. If they belong to the same role (for example, all are Leaf), no more than x electronic devices can be restarted within a period. These x electronic devices can be restarted in the order of failure. x is a preset value and can be changed according to the configuration.
[0064] As another example, if at least two electronic devices detected are in the same group and the device functions of at least two electronic devices are different, then all of the at least two electronic devices are controlled to restart; if at least two electronic devices are in the same group and there is an electronic device with the same device function among at least two electronic devices, then according to the order in which the failures of the at least two electronic devices occur, the electronic devices with a preset number of failures among the at least two electronic devices are controlled to restart. For example, within a preset period, two electronic devices are detected to have abnormal conditions. If the two electronic devices are in the same POD and have different roles, such as ToR and Leaf, each electronic device can be restarted. If the two electronic devices are in the same POD and have the same role, no more than x electronic devices can be restarted within a period. These x electronic devices can be restarted in the order of failure. x is a preset value and can be changed according to the configuration.
[0065] In addition, when the number of faulty devices in a cycle exceeds a preset number of faults, in addition to the order in which the faults occur, the devices may be restarted in sequence according to, for example, the priority of each faulty device or according to a preset rule or order.
[0066] According to an embodiment of the present disclosure, a centralized controller can collect the operating status of all switches in a data center network and decide whether a faulty switch can be restarted based on global information, thereby effectively avoiding business damage caused by batch restart of network devices.
[0067] Figure 5 is a flowchart of a data processing method according to an embodiment of the present disclosure. Figure 5 The method shown can be executed by all electronic devices (network devices / switches) in the data center network. Each electronic device is communicatively connected to the centralized controller of the present disclosure.
[0068] Reference Figure 5 In step S501, when an abnormal situation occurs in the electronic device, status abnormality information is sent to the control device.
[0069] In step S502, a control instruction for the electronic device is received from the control device.
[0070] The control device (which may be called a centralized controller) may control all electronic devices in the data center network. The centralized controller may determine the operating status of all electronic devices during the period from the start time point of the current preset cycle to the target time point when the abnormal status information is received, and determine the control instructions for the current electronic device according to the operating status of all electronic devices.
[0071] For example, the centralized controller can determine the number of electronic devices that have experienced abnormal conditions between the start time point of the current monitoring cycle and the time point of receiving the current operation abnormality information based on the operating status of all electronic devices; when the number is less than or equal to a preset threshold, the current faulty electronic device can be controlled to restart; when the number is greater than the preset threshold, the current faulty electronic device is controlled not to restart.
[0072] In addition, each electronic device starts a timer while sending the abnormal status information. If no control instruction is received after the timer expires, the electronic device can restart automatically. If a control instruction is received before the timer expires, the control operation on the electronic device is performed according to the control instruction.
[0073] For example, if the timer is set to 2 minutes, if the faulty device still does not receive a control instruction from the centralized controller 2 minutes after sending the operation fault information, the faulty device can restart automatically. If the faulty device receives a control instruction from the centralized controller within 2 minutes after sending the operation fault information, the faulty device will perform the corresponding operation according to the received control instruction.
[0074] According to the embodiments of the present disclosure, the network device can also be supported to restart itself, thereby preventing the situation where the centralized controller cannot be connected and avoiding the problem of continuous damage to the business caused by the online operation of the faulty device.
[0075] Figure 6 is a flowchart of a data processing method performed by a centralized controller side according to an embodiment of the present disclosure.
[0076] Reference Figure 6 , the centralized controller can subscribe to the operating status information of all switches in the data center network through Telemetry technology. When the centralized controller receives the operating abnormality information sent by a switch, the centralized controller can determine whether there are other abnormal switches within a period (such as 1 minute) to the current time point. If there are no other abnormal switches, the centralized controller can issue a restart instruction to the switch. If there are other abnormal switches, the centralized controller determines whether the number of abnormal switches exceeds the threshold (such as 3 times). If it exceeds the threshold, a restart instruction cannot be issued to the current faulty switch, and the process ends. If it does not exceed the threshold, the centralized controller can issue a restart instruction to the switch, and the process ends. In addition, as described above, a restart instruction or a restart instruction cannot be issued to the current faulty switch according to the physical location and / or device function of the faulty electronic device.
[0077] The centralized control network device restart solution disclosed in the present invention can effectively avoid the business damage caused by batch restart of network devices, and can support network device restart, which can avoid the business damage caused by abnormal equipment running online.
[0078] Figure 7 The invention is a flow chart of a data processing method performed by a switch side according to an embodiment of the present invention.
[0079] Reference Figure 7, when the switch detects that a serious software problem has occurred in the machine, the switch can notify the remote controller (i.e., centralized controller, control device) of the problem information (i.e., abnormal operation information). At this time, the switch sets a timer to prevent the situation where it cannot connect to the centralized controller. The switch determines whether the timer has timed out. If the switch does not receive a control instruction from the centralized controller after the timer times out, the switch restarts itself. Before the timer times out, the switch can determine whether a control instruction issued by the centralized controller has been received. The centralized controller can send a control instruction to the switch through remote procedure call RPC technology (such as gPRC technology, a high-performance, open source, and general RPC framework). If no control instruction is received, continue to determine whether the timer has timed out. If a control instruction is received, determine whether it is a restart instruction. If the control instruction received is not to restart, the switch does not perform a restart operation and the process ends. If the control instruction received by the switch is to restart. The switch restarts and the process ends.
[0080] The embodiments of the present disclosure have strong fault tolerance. When the centralized controller cannot be connected to the switch, the switch can also restart and recover.
[0081] Figure 8 is a block diagram of a data processing device in a centralized controller according to an embodiment of the present disclosure. Figure 8 The data processing device 800 shown may be a part of a centralized controller that is communicatively connected to each switch in a data center network, or may serve as a centralized controller.
[0082] Reference Figure 8 , the data processing device 800 may include a monitoring unit 801 and a control unit 802. Each unit in the data processing device 800 may be implemented by one or more modules, and the name of the corresponding module may vary according to the type of the module. In various embodiments, some modules in the data processing device 800 may be omitted, or additional modules may be included. In addition, the modules / elements according to various embodiments of the present disclosure may be combined to form a single entity, and thus the functions of the corresponding modules / elements before the combination may be equivalently performed.
[0083] The monitoring unit 801 can monitor the operating status of multiple electronic devices according to a preset period. The multiple electronic devices are multiple switches in a data center network.
[0084] The monitoring unit 801 can determine the operating status of the first electronic device and the operating status of the second electronic device according to the received abnormal status information of the first electronic device within one of the preset periods; the second electronic device is an electronic device other than the first electronic device among the multiple electronic devices. For example, the monitoring unit 801 can receive abnormal status information from an electronic device that has an abnormal situation within one of the preset periods; determine the operating status of the multiple electronic devices within the preset period according to the abnormal status information, wherein the electronic device that has not sent the abnormal status information is determined to be in a normal state, and the electronic device that has sent the abnormal status information is determined to be in an abnormal state.
[0085] For each of the multiple electronic devices, the control unit 802 can perform the following operations: when an abnormal situation is detected in the electronic device at the target time point of the current preset cycle, determine the operating status of the multiple electronic devices in the time period from the starting time point of the current preset cycle to the target time point; determine the control operation of the electronic device according to the operating status of the multiple electronic devices.
[0086] Optionally, the control unit 802 may determine the number of electronic devices that have abnormal conditions within the time period based on the operating status of the multiple electronic devices; when the number is less than or equal to a preset threshold, control the electronic devices to restart; when the number is greater than the preset threshold, control the electronic devices not to restart.
[0087] As another example, if abnormal conditions are detected in at least two electronic devices within a preset period, the control unit 802 may determine control operations on the at least two electronic devices based on the physical locations and / or device functions of the at least two electronic devices among the multiple electronic devices.
[0088] For example, if the at least two electronic devices are in different groups, the control unit 802 can control all of the at least two electronic devices to restart; if the at least two electronic devices are in the same group, the control unit 802 can control a preset number of faulty electronic devices among the at least two electronic devices to restart according to the order in which the faults of the at least two electronic devices occur.
[0089] For another example, if the device functions of the at least two electronic devices are different, the control unit 802 may control all of the at least two electronic devices to restart; if there are electronic devices with the same device functions among the at least two electronic devices, the control unit 802 may control a preset number of faulty electronic devices among the at least two electronic devices to restart according to the order in which the faults of the at least two electronic devices occurred.
[0090] For another example, if the at least two electronic devices are in the same group and the device functions of the at least two electronic devices are different, the control unit 802 may control all of the at least two electronic devices to restart; if the at least two electronic devices are in the same group and there is an electronic device with the same device function among the at least two electronic devices, the control unit 802 may control a preset number of faulty electronic devices among the at least two electronic devices to restart according to the order in which the faults of the at least two electronic devices occurred.
[0091] Referenced above Figure 3 , Figure 4 and Figure 6 The operation of the data processing method on the centralized controller side is described in detail and will not be repeated here.
[0092] Fig. 9 is a block diagram of a data processing device in a switch according to an embodiment of the present disclosure. Fig. 9 The data processing device 900 shown may be part of a switch.
[0093] Reference Fig. 9 , the data processing device 900 may include a sending unit 901, a receiving unit 902, and a control unit 903. Each unit in the data processing device 900 may be implemented by one or more modules, and the name of the corresponding module may vary according to the type of the module. In various embodiments, some modules in the data processing device 900 may be omitted, or additional modules may be included. In addition, the modules / elements according to various embodiments of the present disclosure may be combined to form a single entity, and thus the functions of the corresponding modules / elements before the combination may be equivalently performed.
[0094] When an abnormal situation occurs in the electronic device, the sending unit 901 can send abnormal status information to the control device.
[0095] The receiving unit 902 may receive a control instruction for the electronic device from the control device, wherein the control device is used to control multiple electronic devices including the electronic device, and the control device determines the operating status of the multiple electronic devices within a time period from a starting time point of a current preset cycle to a target time point when the abnormal status information is received, and determines the control instruction for the electronic device according to the operating status of the multiple electronic devices.
[0096] The control unit 903 may start a timer while sending the abnormal state information; if the control instruction has not been received after the timer expires, control the electronic device to restart; if the control instruction is received before the timer expires, perform a control operation on the electronic device according to the control instruction. Here, the control instruction may include a restart instruction for restarting the electronic device and a non-restart instruction for not restarting the electronic device.
[0097] Referenced above Figure 3 , Figure 5 and Figure 7 The operation of the data processing method on the switch side is described in detail and will not be repeated here.
[0098] Fig.10 It is a structural diagram of a data processing device in the hardware operating environment of an embodiment of the present disclosure. Fig.10 The data processing device shown can be implemented as a part of a centralized controller to execute the data processing method for the centralized controller, and can also be implemented as a part of a switch to execute the data processing method for the switch.
[0099] like Fig.10 As shown, the data processing device 1000 may include: a processing component 1001, a communication bus 1002, a network interface 1003, an input / output interface 1004, a memory 1005, and a power supply component 1006. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The input / output interface 1004 may include a video display (such as a liquid crystal display), a microphone and a speaker, and a user interaction interface (such as a keyboard, a mouse, a touch input device, etc.), and optionally, the input / output interface 1004 may also include a standard wired interface and a wireless interface. The network interface 1003 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity interface). The memory 1005 may be a high-speed random access memory or a stable non-volatile memory. The memory 1005 may also be a storage device independent of the aforementioned processing component 1001.
[0100] Those skilled in the art will understand that Fig.10 The structure shown in the figure does not constitute a limitation on the data processing device 1000, and may include more or less components than shown in the figure, or combine some components, or arrange the components differently.
[0101] like Fig.10 As shown, the memory 1005 as a storage medium may include an operating system (such as a MAC operating system), a data storage module, a network communication module, a user interface module, a program for implementing the present disclosure, and a database.
[0102] exist Fig.10 In the data processing device 1000 shown, the network interface 1003 is mainly used for data communication with external electronic devices / terminals; the input and output interface 1004 is mainly used for data interaction with users; the processing component 1001 and the memory 1005 in the data processing device 1000 can be set in the data processing device 1000, and the data processing device 1000 calls the program stored in the memory 1005 and various APIs provided by the operating system through the processing component 1001 to execute the data processing method provided by the embodiment of the present disclosure.
[0103] The processing component 1001 may include at least one processor, and the memory 1005 stores a computer executable instruction set, and when the computer executable instruction set is executed by at least one processor, the data processing method according to the embodiment of the present disclosure is executed. However, the above examples are only exemplary, and the present disclosure is not limited thereto.
[0104] The processing component 1001 can control the components included in the data processing device 1000 by executing a program.
[0105] As an example, the data processing device 1000 may be a PC, a tablet device, a personal digital assistant, a smart phone, or other device capable of executing the above instruction set. Here, the data processing device 1000 is not necessarily a single electronic device, but may also be any device or circuit collection capable of executing the above instructions (or instruction sets) individually or in combination. The data processing device 1000 may also be part of an integrated control system or a system manager, or may be configured as a portable electronic device interconnected with a local or remote (e.g., via wireless transmission) interface.
[0106] In the data processing device 1000, the processing component 1001 may include a central processing unit (CPU), a graphics processing unit (GPU), a programmable logic device, a dedicated processor system, a microcontroller or a microprocessor. As an example and not a limitation, the processing component 1001 may also include an analog processor, a digital processor, a microprocessor, a multi-core processor, a processor array, a network processor, etc.
[0107] The processing component 1001 can run instructions or codes stored in the memory, wherein the memory 1005 can also store data. Instructions and data can also be sent and received over the network via the network interface 1003, wherein the network interface 1003 can use any known transmission protocol.
[0108] The memory 1005 may be integrated with the processing component 1001, for example, by placing RAM or flash memory within an integrated circuit microprocessor or the like. In addition, the memory 1005 may include a separate device, such as an external disk drive, a storage array, or any other storage device that may be used by a database system. The memory and the processing component 1001 may be operationally coupled, or may communicate with each other, such as through an I / O port, a network connection, etc., so that the processing component 1001 can read data stored in the memory 1005.
[0109] According to an embodiment of the present disclosure, an electronic device may be provided. Fig.11 It is a block diagram of an electronic device according to an embodiment of the present disclosure. The electronic device 1100 may include at least one memory 1102 and at least one processor 1101. The at least one memory 1102 stores a set of computer executable instructions. When the computer executable instruction set is executed by the at least one processor 1101, the data processing method according to the embodiment of the present disclosure is executed.
[0110] Processor 1101 may include a central processing unit (CPU), a graphics processing unit (GPU), a programmable logic device, a dedicated processor system, a microcontroller or a microprocessor. As an example and not limitation, processor 1101 may also include an analog processor, a digital processor, a microprocessor, a multi-core processor, a processor array, a network processor, etc.
[0111] The memory 1102 as a storage medium may include an operating system, a data storage module, a network communication module, a user interface module, a program for executing the method of the present disclosure, and a database.
[0112] The memory 1102 may be integrated with the processor 1101, for example, RAM or flash memory may be arranged within an integrated circuit microprocessor or the like. In addition, the memory 1102 may include a separate device, such as an external disk drive, a storage array, or any other storage device that can be used by a database system. The memory and the processor may be operatively coupled, or may communicate with each other, such as through an I / O port, a network connection, etc., so that the processor can read files stored in the memory.
[0113] In addition, the electronic device 1100 may also include a video display (such as a liquid crystal display) and a user interaction interface (such as a keyboard, a mouse, a touch input device, etc.) All components of the electronic device 1100 may be connected to each other via a bus and / or a network.
[0114] As an example, the electronic device 1100 may be a PC, a tablet device, a personal digital assistant, a smart phone, or other device capable of executing the above-mentioned instruction set. Here, the electronic device 1100 is not necessarily a single electronic device, but may also be any device or circuit collection capable of executing the above-mentioned instructions (or instruction sets) individually or in combination. The electronic device 1100 may also be part of an integrated control system or system manager, or may be configured as a portable electronic device interconnected with a local or remote (e.g., via wireless transmission) interface.
[0115] Those skilled in the art will understand that Fig.11 The structures shown in the drawings do not constitute limitations of the drawings and may include more or less components than shown in the drawings, or combine certain components, or arrange the components differently.
[0116] According to an embodiment of the present disclosure, a computer-readable storage medium storing instructions may also be provided, wherein when the instructions are executed by at least one processor, the at least one processor is prompted to execute the data processing method according to the present disclosure. Examples of computer-readable storage media here include: read-only memory (ROM), random access programmable read-only memory (PROM), electrically erasable programmable read-only memory (EEPROM), random access memory (RAM), dynamic random access memory (DRAM), static random access memory (SRAM), flash memory, non-volatile memory, CD-ROM, CD-R, CD+R, CD-RW, CD+RW, DVD-ROM, DVD-R, DVD+R, DVD-RW, DVD+RW, DVD-RAM, BD-ROM, BD-R, BD-R LTH, BD-RE, Blu-ray or optical disk storage, hard disk drive (HDD), solid state drive (SSD), card storage (such as, multimedia card, secure digital (SD) card or extreme digital (XD) card), magnetic tape, floppy disk, magneto-optical data storage device, optical data storage device, hard disk, solid state disk and any other device, any other device is configured to store computer programs and any associated data, data files and data structures in a non-transitory manner and provide the computer programs and any associated data, data files and data structures to a processor or computer so that the processor or computer can execute the computer program. The computer program in the above-mentioned computer-readable storage medium can be run in an environment deployed in a computer device such as a client, a host, an agent device, a server, etc. In addition, in one example, the computer program and any associated data, data files and data structures are distributed on a networked computer system, so that the computer program and any associated data, data files and data structures are stored, accessed and executed in a distributed manner by one or more processors or computers.
[0117] According to an embodiment of the present disclosure, a computer program product may also be provided, and instructions in the computer program product may be executed by a processor of a computer device to complete the above data processing method.
[0118] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0119] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A data processing method, characterized in that: The method comprises: monitoring the operating status of a plurality of electronic devices according to a preset period; When an abnormality is detected in the first electronic device at a target time point of the current preset cycle, determining the operating states of the multiple electronic devices in a time period from the start time point of the current preset cycle to the target time point; determining a control operation on the first electronic device according to the operating states of the plurality of electronic devices, The method further includes: if at least two electronic devices are detected to be abnormal within a preset period, determining control operations on the at least two electronic devices according to the physical locations and / or device functions of the at least two electronic devices in the plurality of electronic devices, Wherein, determining the control operation on the at least two electronic devices according to the physical positions and / or device functions of the at least two electronic devices in the plurality of electronic devices includes: If the at least two electronic devices are in different groups, controlling all of the at least two electronic devices to restart; If the at least two electronic devices are in the same group, controlling a preset number of faulty electronic devices among the at least two electronic devices to restart according to the order in which the faults of the at least two electronic devices occur; If the device functions of the at least two electronic devices are different, controlling all of the at least two electronic devices to restart; If there are electronic devices with the same device function among the at least two electronic devices, controlling a preset number of faulty electronic devices among the at least two electronic devices to restart according to the order in which the faults of the at least two electronic devices occur; If the at least two electronic devices are in the same group and the device functions of the at least two electronic devices are different, controlling all of the at least two electronic devices to restart; If the at least two electronic devices are in the same group and there is an electronic device with the same device function among the at least two electronic devices, then according to the failure occurrence order of the at least two electronic devices, a preset number of failed electronic devices among the at least two electronic devices are controlled to restart.
2. The method according to claim 1, characterized in that Monitor the operating status of multiple electronic devices according to preset cycles, including: Within a preset period, the operating status of the first electronic device and the operating status of a second electronic device are determined according to the received abnormal status information of the first electronic device; the second electronic device is an electronic device other than the first electronic device among the multiple electronic devices.
3. A data processing method, characterized in that: The method comprises: When an abnormal situation occurs in the electronic device, the abnormal status information is sent to the control device; receiving a control instruction for the electronic device from the control device; The control device is used to control a plurality of electronic devices including the electronic device. The control device determines the operating status of the plurality of electronic devices within a time period from a starting time point of a current preset cycle to a target time point of receiving the abnormal status information, and determines control instructions for the electronic devices according to the operating status of the plurality of electronic devices. If at least two electronic devices are detected to be abnormal within one of the preset periods, the control device determines control operations on the at least two electronic devices according to the physical locations and / or device functions of the at least two electronic devices in the plurality of electronic devices, Wherein, if the at least two electronic devices are in different groups, the control device controls all of the at least two electronic devices to restart; if the at least two electronic devices are in the same group, the control device controls a preset number of electronic devices with faults among the at least two electronic devices to restart according to the failure occurrence order of the at least two electronic devices; if the device functions of the at least two electronic devices are different, the at least two electronic devices are controlled to restart; if there are electronic devices with the same device functions among the at least two electronic devices, a preset number of electronic devices with faults among the at least two electronic devices are controlled to restart according to the failure occurrence order of the at least two electronic devices; if the at least two electronic devices are in the same group and the at least two electronic devices have different device functions, the at least two electronic devices are controlled to restart; if the at least two electronic devices are in the same group and there are electronic devices with the same device functions among the at least two electronic devices, a preset number of electronic devices with faults among the at least two electronic devices are controlled to restart according to the failure occurrence order of the at least two electronic devices.
4. The method according to claim 3, characterized in that Also includes: Starting a timer while sending the abnormal status information; If the control instruction is not received after the timer expires, controlling the electronic device to restart; If the control instruction is received before the timer expires, a control operation on the electronic device is performed according to the control instruction.
5. A data processing device, characterized in that: The device comprises: A monitoring unit, configured to monitor the operating status of a plurality of electronic devices according to a preset period; A control unit configured to: When an abnormality is detected in the first electronic device at a target time point of the current preset cycle, determining the operating states of the multiple electronic devices in a time period from the start time point of the current preset cycle to the target time point; determining a control operation on the first electronic device according to the operating states of the plurality of electronic devices, The control unit is further configured to: if abnormal conditions are detected in at least two electronic devices within a preset period, determine control operations on the at least two electronic devices according to the physical locations and / or device functions of the at least two electronic devices in the plurality of electronic devices; The control unit is further configured as follows: if the at least two electronic devices are in different groups, then all of the at least two electronic devices are controlled to restart; if the at least two electronic devices are in the same group, then according to the failure occurrence order of the at least two electronic devices, a preset number of electronic devices with faults among the at least two electronic devices are controlled to restart; if the at least two electronic devices have different device functions, then all of the at least two electronic devices are controlled to restart; if there are electronic devices with the same device functions among the at least two electronic devices, then according to the failure occurrence order of the at least two electronic devices, a preset number of electronic devices with faults among the at least two electronic devices are controlled to restart; if the at least two electronic devices are in the same group and the at least two electronic devices have different device functions, then all of the at least two electronic devices are controlled to restart; if the at least two electronic devices are in the same group and there are electronic devices with the same device functions among the at least two electronic devices, then according to the failure occurrence order of the at least two electronic devices, a preset number of electronic devices with faults among the at least two electronic devices are controlled to restart.
6. A data processing device, characterized in that: The device comprises: A sending unit, configured to send abnormal state information to the control device when an abnormal situation occurs in the electronic device; A receiving unit, configured to receive a control instruction for the electronic device from the control device; The control device is used to control a plurality of electronic devices including the electronic device. The control device determines the operating status of the plurality of electronic devices within a time period from a starting time point of a current preset cycle to a target time point of receiving the abnormal status information, and determines control instructions for the electronic devices according to the operating status of the plurality of electronic devices. If at least two electronic devices are detected to be abnormal within one of the preset periods, the control device determines control operations on the at least two electronic devices according to the physical locations and / or device functions of the at least two electronic devices in the plurality of electronic devices, Wherein, if the at least two electronic devices are in different groups, the control device controls all of the at least two electronic devices to restart; if the at least two electronic devices are in the same group, the control device controls a preset number of electronic devices with faults among the at least two electronic devices to restart according to the order in which the faults of the at least two electronic devices occur; if the device functions of the at least two electronic devices are different, the control device controls all of the at least two electronic devices to restart; if there is an electronic device with the same device function among the at least two electronic devices, the control device controls a preset number of electronic devices with faults among the at least two electronic devices to restart according to the order in which the faults of the at least two electronic devices occur; if the at least two electronic devices are in the same group and the at least two electronic devices have different device functions, the control device controls all of the at least two electronic devices to restart; if the at least two electronic devices are in the same group and there is an electronic device with the same device function among the at least two electronic devices, the control device controls a preset number of electronic devices with faults among the at least two electronic devices to restart according to the order in which the faults of the at least two electronic devices occur.
7. An electronic device, characterized in that: include: at least one processor; at least one memory storing computer executable instructions, Wherein, when the computer executable instructions are executed by the at least one processor, the at least one processor is prompted to execute the data processing method according to any one of claims 1 to 4.
8. A computer-readable storage medium storing instructions, characterized in that: When the instructions are executed by at least one processor, the at least one processor is prompted to execute the data processing method according to any one of claims 1 to 4.
9. A computer program product, wherein instructions in the computer program product are executed by at least one processor in an electronic device to perform the data processing method according to any one of claims 1 to 4.
