A task scheduling method, system and related components of a virtualization platform system

By monitoring and analyzing the network connection status of task nodes, determining and handling network failures, the migration of virtual machine tasks is achieved, and the operation problem of virtual machines in the event of network communication failure is solved, and the reliability of the virtualization platform system is improved.

CN115080211BActive Publication Date: 2025-04-25JINAN INSPUR DATA TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210764561.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-30
Publication Date
2025-04-25
Estimated Expiration
2042-06-30

AI Technical Summary

Technical Problem

The existing high-reliability policies in the prior art fail to effectively solve the problem of virtual machine network communication failure, resulting in the virtual machine communication function being damaged and the tasks cannot be run normally.

Method used

By monitoring the network connection status of each task node, it is determined whether the network speed is lower than the preset speed and the duration exceeds the minimum failure time. If so, it is determined that a network failure has occurred. Determine whether there are task nodes that meet task migration conditions based on the number and time of network failures, and migrate all tasks on their nodes to other task nodes.

Benefits of technology

Effectively eliminate the hidden dangers of network communication of virtual machines, ensure the normal communication and operation of virtual machines, and improve the overall reliability of the virtualization platform system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115080211B_ABST
    Figure CN115080211B_ABST
Patent Text Reader

Abstract

The present application discloses a task scheduling method, system and related components of a virtualization platform system, which relates to the field of virtualization platform systems and is used to schedule tasks of virtual machines. The method includes: monitoring the network connection status of each task node; judging whether the network speed of each task node is lower than the preset speed and the duration exceeds the minimum fault duration, and if so, determining that a network fault occurs in the task node; determining whether there is a first task node that meets the task migration conditions among all task nodes according to the number and time of network faults occurring in each task node; when there is a first task node, migrating all tasks on the first task node to other task nodes. The present application monitors and analyzes the network connection status, and when a task node meets the migration conditions, migrates all tasks on the node to other task nodes, thereby eliminating the network communication risks of the virtual machine and ensuring the normal communication and operation of the virtual machine.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of virtualization platform systems, and in particular to a task scheduling method, system and related components of a virtualization platform system. Background Art

[0002] At present, the high availability strategy for virtual machines in the prior art mainly transfers the virtual machines on the physical node to other hosts when the physical node itself fails, so as to ensure the continuity and high availability of the tasks on the virtual machines. However, this high availability strategy does not take into account the problem of network communication failures. If there is a problem with the network communication of the physical node, even if the virtual machine on the node remains running, it cannot run the task according to the normal communication process under the premise that the communication function of the virtual machine is damaged.

[0003] Therefore, how to provide a solution to the above technical problems is a problem that technicians in this field need to solve. Summary of the invention

[0004] In view of this, the purpose of the present invention is to provide a task scheduling method, system and related components of a virtualization platform system that considers the influence of network communication status and performs task transfer on a virtual machine according to the network communication status. The specific scheme is as follows:

[0005] A task scheduling method for a virtualization platform system, comprising:

[0006] Monitor the network connection status of each task node; the network connection status includes network speed and corresponding timestamp;

[0007] Determine whether the network speed of each task node is lower than a preset speed and the duration exceeds a minimum fault duration, and if so, determine that a network fault occurs at the task node;

[0008] Determine whether there is a first task node that meets the task migration condition among all the task nodes according to the number and time of the network failure occurring in each of the task nodes;

[0009] When the first task node exists, migrating all tasks on the first task node to other task nodes;

[0010] For any of the task nodes, the task migration conditions include:

[0011] The duration of the network failure exceeds the maximum duration.

[0012] Or, the network failure has occurred multiple times in history and meets the network flapping determination condition.

[0013] Preferably, the network oscillation determination condition includes:

[0014] In a preset time period up to the current moment, the number of times the network failure occurs exceeds a first preset value.

[0015] Preferably, the network oscillation determination condition includes:

[0016] In a preset time period up to the current moment, the cumulative frequency of the network failures exceeds a second preset value;

[0017] Accordingly, the process of determining the cumulative oscillation frequency includes:

[0018] In the preset time period up to the current moment, when the interval from the occurrence moment of the i-1th network failure to the occurrence moment of the i-th network failure is less than the interval from the occurrence moment of the i-2th network failure to the occurrence moment of the i-1th network failure, the current cumulative oscillation frequency is increased by 1; i is a positive integer not less than 3 and not greater than the current number of network failures.

[0019] Preferably, the process of determining whether there is a first task node that meets the task migration condition among all the task nodes according to the number and time of the network failure occurring in each of the task nodes further includes:

[0020] In the preset time period up to the current moment, if the number of times the network failure occurs in the current task node does not exceed 2 times, it is determined that the current task node does not meet the network oscillation determination condition.

[0021] Preferably, the network oscillation determination condition includes:

[0022] In a preset time period up to the current moment, the continuous oscillation frequency of the network fault has exceeded a third preset value for many times in history;

[0023] Accordingly, the process of determining the continuous oscillation frequency includes:

[0024] In the preset time period up to the current moment, when the interval from the time when the i-1th network failure occurs to the time when the i-th network failure occurs is less than the interval from the time when the i-2th network failure occurs to the time when the i-1th network failure occurs, the current continuous oscillation frequency is increased by 1;

[0025] When the interval between the occurrence time of the (i-1)th network failure and the occurrence time of the (i)th network failure is not less than the interval between the occurrence time of the (i-2)th network failure and the occurrence time of the (i-1)th network failure, the current continuous oscillation frequency is cleared;

[0026] i is a positive integer not less than 3 and not greater than the number of the current network failures.

[0027] Preferably, when the first task node exists, the process of migrating all tasks on the first task node to other task nodes includes:

[0028] When the first task node exists, all tasks on the first task node are migrated to other task nodes according to the task migration instruction;

[0029] The task migration instruction is specifically a direct migration instruction or a post-shutdown migration instruction.

[0030] Preferably, the task node is specifically a physical server, and the network connection status of the physical server includes all the network connection statuses of the virtual machines, virtual network cards and virtual switches set on the physical server.

[0031] Accordingly, the present application also discloses a task scheduling system for a virtualization platform system, including:

[0032] A status monitoring module, used to monitor the network connection status of each task node; the network connection status includes the network speed and the corresponding timestamp;

[0033] A fault determination module is used to determine whether the network speed of each task node is lower than a preset speed and the duration exceeds a minimum fault duration. If so, it is determined that a network fault occurs at the task node;

[0034] A node determination module, used to determine whether there is a first task node that meets the task migration condition among all the task nodes according to the number and time of the network failure occurring in each of the task nodes;

[0035] A task migration module, used for migrating all tasks on the first task node to other task nodes when the first task node exists;

[0036] For any of the task nodes, the task migration conditions include:

[0037] The duration of the network failure exceeds the maximum duration.

[0038] Or, the network failure has occurred multiple times in history and meets the network flapping determination condition.

[0039] Accordingly, the present application also discloses an electronic device, comprising:

[0040] Memory for storing computer programs;

[0041] A processor is used to implement the steps of the task scheduling method of the virtualization platform system as described in any one of the above items when executing the computer program.

[0042] Correspondingly, the present application also discloses a readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the task scheduling method of the virtualization platform system as described in any one of the above items are implemented.

[0043] The present application discloses a task scheduling method for a virtualization platform system, including: monitoring the network connection status of each task node; the network connection status includes the network speed and the corresponding timestamp; judging whether the network speed of each task node is lower than the preset speed and the duration exceeds the minimum fault duration, if so, judging that the task node has a network fault; determining whether there is a first task node that meets the task migration condition among all the task nodes according to the number and time of the network fault occurring in each task node; when the first task node exists, migrating all tasks on the first task node to other task nodes; for any of the task nodes, the task migration condition includes: the duration of the current network fault exceeds the maximum duration, or, the network faults have met the network oscillation judgment condition for many times in history. The present application monitors and analyzes the network connection status, and when a task node meets the migration condition, all tasks on the node are migrated to other task nodes, thereby eliminating the network communication risks of the virtual machine and ensuring the normal communication and operation of the virtual machine. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0045] Figure 1 A flowchart of a task scheduling method for a virtualization platform system according to an embodiment of the present invention;

[0046] Figure 2 A structural distribution diagram of a task scheduling system of a virtualization platform system in an embodiment of the present invention;

[0047] Figure 3 The figure is a structural distribution diagram of an electronic device in an embodiment of the present invention. DETAILED DESCRIPTION

[0048] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0049] The existing high-reliability strategy does not take into account the problem of network communication failure. If there is a problem with the network communication of a physical node, even if the virtual machine on the node remains running, the task cannot be performed according to the normal communication process if the communication function of the virtual machine is damaged.

[0050] This application monitors and analyzes the network connection status, and when a task node meets the migration conditions, migrates all tasks on the node to other task nodes, thereby eliminating the network communication risks of the virtual machine and ensuring the normal communication and operation of the virtual machine.

[0051] The embodiment of the present invention discloses a task scheduling method for a virtualization platform system. Figure 1 As shown, including:

[0052] S1: Monitor the network connection status of each task node; the network connection status includes the network speed and the corresponding timestamp;

[0053] It can be understood that the monitoring of the network connection status in step S1 obtains the network speed sampled continuously on each task node and the discrete timestamp corresponding to the sampling;

[0054] It can be understood that the task node here is specifically a physical server, and the network connection status of the physical server includes all network connection status of the virtual machines, virtual network cards and virtual switches set on the physical server. Assume that there are four physical servers A, B, C and D, of which A serves as the management node of the virtualization platform system, and the remaining B, C and D serve as task nodes of the virtualization platform system respectively. Different numbers of virtual machines are installed on different task nodes, and each virtual machine includes a different number of virtual network cards and virtual switches. According to the characteristics of the virtual machine, multiple physical servers can correspond to the same virtual switch, and different virtual machines can use shared storage. Further, on each task node here, the connection status may include the network connection status of the virtual machine, and / or virtual network card, and / or virtual switch. When making a subsequent judgment, the network connection status of all virtual machines, and / or virtual network cards, and / or virtual switches on a single task node can be used for network failure judgment respectively.

[0055] S2: Determine whether the network speed of each task node is lower than the preset speed and the duration exceeds the minimum fault duration. If so, it is determined that a network fault occurs at the task node;

[0056] It is understandable that under normal circumstances, a network failure is manifested in the disconnection of the network connection between the task node and the node network. At this time, the monitored network speed should be 0, but in fact, normal network communication is no longer possible when the network speed is not as low as 0. Therefore, in this embodiment, the preset speed can be selected as a value greater than 0 to more quickly and sensitively reflect the current network connection status of each task node.

[0057] Since the network connection status may be unstable or have data errors, in order to avoid misjudgment, the judgment time is required. Only when the network speed is lower than the preset speed for a period that exceeds the minimum fault duration, the task node is judged to have a network failure.

[0058] S3: According to the number and time of network failures of each task node, determine whether there is a first task node that meets the task migration condition among all task nodes;

[0059] For any task node, the task migration conditions include:

[0060] The duration of this network failure exceeds the maximum duration.

[0061] Or, multiple historical network failures satisfy the network flapping determination criteria.

[0062] It can be understood that the maximum duration can be set according to the urgency of the task requirements, for example, the maximum duration is 30s, 1min, 2min, 5min or 10min, and the urgency gradually decreases. The specific value can be set according to actual needs and is not limited here.

[0063] It is understandable that the network oscillation determination condition is generally related to the frequency of network failures, and can be specifically set according to task requirements.

[0064] Furthermore, in the determination of the task migration condition in step S3, the task migration condition can be determined based on the network failure of a single object (virtual machine, virtual network card or virtual switch) on the task node. When any object satisfies the task migration condition, the task node is the first task node. Alternatively, all network failures on the same task node can be integrated on the timeline as the network failures of the task node, and then the determination of the task migration condition in step S3 is implemented. It should be noted that the integration only concentrates the network failures of all objects on a timeline for analysis, and the network failures with overlapping timelines will not be merged. For example, the determination that the duration of the current network failure exceeds the maximum duration is usually only for a single network failure, rather than a composite network failure after the integration of two network failures overlapping on the timeline. As for the determination of whether multiple historical network failures meet the network oscillation determination condition, multiple historical network failures here also refer to the time determination of all network failures after all network failures of all objects are integrated on the same timeline.

[0065] S4: When the first task node exists, migrate all tasks on the first task node to other task nodes.

[0066] It can be understood that step S4 migrates all tasks on the first task node to other task nodes. These tasks specifically are task data or business data corresponding to virtual machines, and / or virtual network cards, and / or virtual switches. In order to ensure that the tasks on the first task node are not affected by communication and that data and business are continuous, they are transferred to other task nodes that are not the first task node.

[0067] Furthermore, in step S4, when there is a first task node, the process of migrating all tasks on the first task node to other task nodes includes:

[0068] When there is a first task node, all tasks on the first task node are migrated to other task nodes according to the task migration instruction;

[0069] The task migration instruction is specifically a direct migration instruction or a migration after shutdown instruction.

[0070] It can be understood that the task migration instructions include hot migration instructions and cold migration instructions. The hot migration instructions are direct migration instructions. When step S4 is executed, all tasks on the currently running first task node are directly migrated to other task nodes. All virtual machines using shared storage on the first task node support hot migration; the cold migration instructions are migration after shutdown instructions. When step S4 is executed, the virtual machine of the first task node is automatically and safely shut down first, and then all tasks are cold migrated to other task nodes. The virtual machines that can be automatically and safely shut down here generally refer to virtual machines with VMtools installed.

[0071] The present application discloses a task scheduling method for a virtualization platform system, including: monitoring the network connection status of each task node; the network connection status includes the network speed and the corresponding timestamp; judging whether the network speed of each task node is lower than the preset speed and the duration exceeds the minimum fault duration, if so, judging that the task node has a network fault; determining whether there is a first task node that meets the task migration condition among all the task nodes according to the number and time of the network fault occurring in each task node; when the first task node exists, migrating all tasks on the first task node to other task nodes; for any of the task nodes, the task migration condition includes: the duration of the current network fault exceeds the maximum duration, or, the network faults have met the network oscillation judgment condition for many times in history. The present application monitors and analyzes the network connection status, and when a task node meets the migration condition, all tasks on the node are migrated to other task nodes, thereby eliminating the network communication risks of the virtual machine and ensuring the normal communication and operation of the virtual machine.

[0072] The embodiment of the present invention discloses a specific task scheduling method for a virtualization platform system. Compared with the previous embodiment, this embodiment further illustrates and optimizes the technical solution. Specifically:

[0073] Regarding the analysis of whether the network failure meets the task migration condition in step S3, when judging the network oscillation judgment condition of the network failure of the task node, a time following window is generally used as the data window, the end boundary of the time following window is the current moment, and the length is a preset time period, which can be set according to demand, such as 2 hours, 30 minutes, 15 minutes, etc. As the current moment changes, the time following window moves accordingly, and the network failures corresponding to different times are exposed in the data window as the judgment basis as the action of the time following window, that is, the network failure within the preset time period up to the current moment, and there are multiple options for the judgment condition, and you can choose one to implement.

[0074] The first determination condition is: the network oscillation determination condition includes: the number of network failures occurring within a preset time period up to the current moment exceeds a first preset value.

[0075] The second determination condition is: the network oscillation determination condition includes: within the preset time period up to the current moment, the cumulative oscillation frequency of multiple historical network failures exceeds the second preset value; correspondingly, the process of determining the cumulative oscillation frequency includes: within the preset time period up to the current moment, when the interval from the occurrence time of the i-1th network failure to the occurrence time of the i-th network failure is less than the interval from the occurrence time of the i-2th network failure to the occurrence time of the i-1th network failure, the current cumulative oscillation frequency is increased by 1; i is a positive integer not less than 3 and not greater than the number of current network failures.

[0076] It can be understood that, in this determination condition, if the time interval between network failures is shortened, the current accumulated oscillation frequency is increased by one.

[0077] Further, the process of determining whether there is a first task node that meets the task migration condition among all the task nodes according to the number and time of the network failure occurring in each of the task nodes also includes:

[0078] If the number of network failures that occur to the current task node does not exceed 2 times during the preset time period up to the current moment, it is determined that the current task node does not meet the task migration condition.

[0079] It is understandable that if the network failure does not exceed 2 times within the time following window, it is insufficient to make a network oscillation determination, and the current accumulated oscillation frequency is 0, so it can be directly determined that the current task node does not meet the network oscillation determination condition.

[0080] The third determination condition is: the network oscillation determination condition includes: within the preset time period up to the current moment, the continuous oscillation frequency of multiple historical network failures exceeds the third preset value; correspondingly, the process of determining the continuous oscillation frequency includes: within the preset time period up to the current moment, when the interval from the occurrence time of the i-1th network failure to the occurrence time of the i-th network failure is less than the interval from the occurrence time of the i-2th network failure to the occurrence time of the i-1th network failure, the current continuous oscillation frequency is increased by 1; when the interval from the occurrence time of the i-1th network failure to the occurrence time of the i-th network failure is not less than the interval from the occurrence time of the i-2th network failure to the occurrence time of the i-1th network failure, the current continuous oscillation frequency is cleared; i is a positive integer not less than 3 and not greater than the number of current network failures.

[0081] It can be understood that both the third judgment condition and the second judgment condition add 1 when the time interval of the network failure is shortened. In the second judgment condition, if the time interval is suddenly not less than the time interval of the previous network failure, the cumulative oscillation frequency will not be counted, and the next time to add 1 will continue to be waited. However, in the third judgment condition, once the time interval of the network failure is no longer shortened, the continuous oscillation frequency will be reset to zero and counted again. The third judgment condition is based on the most recent continuous oscillation frequency.

[0082] In addition, the first determination condition and the second determination condition or the third determination condition may be combined together to set the network oscillation determination condition to be satisfied when the first determination condition and the second determination condition are simultaneously met, or the network oscillation determination condition to be satisfied when the first determination condition and the third determination condition are simultaneously met.

[0083] It can be understood that the first preset value, the second preset value, and the third preset value used for determination here can be set according to the length of the preset time period, the reliability requirements of the platform system, etc., and are not limited here.

[0084] Correspondingly, the present application also discloses a task scheduling system for a virtualization platform system, see Figure 2 As shown, including:

[0085] Status monitoring module 1, used to monitor the network connection status of each task node; the network connection status includes network speed and corresponding timestamp;

[0086] Fault determination module 2, used to determine whether the network speed of each task node is lower than a preset speed and the duration exceeds the minimum fault duration, and if so, determine that a network fault occurs at the task node;

[0087] A node determination module 3 is used to determine whether there is a first task node that meets the task migration condition among all the task nodes according to the number and time of the network failure occurring in each of the task nodes;

[0088] The task migration module 4 is used for migrating all tasks on the first task node to other task nodes when the first task node exists;

[0089] For any of the task nodes, the task migration conditions include:

[0090] The duration of the network failure exceeds the maximum duration.

[0091] Or, the network failure has occurred multiple times in history and meets the network flapping determination condition.

[0092] This application monitors and analyzes the network connection status, and when a task node meets the migration conditions, migrates all tasks on the node to other task nodes, thereby eliminating the network communication risks of the virtual machine and ensuring the normal communication and operation of the virtual machine.

[0093] In some specific embodiments, the network oscillation determination condition includes:

[0094] In a preset time period up to the current moment, the number of times the network failure occurs exceeds a first preset value.

[0095] In some specific embodiments, the network oscillation determination condition includes:

[0096] In a preset time period up to the current moment, the cumulative frequency of the network failures exceeds a second preset value;

[0097] Accordingly, the process of determining the cumulative oscillation frequency includes:

[0098] In the preset time period up to the current moment, when the interval from the occurrence moment of the i-1th network failure to the occurrence moment of the i-th network failure is less than the interval from the occurrence moment of the i-2th network failure to the occurrence moment of the i-1th network failure, the current cumulative oscillation frequency is increased by 1; i is a positive integer not less than 3 and not greater than the current number of network failures.

[0099] In some specific embodiments, the process of determining whether there is a first task node that meets the task migration condition among all the task nodes according to the number and time of the network failure occurring in each of the task nodes, further includes:

[0100] In the preset time period up to the current moment, if the number of times the network failure occurs in the current task node does not exceed 2 times, it is determined that the current task node does not meet the network oscillation determination condition.

[0101] In some specific embodiments, the network oscillation determination condition includes:

[0102] In a preset time period up to the current moment, the continuous oscillation frequency of the network fault has exceeded a third preset value for many times in history;

[0103] Accordingly, the process of determining the continuous oscillation frequency includes:

[0104] In the preset time period up to the current moment, when the interval from the time when the i-1th network failure occurs to the time when the i-th network failure occurs is less than the interval from the time when the i-2th network failure occurs to the time when the i-1th network failure occurs, the current continuous oscillation frequency is increased by 1;

[0105] When the interval between the occurrence time of the (i-1)th network failure and the occurrence time of the (i)th network failure is not less than the interval between the occurrence time of the (i-2)th network failure and the occurrence time of the (i-1)th network failure, the current continuous oscillation frequency is cleared;

[0106] i is a positive integer not less than 3 and not greater than the number of the current network failures.

[0107] In some specific embodiments, when the first task node exists, the process of migrating all tasks on the first task node to other task nodes includes:

[0108] When the first task node exists, all tasks on the first task node are migrated to other task nodes according to the task migration instruction;

[0109] The task migration instruction is specifically a direct migration instruction or a post-shutdown migration instruction.

[0110] In some specific embodiments, the task node is specifically a physical server, and the network connection status of the physical server includes all the network connection statuses of the virtual machines, virtual network cards, and virtual switches set on the physical server.

[0111] Accordingly, the present application also discloses an electronic device, see Figure 3 As shown, it includes a processor 11 and a memory 12; wherein, when the processor 11 executes the computer program stored in the memory 12, the following steps are implemented:

[0112] Monitor the network connection status of each task node; the network connection status includes network speed and corresponding timestamp;

[0113] Determine whether the network speed of each task node is lower than a preset speed and the duration exceeds a minimum fault duration, and if so, determine that a network fault occurs at the task node;

[0114] Determine whether there is a first task node that meets the task migration condition among all the task nodes according to the number and time of the network failure occurring in each of the task nodes;

[0115] When the first task node exists, migrating all tasks on the first task node to other task nodes;

[0116] For any of the task nodes, the task migration conditions include:

[0117] The duration of the network failure exceeds the maximum duration.

[0118] Or, the network failure has occurred multiple times in history and meets the network flapping determination condition.

[0119] This application monitors and analyzes the network connection status, and when a task node meets the migration conditions, migrates all tasks on the node to other task nodes, thereby eliminating the network communication risks of the virtual machine and ensuring the normal communication and operation of the virtual machine.

[0120] In some specific embodiments, the network oscillation determination condition includes:

[0121] In a preset time period up to the current moment, the number of times the network failure occurs exceeds a first preset value.

[0122] In some specific embodiments, the network oscillation determination condition includes:

[0123] In a preset time period up to the current moment, the cumulative frequency of the network failures exceeds a second preset value;

[0124] Accordingly, the process of determining the cumulative oscillation frequency includes:

[0125] In the preset time period up to the current moment, when the interval from the occurrence moment of the i-1th network failure to the occurrence moment of the i-th network failure is less than the interval from the occurrence moment of the i-2th network failure to the occurrence moment of the i-1th network failure, the current cumulative oscillation frequency is increased by 1; i is a positive integer not less than 3 and not greater than the current number of network failures.

[0126] In some specific embodiments, when the processor 11 executes the computer subroutine stored in the memory 12, the following steps may be implemented:

[0127] In the preset time period up to the current moment, if the number of times the network failure occurs in the current task node does not exceed 2 times, it is determined that the current task node does not meet the network oscillation determination condition.

[0128] In some specific embodiments, the network oscillation determination condition includes:

[0129] In a preset time period up to the current moment, the continuous oscillation frequency of the network fault has exceeded a third preset value for many times in history;

[0130] Accordingly, the process of determining the continuous oscillation frequency includes:

[0131] In the preset time period up to the current moment, when the interval from the time when the i-1th network failure occurs to the time when the i-th network failure occurs is less than the interval from the time when the i-2th network failure occurs to the time when the i-1th network failure occurs, the current continuous oscillation frequency is increased by 1;

[0132] When the interval between the occurrence time of the (i-1)th network failure and the occurrence time of the (i)th network failure is not less than the interval between the occurrence time of the (i-2)th network failure and the occurrence time of the (i-1)th network failure, the current continuous oscillation frequency is cleared;

[0133] i is a positive integer not less than 3 and not greater than the number of the current network failures.

[0134] In some specific embodiments, when the processor 11 executes the computer subroutine stored in the memory 12, the following steps may be implemented:

[0135] When the first task node exists, all tasks on the first task node are migrated to other task nodes according to the task migration instruction;

[0136] The task migration instruction is specifically a direct migration instruction or a post-shutdown migration instruction.

[0137] In some specific embodiments, the task node is specifically a physical server, and the network connection status of the physical server includes all the network connection statuses of the virtual machines, virtual network cards, and virtual switches set on the physical server.

[0138] Furthermore, the electronic device in this embodiment may further include:

[0139] The input interface 13 is used to obtain a computer program imported from the outside and save the obtained computer program to the memory 12. It can also be used to obtain various instructions and parameters transmitted by an external terminal device and transmit them to the processor 11 so that the processor 11 can use the above various instructions and parameters to carry out corresponding processing. In this embodiment, the input interface 13 can specifically include but is not limited to a USB interface, a serial interface, a voice input interface, a fingerprint input interface, a hard disk reading interface, etc.

[0140] The output interface 14 is used to output various data generated by the processor 11 to a terminal device connected thereto, so that other terminal devices connected to the output interface 14 can obtain various data generated by the processor 11. In this embodiment, the output interface 14 may specifically include but is not limited to a USB interface, a serial interface, and the like.

[0141] The communication unit 15 is used to establish a remote communication connection between the electronic device and the external server so that the electronic device can mount the image file to the external server. In this embodiment, the communication unit 15 may specifically include but is not limited to a remote communication unit based on wireless communication technology or wired communication technology.

[0142] The keyboard 16 is used to obtain various parameter data or instructions input by the user by tapping the keycaps in real time.

[0143] The display 17 is used to display the relevant information of the task scheduling process in real time, so that the user can understand the current task scheduling status in time.

[0144] The mouse 18 can be used to assist the user in inputting data and simplify the user's operation.

[0145] Furthermore, the embodiments of the present application also disclose a computer-readable storage medium, where the computer-readable storage medium includes a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable hard disk, a CD-ROM, or any other form of storage medium known in the technical field. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0146] Monitor the network connection status of each task node; the network connection status includes network speed and corresponding timestamp;

[0147] Determine whether the network speed of each task node is lower than a preset speed and the duration exceeds a minimum fault duration, and if so, determine that a network fault occurs at the task node;

[0148] Determine whether there is a first task node that meets the task migration condition among all the task nodes according to the number and time of the network failure occurring in each of the task nodes;

[0149] When the first task node exists, migrating all tasks on the first task node to other task nodes;

[0150] For any of the task nodes, the task migration conditions include:

[0151] The duration of the network failure exceeds the maximum duration.

[0152] Or, the network failure has occurred multiple times in history and meets the network flapping determination condition.

[0153] This application monitors and analyzes the network connection status, and when a task node meets the migration conditions, migrates all tasks on the node to other task nodes, thereby eliminating the network communication risks of the virtual machine and ensuring the normal communication and operation of the virtual machine.

[0154] In some specific embodiments, the network oscillation determination condition includes:

[0155] In a preset time period up to the current moment, the number of times the network failure occurs exceeds a first preset value.

[0156] In some specific embodiments, the network oscillation determination condition includes:

[0157] In a preset time period up to the current moment, the cumulative frequency of the network failures exceeds a second preset value;

[0158] Accordingly, the process of determining the cumulative oscillation frequency includes:

[0159] In the preset time period up to the current moment, when the interval from the occurrence moment of the i-1th network failure to the occurrence moment of the i-th network failure is less than the interval from the occurrence moment of the i-2th network failure to the occurrence moment of the i-1th network failure, the current cumulative oscillation frequency is increased by 1; i is a positive integer not less than 3 and not greater than the current number of network failures.

[0160] In some specific embodiments, when the processor 11 executes the computer subroutine stored in the memory 12, the following steps may be implemented:

[0161] In the preset time period up to the current moment, if the number of times the network failure occurs in the current task node does not exceed 2 times, it is determined that the current task node does not meet the network oscillation determination condition.

[0162] In some specific embodiments, the network oscillation determination condition includes:

[0163] In a preset time period up to the current moment, the continuous oscillation frequency of the network fault has exceeded a third preset value for many times in history;

[0164] Accordingly, the process of determining the continuous oscillation frequency includes:

[0165] In the preset time period up to the current moment, when the interval from the time when the i-1th network failure occurs to the time when the i-th network failure occurs is less than the interval from the time when the i-2th network failure occurs to the time when the i-1th network failure occurs, the current continuous oscillation frequency is increased by 1;

[0166] When the interval between the occurrence time of the (i-1)th network failure and the occurrence time of the (i)th network failure is not less than the interval between the occurrence time of the (i-2)th network failure and the occurrence time of the (i-1)th network failure, the current continuous oscillation frequency is cleared;

[0167] i is a positive integer not less than 3 and not greater than the number of the current network failures.

[0168] In some specific embodiments, when the processor 11 executes the computer subroutine stored in the memory 12, the following steps may be implemented:

[0169] When the first task node exists, all tasks on the first task node are migrated to other task nodes according to the task migration instruction;

[0170] The task migration instruction is specifically a direct migration instruction or a post-shutdown migration instruction.

[0171] In some specific embodiments, the task node is specifically a physical server, and the network connection status of the physical server includes all the network connection statuses of the virtual machines, virtual network cards, and virtual switches set on the physical server.

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

[0173] The above is a detailed introduction to the task scheduling method, system and related components of a virtualization platform system provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for general technical personnel in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A task scheduling method for a virtualization platform system, characterized in that: include: Monitor the network connection status of each task node; the network connection status includes a network speed and a corresponding timestamp; the task node is specifically a physical server, and the network connection status of the physical server includes all the network connection statuses of the virtual machines, virtual network cards, and virtual switches set on the physical server; Determine whether the network speed of each task node is lower than a preset speed and the duration exceeds a minimum fault duration, and if so, determine that a network fault occurs at the task node; Determine whether there is a first task node that meets the task migration condition among all the task nodes according to the number and time of the network failure occurring in each of the task nodes; When the first task node exists, migrating all tasks on the first task node to other task nodes; For any of the task nodes, the task migration conditions include: The network failures mentioned above have met the network flapping determination conditions many times in history; among which: The determining, according to the number and time of the network failure occurring at each of the task nodes, whether there is a first task node that meets the task migration condition among all the task nodes comprises: According to the number and time of the network failure of each task node, the task migration condition is determined based on the network failure of a single object on the task node, and when any object on the task node meets the task migration condition, the task node is determined to be the first task node; the single object is a virtual machine, a virtual network card or a virtual switch; The network oscillation determination conditions include: In a preset time period up to the current moment, the continuous oscillation frequency of the network fault has exceeded a third preset value for many times in history; Accordingly, the process of determining the continuous oscillation frequency includes: In the preset time period up to the current moment, when the interval from the time when the i-1th network failure occurs to the time when the i-th network failure occurs is less than the interval from the time when the i-2th network failure occurs to the time when the i-1th network failure occurs, the current continuous oscillation frequency is increased by 1; When the interval between the occurrence time of the (i-1)th network failure and the occurrence time of the (i)th network failure is not less than the interval between the occurrence time of the (i-2)th network failure and the occurrence time of the (i-1)th network failure, the current continuous oscillation frequency is cleared; i is a positive integer not less than 3 and not greater than the number of the current network failures.

2. The task scheduling method according to claim 1, characterized in that: The network oscillation determination conditions include: In a preset time period up to the current moment, the number of times the network failure occurs exceeds a first preset value.

3. The task scheduling method according to claim 1, characterized in that: The network oscillation determination conditions include: In a preset time period up to the current moment, the cumulative frequency of the network failures exceeds a second preset value; Accordingly, the process of determining the cumulative oscillation frequency includes: In the preset time period up to the current moment, when the interval from the occurrence moment of the i-1th network failure to the occurrence moment of the i-th network failure is less than the interval from the occurrence moment of the i-2th network failure to the occurrence moment of the i-1th network failure, the current cumulative oscillation frequency is increased by 1; i is a positive integer not less than 3 and not greater than the current number of network failures.

4. The task scheduling method according to claim 3, characterized in that: The process of determining whether there is a first task node that meets the task migration condition among all the task nodes according to the number and time of the network failure occurring in each of the task nodes, further includes: In the preset time period up to the current moment, if the number of times the network failure occurs in the current task node does not exceed 2 times, it is determined that the current task node does not meet the network oscillation determination condition.

5. The task scheduling method according to any one of claims 1 to 4, characterized in that: The process of migrating all tasks on the first task node to other task nodes when the first task node exists includes: When the first task node exists, all tasks on the first task node are migrated to other task nodes according to the task migration instruction; The task migration instruction is specifically a direct migration instruction or a post-shutdown migration instruction.

6. A task scheduling system for a virtualization platform system, characterized in that: include: A status monitoring module, used to monitor the network connection status of each task node; the network connection status includes a network speed and a corresponding timestamp; the task node is specifically a physical server, and the network connection status of the physical server includes all the network connection statuses of the virtual machines, virtual network cards and virtual switches set on the physical server; A fault determination module is used to determine whether the network speed of each task node is lower than a preset speed and the duration exceeds a minimum fault duration. If so, it is determined that a network fault occurs at the task node; A node determination module, used to determine whether there is a first task node that meets the task migration condition among all the task nodes according to the number and time of the network failure occurring in each of the task nodes; A task migration module, used for migrating all tasks on the first task node to other task nodes when the first task node exists; For any of the task nodes, the task migration conditions include: The network failures mentioned above have met the network flapping determination conditions many times in history; among which: The node determination module is used to determine the task migration condition based on the number and time of the network failure of each task node and the network failure of a single object on the task node, and determine the task node as the first task node when any object on the task node meets the task migration condition; the single object is a virtual machine, a virtual network card or a virtual switch; The network oscillation determination conditions include: In a preset time period up to the current moment, the continuous oscillation frequency of the network fault has exceeded a third preset value for many times in history; Accordingly, the process of determining the continuous oscillation frequency includes: In the preset time period up to the current moment, when the interval from the time when the i-1th network failure occurs to the time when the i-th network failure occurs is less than the interval from the time when the i-2th network failure occurs to the time when the i-1th network failure occurs, the current continuous oscillation frequency is increased by 1; When the interval between the occurrence time of the (i-1)th network failure and the occurrence time of the (i)th network failure is not less than the interval between the occurrence time of the (i-2)th network failure and the occurrence time of the (i-1)th network failure, the current continuous oscillation frequency is cleared; i is a positive integer not less than 3 and not greater than the number of the current network failures.

7. An electronic device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the task scheduling method for a virtualization platform system as claimed in any one of claims 1 to 5 when executing the computer program.

8. A readable storage medium, characterized in that: The readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the task scheduling method of the virtualization platform system according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Physical machine fault classification processing method and apparatus, and virtual machine recovery method and system

    CN107179957A