Cloud traffic scheduling method, device, equipment, medium and computer program product

By predicting server node response time and calculating node weights through the long and short-term memory model, combined with hash rings and virtual nodes, it solves the problems of low efficiency and uneven distribution in cloud traffic scheduling, achieves efficient and balanced service request distribution, and improves the system performance.

CN118869698APending Publication Date: 2024-10-29SHANXI CHINA MOBILE COMM CORP +1

Patent Information

Application Number
CN202410894257.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

Existing cloud traffic scheduling methods have low efficiency, uneven distribution and poor scheduling performance, and cannot effectively deal with business status changes and load balancing issues.

Method used

The long short-term memory model is used to predict the response time of server nodes, calculate node weights based on real-time response time and performance indicators, generate node scheduling sequences to respond to service requests, and use hash rings and virtual nodes to optimize traffic scheduling to ensure balanced traffic distribution.

Benefits of technology

It improves the efficiency of cloud traffic scheduling and system performance, avoids traffic overload, achieves a more balanced distribution of service requests, and improves system stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118869698A_ABST
    Figure CN118869698A_ABST
Patent Text Reader

Abstract

The invention provides a cloud traffic scheduling method, device and equipment, a medium and a computer program product, and the method comprises the steps: obtaining the operation index data of a target server under the condition of receiving a service request of cloud traffic scheduling; determining predicted response time of the current server node based on a long-short-term memory model; the long and short term memory model is constructed based on the operation index data; under the condition that the real-time response time of the current server node is greater than the predicted response time, determining an index weight of each server node; when the number of the server nodes is greater than or equal to the number of the service requests, responding to the service requests based on a node scheduling sequence; the node scheduling sequence is generated based on the index weight of each server node. According to the method, the corresponding traffic scheduling is performed through the prediction response, the traffic overload problem is avoided, and the efficiency of cloud traffic scheduling and the system performance are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of cloud computing and big data technology, and in particular to a cloud traffic scheduling method, device, equipment, medium and computer program product. Background Art

[0002] Existing container cloud traffic scheduling methods are mostly static scheduling such as polling and probabilistic random scheduling, which cannot be used for traffic scheduling based on real-time feedback of business status, and the balancing effect is not ideal.

[0003] The existing traffic load balancing scheduling algorithm optimizes the problem of uneven load distribution caused by server performance differences by quantifying server performance indicators and load values, but it has high requirements on server configuration and cannot be widely promoted and used; the existing static load balancing algorithm does not collect load-related information of service instances, has a single reference indicator, and has limited application scenarios. It is only limited to microservice architecture systems with small and predictable request volumes. When the load changes dramatically, it cannot be balanced, which can easily lead to load tilt; the existing dynamic load balancing algorithm has a higher resource occupancy rate than the static load balancing algorithm, and physical resources are not used reasonably, so there is still a lot of room for improvement.

[0004] In summary, the existing allocation mechanism for service requests for cloud traffic scheduling has problems such as low efficiency, uneven allocation and poor scheduling performance. Summary of the invention

[0005] The present invention provides a cloud traffic scheduling method, device, equipment, medium and computer program product, which are used to solve the defects of low efficiency, uneven distribution and poor scheduling performance in the existing cloud traffic scheduling service request allocation technology, realize efficient and balanced allocation of cloud traffic scheduling service requests, and improve scheduling performance.

[0006] The present invention provides a cloud traffic scheduling method, comprising the following steps.

[0007] Upon receiving a service request from the cloud traffic scheduling, obtain the operating indicator data of the target server; Determining a predicted response time of a current server node based on a long short-term memory model; the long short-term memory model is constructed based on the operation indicator data; In the case where the real-time response time of the current server node is greater than the predicted response time, determining the indicator weight of each server node; In a case where the number of each of the server nodes is greater than or equal to the number of the service requests, the service requests are responded to based on a node scheduling sequence; the node scheduling sequence is generated based on an indicator weight of each of the server nodes.

[0008] According to a cloud traffic scheduling method provided by the present invention, when the real-time response time of the current server node is greater than the predicted response time, determining the indicator weight of each server node includes: When the real-time response time of the current server node is greater than the predicted response time, obtaining each performance indicator of each server node; Determining the load of each server node based on each performance indicator of each server node; Based on the performance indicators and load of each server node, the indicator weight of each server node is determined.

[0009] According to a cloud traffic scheduling method provided by the present invention, when the real-time response time of the current server node is greater than the predicted response time, the indicator weight of each server node is determined, and then the method includes: In a case where the number of each of the server nodes is less than the number of the service requests, determining a key value corresponding to each of the server nodes based on an indicator weight of each of the server nodes; Mapping the key value corresponding to each of the server nodes into a hash ring; Adding a virtual node in the hash ring, mapping the key value corresponding to the virtual node into the hash ring, and updating the hash ring; A node scheduling sequence corresponding to the service request is determined based on the updated hash ring.

[0010] According to a cloud traffic scheduling method provided by the present invention, when the number of each of the server nodes is greater than or equal to the number of the service requests, responding to the service request based on the node scheduling sequence includes: When the number of each of the server nodes is equal to the number of the service requests, generating a node scheduling sequence based on each of the server nodes; In the case where the number of each of the server nodes is greater than the number of the service requests, screening each of the server nodes based on the indicator weight of each of the server nodes to obtain a target node set; the number of nodes in the target node set is equal to the number of the service requests; A node scheduling sequence is generated based on the target node set, and the service request is responded to based on the node scheduling sequence.

[0011] According to a cloud traffic scheduling method provided by the present invention, generating a node scheduling sequence based on the target node set includes: Sort the server nodes in descending order of indicator weight to obtain a node sequence; Determine the target nodes with the largest index weights in the node sequence; the number of service requests is N, and the target node belongs to the target node set; The target nodes are sorted in descending order according to the indicator weights to generate a node scheduling sequence.

[0012] According to a cloud traffic scheduling method provided by the present invention, the predicted response time of the current server node is determined based on the long short-term memory model, and then includes: When the real-time response time of the current server node is less than or equal to the predicted response time, the current server node is scheduled to respond to the service request.

[0013] The present invention also provides a cloud traffic scheduling device, comprising the following modules: An operation indicator data acquisition module is used to obtain the operation indicator data of the target server when receiving a service request for cloud traffic scheduling; A predicted response time determination module, used to determine the predicted response time of the current server node based on a long short-term memory model; the long short-term memory model is constructed based on the operation indicator data; A node index weight determination module, used to determine the index weight of each server node when the real-time response time of the current server node is greater than the predicted response time; The cloud traffic scheduling service request response module is used to respond to the service request based on a node scheduling sequence when the number of each server node is greater than or equal to the number of service requests; the node scheduling sequence is generated based on the indicator weight of each server node.

[0014] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the cloud traffic scheduling method as described above is implemented.

[0015] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the cloud traffic scheduling methods described above.

[0016] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the cloud traffic scheduling method as described above is implemented.

[0017] The cloud traffic scheduling method, device, equipment, medium and computer program product provided by the present invention obtain the operating index data of the target server when receiving a service request for cloud traffic scheduling, and predict the response time of the current server node through a long short-term memory model constructed based on the operating index data. When the real-time response time of the current server node is greater than the predicted response time, the index weights of each server node are determined, and a node scheduling sequence is generated based on the index weights of each server node. When the number of each server node is greater than or equal to the number of service requests, the service request is responded to based on the node scheduling sequence. The corresponding traffic scheduling is performed through the predicted response to avoid the problem of traffic overload, thereby improving the efficiency of cloud traffic scheduling and system performance. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0019] Figure 1 This is one of the flow charts of the cloud traffic scheduling method provided by the present invention.

[0020] Figure 2 This is the second flow chart of the cloud traffic scheduling method provided by the present invention.

[0021] Figure 3 It is a structural schematic diagram of the cloud traffic scheduling device provided by the present invention.

[0022] Figure 4 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

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

[0024] Combine the following Figure 1-Figure 4 The cloud traffic scheduling method, apparatus, device, medium and computer program product of the present invention are described.

[0025] Figure 1 It is one of the flow charts of the cloud traffic scheduling method provided by the present invention, such as Figure 1As shown, the method includes the following: Step 100: upon receiving a service request for cloud traffic scheduling, obtaining operation indicator data of a target server; When the server is running, historical data and real-time data of relevant indicators of the server's running status in the previous period of time, as well as historical data and real-time data of relevant indicators when the server is running, are collected, i.e., the running indicator data in this embodiment. Specifically, the collected indicator data can come from five dimensions: disk, central processing unit CPU, storage, bandwidth, and input and output IO. The indicators can specifically be disk space utilization, CPU utilization, storage capacity utilization, bandwidth utilization, and IO operation number. The load value of the server node is calculated through these five indicators to evaluate the performance and availability of the server node.

[0026] Step 200: determining a predicted response time of a current server node based on a long short-term memory model; the long short-term memory model is constructed based on the operation indicator data; A long short-term memory (LSTM) model is constructed based on the above historical indicator data, and the response time of the current server node is predicted through the LSTM model.

[0027] Load behavior is related to time, so a time series prediction method is introduced. This application is based on the fact that the access load has time series correlation. The traffic access behavior is modeled to predict the load of the cluster to optimize the access to the server nodes. The LSTM model trains the historical data of the five indicators and generates errors. The error results can feedback the training effect. The error results and the training effect are repeatedly iterated and continuously adjusted. After a sufficient number of iterations, the optimal neural network parameters are obtained. The optimal neural network parameters and historical data are used as the input state information in the LSTM model to generate a network prediction model, perform data prediction on the server's response time, and obtain the predicted response time of the current server node.

[0028] Step 300: when the real-time response time of the current server node is greater than the predicted response time, determine the indicator weight of each server node; Specifically, the response time of each server node is predicted by the LSTM model, and the real-time response time of each server node is compared to determine the size of the real-time response time and the predicted response time to evaluate whether to schedule the server node with the shortest current response time. When the real-time response time of the current server node is greater than the predicted response time, the indicator weight of each server node is updated based on the performance indicators and load of each server node.

[0029] Step 400: When the number of each of the server nodes is greater than or equal to the number of the service requests, respond to the service request based on a node scheduling sequence; the node scheduling sequence is generated based on an indicator weight of each of the server nodes.

[0030] After obtaining the indicator weight of each server node, a node scheduling sequence is generated according to the size of the indicator weight of each server node and the relationship between the number of server nodes and service requests. The server node can respond to the service request of cloud traffic scheduling according to the node scheduling sequence.

[0031] In the cloud traffic scheduling solution provided in this embodiment, when receiving a service request for cloud traffic scheduling, the operating index data of the target server is obtained, and the response time of the current server node is predicted by a long short-term memory model constructed based on the operating index data. When the real-time response time of the current server node is greater than the predicted response time, the index weights of each server node are determined, and a node scheduling sequence is generated based on the index weights of each server node. When the number of each server node is greater than or equal to the number of service requests, the service request is responded to based on the node scheduling sequence. The corresponding traffic scheduling is performed by predicting the response, avoiding the problem of traffic overload, and improving the efficiency of cloud traffic scheduling and system performance.

[0032] In one embodiment, the cloud traffic scheduling method provided in the embodiment of the present application may further include: Step 310: when the real-time response time of the current server node is greater than the predicted response time, obtaining each performance indicator of each server node; Step 320: Determine the load of each server node based on each performance indicator of each server node; Step 330: Determine the indicator weight of each server node based on the performance indicators and load of each server node.

[0033] Specifically, the performance and operating conditions of each server in the system are generally different, and different services process different businesses. Therefore, the load capacity of the server node itself needs to be considered. By calculating the available load rate of the server node, and setting the maximum load rate and the minimum load rate with reference to the historical load rate, and calculating the load rate difference, the calculation condition of the weighted value is determined.

[0034] Among them, the CPU usage can represent the computing needs of the system, and the memory usage reflects the system load and also represents the current access volume. Taking the disk space usage as an example, the space usage of the server node and the load capacity under the current storage space are analyzed. As shown in Formula 1, is the disk space usage of the i-th server node; is the memory space already used by the disk of the i-th server node; is the total disk capacity of the ith server node.

[0035] ; (1)

[0036] ; (2)

[0037] ; (3)

[0038] ; (4)

[0039] ; (5)

[0040] ; (6)

[0041] ; (7)

[0042] For heterogeneous systems, the total disk capacity of each server node is different. The disk space utilization rate can be obtained from Formula 1 as a benchmark to calculate the variance DX of the node disk utilization rate, as shown in Formula 2. DX is the disk utilization variance, It is the average disk utilization of each server node. If the system has N servers, DX can be used as a stability indicator to measure the overall system load. If the DX value is larger, the dispersion of the server node disk utilization is larger, and the cluster is in a load imbalance state; if the DX value is smaller, the dispersion of the cluster node disk utilization is smaller, and the cluster is more stable. Average disk utilization The calculation of is shown in formula 3.

[0043] Average disk utilization It can be used to evaluate the usage of disk space, but it cannot measure the uneven performance of each server node. Therefore, the average disk utilization can only be used as a reference factor and cannot be used as a key factor for evaluation. Therefore, the maximum difference between each server node and the average disk utilization, that is, the maximum relative deviation value, is introduced. , the maximum relative deviation The calculation of is shown in Formula 4.

[0044] In addition to the disk space usage dispersion, the other four performance indicators of the server node are also important criteria. If you want to calculate the weight of the server node, you need to include each performance indicator in the calculation range. Assume that there are N servers in total. is the i-th server in the cluster, B is the bandwidth, C is the server CPU, D is the disk, T is the storage, and O is the IO. Calculate the performance indicators of the i-th server As shown in Formula 5. The load of the i-th server The calculation of is shown in Formula 6, where represents the bandwidth utilization of the i-th server; represents the CPU utilization of the i-th server; represents the disk utilization of the i-th server; represents the memory utilization of the i-th server; represents the IO utilization of the i-th server. b, c, d, t and o are weight factor coefficients, and their sum is 1. The weight of the server The calculation of is shown in Formula 7.

[0045] This embodiment updates the indicator weight of each server node according to the performance indicator of each server node.

[0046] Figure 2 This is the second flow chart of the cloud traffic scheduling method provided by the present invention, such as Figure 2 As shown, the method may also include: Step 500: when the number of each server node is less than the number of service requests, determine the key value corresponding to each server node based on the indicator weight of each server node; Step 600: Map the key value corresponding to each server node into a hash ring; Step 700: adding a virtual node to the hash ring, mapping the key value corresponding to the virtual node into the hash ring, and updating the hash ring; Step 800: Determine a node scheduling sequence corresponding to the service request based on the updated hash ring.

[0047] Specifically, if the number of currently responsive server nodes is insufficient, that is, the number of responsive server nodes is less than the number of service requests, the weight values ​​of the above server nodes are used as input to calculate the key value of the hash ring and map the key value to the hash ring. In the case of uneven distribution of server nodes, it is necessary to add virtual nodes to physical nodes, map virtual nodes to physical nodes, and access the nearest server nodes clockwise.

[0048] Specifically, when the cluster is expanded or contracted, there are certain limitations in taking the value modulo the number of server nodes. If the server stores data corresponding to the service request, recalculating the hash value of the service request will cause a cache avalanche problem. The consistent hashing algorithm has good monotonicity: no matter how many nodes there are in the cluster, as long as the key value calculated based on the node weight value is fixed, the requested server node is also fixed.

[0049] If the number of server nodes that can respond to the service request is insufficient and the node distribution is uneven, data skew problems will occur, which can easily lead to load imbalance. The weight value of each server node can be input to calculate the key value mapped into the hash ring, and each server node is arranged clockwise according to the size of the key value. After each service request enters the hash ring through the hash function, the time complexity of searching the nearest server node clockwise is O(N), which reduces the time efficiency of the search to a certain extent. Therefore, a certain number of virtual nodes can be added to the hash ring to reduce the time spent on each service request in the service search process. In the algorithm process, the service request is first mapped to a point in the hash ring through the hash function, and then the nearest server node is searched clockwise. If the match is successful, the traversal continues. If virtual nodes are added in a 1:N ratio, the total number of nodes on the hash ring is increased, and the time complexity is reduced to O(1), which improves the efficiency of traversal matching.

[0050] ; (8)

[0051] In the process of allocating nodes, if the allocation result is evenly distributed, the ratio of service nodes to virtual nodes is 1:N, and the hash ring is easily decomposed into N+1 spaces, which can forward the matched service requests to the actual service nodes. If the original address of an actual service node is P, its virtual node address is shown in Formula 8.

[0052] This embodiment maps the key value corresponding to each server node into a hash ring, adds a virtual node to the hash ring, updates the hash ring, and determines the node scheduling sequence corresponding to the service request based on the updated hash ring.

[0053] In one embodiment, the cloud traffic scheduling method provided in the embodiment of the present application may further include: Step 410: When the number of each of the server nodes is equal to the number of the service requests, generate a node scheduling sequence based on each of the server nodes; Step 420: When the number of each of the server nodes is greater than the number of the service requests, the server nodes are screened based on the index weight of each of the server nodes to obtain a target node set; the number of nodes in the target node set is equal to the number of the service requests; Step 430: Generate a node scheduling sequence based on the target node set, and respond to the service request based on the node scheduling sequence.

[0054] In one embodiment, the cloud traffic scheduling method provided in the embodiment of the present application may further include: Step 431, sorting the server nodes in descending order of indicator weight to obtain a node sequence; Step 432: determine the target nodes with the largest index weights in the node sequence; the number of service requests is N, and the target node belongs to the target node set; Step 433: Sort the target nodes in descending order of indicator weights to generate a node scheduling sequence.

[0055] Specifically, if the number of service requests for cloud traffic scheduling is 4 (N in this embodiment), the number of server nodes is 5, including server nodes A, B, C, D, and E, and the number of server nodes that can currently respond is sufficient, that is, the number of each server node is greater than the number of service requests. For example, the weight values ​​of each server node calculated above are 0.76, 0.8, 0.5, 0.6, and 0.45, respectively. The node scheduling sequence generated in descending order of weight values ​​is B, A, D, C, and E (the node sequence in this embodiment). At this time, the server nodes are called in the order of the node scheduling sequence B, A, D, and C (the target node in this embodiment).

[0056] When the number of server nodes is equal to the number of service requests, the node scheduling sequence is directly generated in descending order of weight values. For example, the weight values ​​of server nodes A, B, C, and D are 0.76, 0.8, 0.5, and 0.6 respectively, and the number of service requests for cloud traffic scheduling is 4. In this case, the server nodes are called in the order of node scheduling sequence B, A, D, and C.

[0057] This embodiment generates a node scheduling sequence through the indicator weight of each server node as a scheduling basis for cloud traffic scheduling service requests.

[0058] In one embodiment, the cloud traffic scheduling method provided in the embodiment of the present application may further include: Step 900: When the real-time response time of the current server node is less than or equal to the predicted response time, schedule the current server node to respond to the service request.

[0059] Specifically, if the real-time response time of the current server node is greater than the response time predicted by the LSTM model, the server node with the shortest current response time is directly scheduled. For example, the response time of the current server node A predicted by the LSTM model is 300 milliseconds. If the real-time response time obtained is 200 milliseconds, the real-time response time is less than the predicted response time, and the server node is directly scheduled to complete the service request of this cloud traffic scheduling.

[0060] This embodiment determines the real-time response time and the predicted response time of the current server node, and directly schedules the current server node to respond to the service request when the real-time response time of the current server node is less than or equal to the predicted response time, thereby improving the efficiency of cloud traffic scheduling.

[0061] The cloud traffic scheduling device provided by the present invention is described below. The cloud traffic scheduling device described below and the cloud traffic scheduling method described above can be referenced to each other.

[0062] Please refer to Figure 3 The present invention also provides a cloud traffic scheduling device, comprising: The operation index data acquisition module 301 is used to obtain the operation index data of the target server when receiving the service request of the cloud traffic scheduling; A predicted response time determination module 302, configured to determine a predicted response time of a current server node based on a long short-term memory model; the long short-term memory model is constructed based on the operation indicator data; A node index weight determination module 303, used to determine the index weight of each server node when the real-time response time of the current server node is greater than the predicted response time; The cloud traffic scheduling service request response module 304 is used to respond to the service request based on a node scheduling sequence when the number of each server node is greater than or equal to the number of service requests; the node scheduling sequence is generated based on the indicator weight of each server node.

[0063] Optionally, the node indicator weight determination module includes: A performance indicator acquisition unit, configured to acquire each performance indicator of each server node when the real-time response time of the current server node is greater than the predicted response time; A server node load unit, used to determine the load of each server node based on each performance indicator of each server node; The node indicator weight determination unit is used to determine the indicator weight of each server node based on each performance indicator and load of each server node.

[0064] Optionally, the cloud traffic scheduling device further includes: A key value determination module, configured to determine a key value corresponding to each of the server nodes based on an indicator weight of each of the server nodes when the number of each of the server nodes is less than the number of the service requests; A key-value mapping module, used to map the key value corresponding to each server node into a hash ring; A hash ring update module, used to add a virtual node in the hash ring, map the key value corresponding to the virtual node into the hash ring, and update the hash ring; The node scheduling sequence determination module is used to determine the node scheduling sequence corresponding to the service request based on the updated hash ring.

[0065] Optionally, the cloud traffic scheduling service request response module includes: a node scheduling sequence generating unit, configured to generate a node scheduling sequence based on each of the server nodes when the number of each of the server nodes is equal to the number of the service requests; A server node screening unit, configured to screen each of the server nodes based on an indicator weight of each of the server nodes to obtain a target node set when the number of each of the server nodes is greater than the number of the service requests; the number of nodes in the target node set is equal to the number of the service requests; A node scheduling sequence generating unit is used to generate a node scheduling sequence based on the target node set, and respond to the service request based on the node scheduling sequence.

[0066] Optionally, the node scheduling sequence generating unit includes: A server node sorting unit, used to sort the server nodes in descending order of indicator weight to obtain a node sequence; A target node determination unit is used to determine the target nodes with the largest index weights in the node sequence; the number of service requests is N, and the target node belongs to the target node set; The target node sorting unit is used to sort the target nodes in descending order of indicator weights to generate a node scheduling sequence.

[0067] Optionally, the cloud traffic scheduling device further includes: The service request response module is used to schedule the current server node to respond to the service request when the real-time response time of the current server node is less than or equal to the predicted response time.

[0068] Figure 4 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 4As shown, the electronic device may include: a processor 410, a communication interface 420, a memory 430 and a communication bus 440, wherein the processor 410, the communication interface 420 and the memory 430 complete mutual communication through the communication bus 440. The processor 410 may call the logic instructions in the memory 430 to execute the cloud traffic scheduling method, which includes: obtaining the operation index data of the target server in the case of receiving a service request for cloud traffic scheduling; determining the predicted response time of the current server node based on the long short-term memory model; the long short-term memory model is constructed based on the operation index data; determining the index weight of each server node in the case that the real-time response time of the current server node is greater than the predicted response time; responding to the service request based on the node scheduling sequence in the case that the number of each server node is greater than or equal to the number of the service request; the node scheduling sequence is generated based on the index weight of each server node.

[0069] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0070] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the cloud traffic scheduling method provided by the above methods, which method includes: upon receiving a service request for cloud traffic scheduling, obtaining operating indicator data of the target server; determining the predicted response time of the current server node based on a long short-term memory model; the long short-term memory model is constructed based on the operating indicator data; when the real-time response time of the current server node is greater than the predicted response time, determining the indicator weight of each server node; when the number of each server node is greater than or equal to the number of service requests, responding to the service request based on a node scheduling sequence; the node scheduling sequence is generated based on the indicator weight of each server node.

[0071] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the cloud traffic scheduling method provided by the above-mentioned methods, the method comprising: upon receiving a service request for cloud traffic scheduling, obtaining operating indicator data of the target server; determining a predicted response time of a current server node based on a long short-term memory model; the long short-term memory model is constructed based on the operating indicator data; when the real-time response time of the current server node is greater than the predicted response time, determining the indicator weight of each server node; when the number of each of the server nodes is greater than or equal to the number of service requests, responding to the service request based on a node scheduling sequence; the node scheduling sequence is generated based on the indicator weight of each of the server nodes.

[0072] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0073] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0074] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A cloud traffic scheduling method, characterized in that: include: Upon receiving a service request from the cloud traffic scheduling, obtain the operating indicator data of the target server; Determine the predicted response time of the current server node based on the long short-term memory model; The long short-term memory model is constructed based on the operation index data; In the case where the real-time response time of the current server node is greater than the predicted response time, determining the indicator weight of each server node; In a case where the number of each of the server nodes is greater than or equal to the number of the service requests, the service requests are responded to based on a node scheduling sequence; the node scheduling sequence is generated based on an indicator weight of each of the server nodes.

2. The cloud traffic scheduling method according to claim 1, characterized in that: When the real-time response time of the current server node is greater than the predicted response time, determining the indicator weight of each server node includes: When the real-time response time of the current server node is greater than the predicted response time, obtaining each performance indicator of each server node; Determining the load of each server node based on each performance indicator of each server node; Based on the performance indicators and load of each server node, the indicator weight of each server node is determined.

3. The cloud traffic scheduling method according to claim 1, characterized in that: In the case where the real-time response time of the current server node is greater than the predicted response time, determining the indicator weight of each server node, and then comprising: In a case where the number of each of the server nodes is less than the number of the service requests, determining a key value corresponding to each of the server nodes based on an indicator weight of each of the server nodes; Mapping the key value corresponding to each of the server nodes into a hash ring; Adding a virtual node in the hash ring, mapping the key value corresponding to the virtual node into the hash ring, and updating the hash ring; A node scheduling sequence corresponding to the service request is determined based on the updated hash ring.

4. The cloud traffic scheduling method according to claim 1, characterized in that: In the case where the number of each of the server nodes is greater than or equal to the number of the service requests, responding to the service request based on the node scheduling sequence includes: When the number of each of the server nodes is equal to the number of the service requests, generating a node scheduling sequence based on each of the server nodes; In the case where the number of each of the server nodes is greater than the number of the service requests, screening each of the server nodes based on the indicator weight of each of the server nodes to obtain a target node set; the number of nodes in the target node set is equal to the number of the service requests; A node scheduling sequence is generated based on the target node set, and the service request is responded to based on the node scheduling sequence.

5. The cloud traffic scheduling method according to claim 4, characterized in that: Generating a node scheduling sequence based on the target node set includes: Sort the server nodes in descending order of indicator weight to obtain a node sequence; Determine the target nodes with the largest index weights in the node sequence; the number of service requests is N, and the target node belongs to the target node set; The target nodes are sorted in descending order according to the indicator weights to generate a node scheduling sequence.

6. The cloud traffic scheduling method according to claim 1, characterized in that: The step of determining the predicted response time of the current server node based on the long short-term memory model includes: When the real-time response time of the current server node is less than or equal to the predicted response time, the current server node is scheduled to respond to the service request.

7. A cloud traffic scheduling device, characterized in that: include: An operation indicator data acquisition module is used to obtain the operation indicator data of the target server when receiving a service request for cloud traffic scheduling; A predicted response time determination module, used to determine the predicted response time of the current server node based on a long short-term memory model; The long short-term memory model is constructed based on the operation index data; A node index weight determination module, used to determine the index weight of each server node when the real-time response time of the current server node is greater than the predicted response time; The cloud traffic scheduling service request response module is used to respond to the service request based on a node scheduling sequence when the number of each server node is greater than or equal to the number of service requests; the node scheduling sequence is generated based on the indicator weight of each server node.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the cloud traffic scheduling method as described in any one of claims 1 to 6 is implemented.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the cloud traffic scheduling method as described in any one of claims 1 to 6 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the cloud traffic scheduling method as described in any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Node scheduling method and device of micro server, equipment and storage medium

    CN110311987A

  • Identification analysis node load balancing device based on machine learning

    CN111930511A

  • Server load balancing optimization method based on long short-term memory network

    CN114945024A

  • Petama algorithm-based library division method and system

    CN116578641A

Cited By

  • Scheduling method and device for server cluster, equipment, storage medium and product

    CN119922192A