Scheduling method and device for nodes between platforms, equipment, medium and product
By receiving and calculating node usage information between cloud computing platforms, node scheduling between platforms is realized, solving the problem of difficult to achieve node scheduling between platforms in the existing technology, and improving work efficiency and node utilization rate.
Patent Information
- Application Number
- CN202411878109.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-19
- Publication Date
- 2025-04-04
AI Technical Summary
Existing cloud computing platforms cannot realize node scheduling between platforms, resulting in low work efficiency and node utilization.
When receiving the online prompt sent by the two computing platforms, receive the usage information of each node sent by each computing platform, calculate the usage of each node of each computing platform, and schedule each node according to the usage of each node.
The node scheduling between platforms is realized based on node usage, which improves the scheduling efficiency of nodes between platforms, and thus improves the platform's work efficiency and node utilization rate.
Smart Images

Figure CN119766754A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of cloud computing, and in particular to a method, device, equipment and medium for scheduling nodes between platforms. Background Art
[0002] In today's cloud computing field, Serverless function computing technology has become an important innovative achievement. With its remarkable features such as event triggering, lightweight, high efficiency and elasticity, it has gained wide recognition and application in the industry and is praised as the representative of the cloud computing 2.0 era.
[0003] In the traditional cloud computing platform operation mode with serverless functions, the corresponding container is usually started to perform tasks only when a specific event is received, and the container is destroyed immediately after the task is completed. This method achieves resource conservation and elastic expansion according to demand to a large extent. However, this model still has some aspects that need to be improved. Even in the absence of event triggering, the nodes of the cloud computing platform are still idle, and due to their exclusive nature, they cannot be called and used by other cloud computing platforms, such as cloud computing platform B. This leads to a certain degree of resource waste and limits the further improvement of resource utilization.
[0004] In summary, the existing platforms are unable to implement node scheduling between platforms, resulting in low platform work efficiency and node utilization. Summary of the invention
[0005] The present invention provides a method, device, equipment and medium for scheduling nodes between platforms, which can solve the problem that the prior art cannot implement node scheduling between platforms, resulting in low platform work efficiency and node utilization.
[0006] In a first aspect, an embodiment of the present invention provides a method for scheduling nodes between platforms, the method comprising:
[0007] When receiving the online prompts sent by the two computing platforms, receiving the usage information of each node sent by each computing platform;
[0008] The node usage of each computing platform is calculated based on the usage information of each node, and each node is scheduled based on the node usage.
[0009] In a second aspect, an embodiment of the present invention provides a scheduling device for nodes between platforms, the device comprising:
[0010] An information receiving module, used for receiving the usage information of each node sent by each computing platform when receiving the online prompt sent by the two computing platforms;
[0011] The node scheduling module is used to calculate the node usage of each computing platform according to the usage information of each node, and schedule each node according to the node usage.
[0012] In a third aspect, an embodiment of the present invention provides an electronic device, the electronic device comprising:
[0013] at least one processor; and
[0014] a memory communicatively connected to the at least one processor; wherein,
[0015] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute a method for scheduling nodes between platforms described in any embodiment of the present invention.
[0016] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement a method for scheduling nodes between platforms described in any embodiment of the present invention when executed.
[0017] In a fifth aspect, an embodiment of the present invention provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements a method for scheduling nodes between platforms as described in any embodiment of the present invention.
[0018] The technical solution of the embodiment of the present invention receives the node usage information sent by each computing platform when receiving the online prompt sent by the two computing platforms, then calculates the node usage of each computing platform according to the node usage information, and schedules each node according to the node usage. This solves the problem that the prior art cannot realize node scheduling between platforms, resulting in low platform work efficiency and node utilization. It realizes node scheduling between platforms based on node usage, improves the scheduling efficiency of nodes between platforms, and further improves the platform work efficiency and node utilization.
[0019] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0021] Figure 1 is a flowchart of a method for scheduling nodes between platforms provided according to Embodiment 1 of the present invention;
[0022] Figure 2 is a flowchart of a method for scheduling nodes between platforms provided according to Embodiment 2 of the present invention;
[0023] Figure 3 This is a schematic diagram of the structure of a node scheduling device between platforms provided in Embodiment 3 of the present invention;
[0024] Figure 4 The present invention is a schematic diagram of the structure of an electronic device for implementing a method for scheduling nodes between platforms according to an embodiment of the present invention. DETAILED DESCRIPTION
[0025] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings 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 should fall within the scope of protection of the present invention.
[0026] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, any variation of the terms "including" and "having" is intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0027] Embodiment 1
[0028] Figure 1A flowchart of a method for scheduling nodes between platforms provided in Embodiment 1 of the present invention. This embodiment is applicable to the situation of scheduling nodes between different cloud computing platforms. The method can be executed by a scheduling device for nodes between platforms. The scheduling device for nodes between platforms can be implemented in the form of hardware and / or software. The scheduling device for nodes between platforms can be configured in a terminal or server having the function of a scheduling device for nodes between platforms.
[0029] like Figure 1 As shown, the method includes:
[0030] S110 . When receiving online prompts sent by two computing platforms, receiving usage information of each node sent by each computing platform.
[0031] The node usage information includes: address information, memory usage, processor usage, and number of processes of the node, wherein the address information is used to identify the sender of the node usage information.
[0032] Specifically, the address information is used to identify the sender of the node usage information, such as a specific IP address or a unique network identifier; the memory utilization rate is used to reflect the proportion of the node's memory resources occupied. For example, if the memory utilization rate is 80%, it means that 80% of the node's memory has been used by running tasks or processes; the processor utilization rate is used to reflect the workload of the processor (CPU) in the node. For example, if the processor utilization rate is 70%, it means that the processor is in working state 70% of the time in a specific time period; the number of processes is the number of tasks or programs running on the node. For example, if the number of processes is 10, it means that 10 different tasks or programs are running on the current node at the same time.
[0033] Optionally, in this embodiment, the computing platform can be specifically a cloud computing platform, such as cloud computing platform A and cloud computing platform B; illustratively, in this embodiment, when cloud computing platform A is pulled up, after the platform completes all necessary configuration and preparation work, it will generate and send an online prompt to inform it that it can accept tasks and process requests and continue to send node usage information. At the same time, in cloud computing platform B, when the newly deployed application environment completes startup and detection and reaches an operational state, an online prompt will be issued and node usage information will be continuously sent. At this time, when the online prompts sent by cloud computing platform A and cloud computing platform B are received, the node usage information sent by each computing platform is received.
[0034] S120. Calculate the node usage of each computing platform according to the node usage information, and schedule each node according to the node usage.
[0035] Specifically, each node is scheduled according to the node usage, including: determining whether the node usage of each computing platform is greater than a preset usage ratio threshold; if there is only one target computing platform whose node usage is not greater than the preset usage ratio threshold, then based on the node usage information matching the target computing platform, searching and unmounting the nodes in the idle state, and mounting each unmounted node to a computing platform whose node usage is greater than the preset usage ratio threshold, so as to complete the scheduling operation of the node; if there is no computing platform whose node usage is greater than the preset usage ratio threshold, no scheduling operation is performed on the node; if the node usage of each computing platform is greater than the preset usage ratio threshold, no scheduling operation is performed on the node.
[0036] On the basis of the above steps, illustratively, if there is only one target computing platform whose node usage is not greater than the preset usage ratio threshold, this means that the resource utilization of the computing platform is relatively loose. At this time, based on the node usage information matching the target computing platform, find and unhook the node in the idle state. It should be noted that the usage ratio threshold can be set and modified by relevant personnel according to the actual real-time scenario needs, and this embodiment does not limit this. For example, in cloud computing platform A, unhook those nodes that are not currently processing tasks and have low resource utilization. Then, mount each unhooked node to a computing platform whose node usage is greater than the preset usage ratio threshold to complete the scheduling operation of the node. For example, these unhooked nodes are assigned to cloud computing platform B whose memory usage exceeds 80%, thereby realizing the optimal configuration of resources. If there is no node usage of any computing platform greater than the preset usage ratio threshold, that is, the resource utilization of all computing platforms is within a reasonable range, then the node is not scheduled. It is easy to understand that if the node usage of each computing platform is greater than the preset usage ratio threshold, it means that the resources of all computing platforms are relatively tight, and the node is not scheduled at this time.
[0037] Optionally, after scheduling each node according to the node usage, the method further includes: after detecting that a preset time interval has passed, returning to execute the operation of receiving the node usage information sent by each computing platform.
[0038] Specifically, after the scheduling of each node is completed, monitoring will be continued. When it is detected that the preset time interval has passed, the operation of receiving the usage information of each node sent by each computing platform will be returned. The preset time interval is a time period set in advance based on factors such as system performance, business requirements, and the complexity of resource allocation. For example, in a high-concurrency cloud computing environment, this time interval may be set to 5 minutes to ensure that resource allocation can respond to dynamic changes in the business in a timely manner. By periodically returning to receive node usage information in this way, the usage of nodes in each computing platform can be tracked in real time, and imbalances in resource allocation or new resource requirements can be discovered in a timely manner, thereby achieving continuous optimization and efficient use of resources.
[0039] The technical solution of the embodiment of the present invention receives the node usage information sent by each computing platform when receiving the online prompt sent by two computing platforms, then calculates the node usage of each computing platform according to the node usage information, and schedules each node according to the node usage, thereby realizing node scheduling between platforms based on node usage, improving the scheduling efficiency of nodes between platforms, and further improving the work efficiency and node utilization of the platform.
[0040] Embodiment 2
[0041] Figure 2 A flowchart of a method for scheduling nodes between platforms provided in Embodiment 2 of the present invention. This embodiment is refined based on the above-mentioned embodiment. In this embodiment, a method for calculating the node usage status of each computing platform based on the usage information of each node is specifically refined.
[0042] like Figure 2 As shown, the method includes:
[0043] S210: When receiving the online prompts sent by the two computing platforms, receiving the usage information of each node sent by each computing platform.
[0044] S220 , obtaining address information in the usage information of each node, and performing an aggregation operation on the usage information of nodes having the same address information to obtain groups of nodes.
[0045] The number of node groups is 2.
[0046] For example, in a hybrid computing environment consisting of cloud computing platform A and cloud computing platform B, node usage information from cloud computing platform A may be grouped into one group and node usage information from cloud computing platform B may be grouped into another group based on node address information, thereby clearly distinguishing the node resource usage of different platforms and providing a basis for subsequent resource scheduling and optimization.
[0047] S230: judging whether each node in the node group is in use according to the use information of each node in the node group, and counting the number of nodes in use.
[0048] Specifically, judging whether each node in the node group is in a use state according to the use information of each node in the node group, including: respectively obtaining the node use information of each node in the node group; judging whether the memory use rate of the node is greater than a preset memory use threshold according to the memory use rate in the node use information, and judging that the node state of the node is in use state after judging that the memory use rate of the node is greater than the preset memory use threshold; when judging that the memory use rate of the node is not greater than the preset memory use threshold, judging whether the processor use rate of the node is greater than the preset processor use threshold, and judging that the node state of the node is in use state after judging that the processor use rate of the node is greater than the preset processor use threshold; when judging that the processor use rate of the node is not greater than the preset memory use threshold, judging whether the number of processes is greater than 1, and judging that the node state of the node is in use state after judging that the number of processes is greater than 1; and judging that the number of processes is 1, judging that the node is in idle state.
[0049] In a specific implementation scenario of this embodiment, first, the node usage information of each node in the node group is obtained respectively. Then, the judgment is made according to the memory usage rate in the node usage information. A memory usage threshold is preset, such as 70%. If it is judged that the memory usage rate of the node is greater than the preset memory usage threshold, the node state of the node is judged to be in use. However, when it is judged that the memory usage rate of the node is not greater than the preset memory usage threshold, the processor usage rate of the node is then judged. Similarly, a processor usage threshold is preset, such as 80%. After judging that the processor usage rate of the node is greater than the preset processor usage threshold, the node state of the node is judged to be in use. When it is judged that the processor usage rate of the node is not greater than the preset memory usage threshold, it is judged whether the number of processes is greater than 1. If it is judged that the number of processes is greater than 1, the node state of the node is judged to be in use. However, when it is judged that the number of processes is 1, the node is judged to be in idle state.
[0050] S240: Calculate the node usage ratio of the node group according to the amount of node usage information in the node group and the number of nodes in use in the node group.
[0051] Among them, the specific method for calculating the node usage ratio of the node grouping is: divide the "number of nodes in use" by the "number of node usage information", and then multiply by 100%, and the node usage ratio of the node grouping can be obtained. For example, in an architecture in which a cloud computing platform A and a cloud computing platform B are integrated and include multiple nodes, suppose there is a node grouping in which the total number of node usage information is 50, and after a series of judgments, it is determined that the number of nodes in use is 30. Then, through the calculation of 30÷50×100%=60%, it can be concluded that the node usage ratio of the node grouping is 60%. This ratio can intuitively reflect the resource utilization and busyness of the node grouping, providing a key and powerful basis for subsequent resource scheduling, optimization, and decision-making.
[0052] S250. Output the node usage ratio of the node group as the node usage of the computing platform matching the node group, and schedule each node according to the node usage.
[0053] The technical solution of the embodiment of the present invention is to receive the node usage information sent by each computing platform when receiving the online prompt sent by two computing platforms, then obtain the address information in the node usage information, aggregate the node usage information with the same address information to obtain each node group, and judge whether each node in the node group is in use according to the node usage information in the node group, and count the number of nodes in use, then calculate the node usage ratio of the node group according to the number of node usage information in the node group and the number of nodes in use in the node group, finally output the node usage ratio of the node group as the node usage of the computing platform matching the node group, and schedule each node according to the node usage, thereby realizing node scheduling between platforms based on node usage, improving the scheduling efficiency of nodes between platforms, and thereby improving the work efficiency and node utilization of the platform.
[0054] Embodiment 3
[0055] Figure 3 A schematic diagram of the structure of a scheduling device for nodes between platforms provided in Embodiment 3 of the present invention.
[0056] like Figure 3 As shown, the device comprises:
[0057] The information receiving module 310 is used to receive the usage information of each node sent by each computing platform when receiving the online prompt sent by the two computing platforms;
[0058] The node scheduling module 320 is used to calculate the node usage of each computing platform according to the node usage information, and schedule each node according to the node usage.
[0059] The technical solution of the embodiment of the present invention receives the node usage information sent by each computing platform when receiving the online prompt sent by two computing platforms, then calculates the node usage of each computing platform according to the node usage information, and schedules each node according to the node usage, thereby realizing node scheduling between platforms based on node usage, improving the scheduling efficiency of nodes between platforms, and further improving the work efficiency and node utilization of the platform.
[0060] Based on the above embodiment, the node scheduling module 320 includes:
[0061] A grouping unit, used to obtain address information in each node usage information, aggregate node usage information with the same address information, and obtain each node group, wherein the number of the node groups is 2;
[0062] A quantity counting unit, used for judging whether each node in the node group is in use according to the use information of each node in the node group, and counting the number of nodes in use;
[0063] A ratio calculation unit, configured to calculate the node usage ratio of the node group according to the amount of node usage information in the node group and the number of nodes in use in the node group;
[0064] The result output unit is used to output the node usage ratio of the node group as the node usage of the computing platform matching the node group.
[0065] Based on the above embodiment, the quantity counting unit includes:
[0066] An information acquisition unit, used to respectively acquire node usage information of each node in the node group;
[0067] A first judgment unit is used to judge whether the memory usage rate of the node is greater than a preset memory usage threshold according to the memory usage rate in the node usage information, and after judging that the memory usage rate of the node is greater than the preset memory usage threshold, judge that the node state of the node is a use state;
[0068] A second judgment unit is used to judge whether the processor usage rate of the node is greater than the preset processor usage threshold when it is judged that the memory usage rate of the node is not greater than the preset memory usage threshold, and after judging that the processor usage rate of the node is greater than the preset processor usage threshold, determine that the node state of the node is a use state;
[0069] a third judgment unit, configured to judge whether the number of processes is greater than 1 when judging that the processor usage rate of the node is not greater than a preset memory usage threshold, and to judge that the node state of the node is in use after judging that the number of processes is greater than 1;
[0070] The fourth judgment unit is used to judge that the node is in an idle state when it is judged that the number of processes is 1.
[0071] Based on the above embodiment, the node scheduling module 320 includes:
[0072] A threshold judgment unit, used to judge whether the usage of each node of each computing platform is greater than a preset usage ratio threshold;
[0073] A first scheduling unit is used to search and unmount nodes in an idle state based on the node usage information matching the target computing platform if there is only one target computing platform whose node usage is not greater than a preset usage ratio threshold, and mount each unmounted node to a computing platform whose node usage is greater than a preset usage ratio threshold, so as to complete the scheduling operation on the node;
[0074] The second scheduling unit is configured to not perform a scheduling operation on the node if there is no node usage of any computing platform greater than a preset usage ratio threshold;
[0075] The third scheduling unit is used to not perform scheduling operations on the nodes if the node usage of each computing platform is greater than a preset usage ratio threshold.
[0076] Based on the above embodiment, the node scheduling module 320 is also used to: after scheduling each node according to the node usage, after detecting that a preset time interval has passed, return to execute the operation of receiving each node usage information sent by each computing platform.
[0077] An inter-platform node scheduling device provided in an embodiment of the present invention can execute an inter-platform node scheduling method provided in any embodiment of the present invention, and has functional modules and beneficial effects corresponding to the execution method.
[0078] Embodiment 4
[0079] Figure 4A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0080] like Figure 4 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, ROM 12 and RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0081] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0082] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 11 executes the various methods and processes described above, such as a scheduling method for nodes between platforms.
[0083] Accordingly, the method comprises:
[0084] When receiving the online prompts sent by the two computing platforms, receiving the usage information of each node sent by each computing platform;
[0085] The node usage of each computing platform is calculated based on the usage information of each node, and each node is scheduled based on the node usage.
[0086] In some embodiments, a method for scheduling nodes between platforms may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the method for scheduling nodes between platforms described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute a method for scheduling nodes between platforms in any other appropriate manner (e.g., by means of firmware).
[0087] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0088] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0089] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0090] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0091] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0092] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0093] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
Claims
1. A method for scheduling nodes between platforms, characterized in that: include: When receiving the online prompts sent by the two computing platforms, receiving the usage information of each node sent by each computing platform; The node usage of each computing platform is calculated based on the usage information of each node, and each node is scheduled based on the node usage.
2. The method according to claim 1, characterized in that The node usage information includes: address information, memory usage, processor usage, and number of processes of the node, wherein the address information is used to identify a sender of the node usage information.
3. The method according to any one of claims 1 to 2, characterized in that: The node usage of each computing platform is calculated based on the usage information of each node, including: Acquire address information in each node usage information, aggregate node usage information with the same address information to obtain node groups, wherein the number of the node groups is 2; According to the usage information of each node in the node group, determining whether each node in the node group is in a usage state, and counting the number of nodes in a usage state; Calculate the node usage ratio of the node group according to the amount of node usage information in the node group and the number of nodes in use in the node group; The node usage ratio of the node group is output as the node usage of the computing platform matching the node group.
4. The method according to claim 3, characterized in that Judging whether each node in the node group is in use according to the use information of each node in the node group includes: Respectively obtain node usage information of each node in the node group; According to the memory usage rate in the node usage information, determine whether the memory usage rate of the node is greater than a preset memory usage threshold, and after determining that the memory usage rate of the node is greater than the preset memory usage threshold, determine that the node state of the node is a use state; When it is determined that the memory usage rate of the node is not greater than a preset memory usage threshold, determining whether the processor usage rate of the node is greater than a preset processor usage threshold, and after determining that the processor usage rate of the node is greater than the preset processor usage threshold, determining that the node state of the node is a use state; When it is determined that the processor usage rate of the node is not greater than a preset memory usage threshold, determining whether the number of processes is greater than 1, and after determining that the number of processes is greater than 1, determining that the node state of the node is a use state; When it is determined that the number of processes is 1, the node is determined to be in an idle state.
5. The method according to claim 1, characterized in that Scheduling each node according to the node usage includes: Determine whether the usage of each node of each computing platform is greater than a preset usage ratio threshold; If there is only one target computing platform whose node usage is not greater than the preset usage ratio threshold, then based on the node usage information matching the target computing platform, search and unhook the nodes in the idle state, and mount each unhooked node to a computing platform whose node usage is greater than the preset usage ratio threshold, so as to complete the scheduling operation of the node; If there is no node usage on any computing platform that is greater than the preset usage ratio threshold, no node scheduling operation will be performed; If the node usage of each computing platform is greater than the preset usage ratio threshold, no scheduling operation will be performed on the node.
6. The method according to claim 1, characterized in that After scheduling each node according to the node usage, the method further includes: After detecting that a preset time interval has passed, the process returns to executing the operation of receiving the usage information of each node sent by each computing platform.
7. A node scheduling device between platforms, characterized in that: include: An information receiving module, used for receiving the usage information of each node sent by each computing platform when receiving the online prompt sent by the two computing platforms; The node scheduling module is used to calculate the node usage of each computing platform according to the usage information of each node, and schedule each node according to the node usage.
8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute a method for scheduling nodes between platforms as described in any one of claims 1-6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement a method for scheduling nodes between platforms according to any one of claims 1 to 6 when executed.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the computer program implements a method for scheduling nodes between platforms according to any one of claims 1 to 6.