Resource scheduling method, device and platform equipment

By receiving and processing the resource occupation information of multiple second platform devices on the first platform device, using the capability orchestrator to determine the resource scheduling information, and perform resource scheduling, the problems of service call capability, service interruption and resource waste caused by insufficient resources in the prior art are solved, and efficient utilization of resources and dynamic expansion of resources are achieved.

CN114885023BActive Publication Date: 2025-03-21CHINA MOBILE COMM LTD RES INST +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202110162429.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-05
Publication Date
2025-03-21
Estimated Expiration
2041-02-05

AI Technical Summary

Technical Problem

In the prior art, the resource scheduling schemes have deteriorated service calling capabilities, service interruptions, resource waste and other problems due to insufficient resources.

Method used

The capability resource scheduler of the first platform device receives the resource occupation information of the multiple second platform devices, uses the capability orchestrator to determine the resource scheduling information, and performs resource scheduling through the capability resource scheduler to realize dynamic resource scheduling between the platform devices.

Benefits of technology

It effectively avoids deterioration in service call capabilities and service interruptions caused by insufficient resources, realizes efficient reuse and utilization of resources, avoids resource waste, and supports dynamic expansion, improving user experience and service stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114885023B_ABST
    Figure CN114885023B_ABST
Patent Text Reader

Abstract

The present invention provides a resource scheduling method, device and platform equipment, wherein the resource scheduling method includes: using the capability resource scheduler of the first platform equipment to receive the resource occupancy information respectively sent by the capability schedulers included in at least two second platform equipments; transmitting the resource occupancy information to the capability orchestrator of the first platform equipment through the capability resource scheduler; using the capability orchestrator to determine the resource scheduling information for the at least two second platform equipments according to the resource occupancy information; transmitting the resource scheduling information to the capability resource scheduler through the capability orchestrator; using the capability resource scheduler to perform resource scheduling for the at least two second platform equipments according to the resource scheduling information. This solution solves the problem in the prior art that the resource scheduling solution may lead to poor service calling capability, service interruption and resource waste due to insufficient resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a resource scheduling method, device and platform equipment. Background Art

[0002] In the Internet era, the website services are packaged into a series of computer-readable data interfaces and opened to third-party developers. This behavior is called Open API (Open Application Programming Interface), and the platform that provides open API (Application Programming Interface) is itself called an open platform. Through the open platform, the website can not only provide simple access to the Web (Global Wide Area Network) web pages, but also conduct complex data interaction, converting their Web sites into development platforms equivalent to operating systems. Third-party developers can develop a variety of applications based on these existing, public Web sites.

[0003] Specifically, the existing technical solution is that the platform builds a system to integrate the interfaces of various capability platforms, provide a unified and secure output interface, and realize "open capabilities to the outside world and internal service integration". With the cloud PaaS (Platform as a Service) architecture, it provides core capability operations, system automation operations, external platform partners and end-user self-service and other multi-dimensional support capabilities for enterprise operations, system operations, partners and end users, helping enterprises to expand their business in the Internet field.

[0004] However, the above open platform technical solution has the following disadvantages:

[0005] Some capability platforms occupy more server resources, while some capability platforms occupy fewer server resources. When some capability platforms are short of resources, they cannot be replenished quickly and effectively, resulting in a long response time for capability service calls, or even the inability of users to call capabilities, which deteriorates user experience and service call capabilities. In addition, the resource expansion mechanism for this situation in the existing technology is prone to cause service interruption, and at the same time, it is impossible to effectively reuse and utilize the existing resources of other services, which is prone to waste of resources.

[0006] From the above, we can see that the existing resource scheduling scheme has problems such as poor service calling capability, service interruption, and resource waste due to insufficient resources. Summary of the invention

[0007] The purpose of the present invention is to provide a resource scheduling method, device and platform equipment to solve the problem that the resource scheduling scheme in the prior art may lead to poor service calling capability, service interruption and resource waste due to insufficient resources.

[0008] In order to solve the above technical problems, an embodiment of the present invention provides a resource scheduling method, which is applied to a first platform device, including:

[0009] Using the capability resource scheduler of the first platform device, receiving resource occupancy information respectively sent by the capability schedulers included in at least two second platform devices;

[0010] The resource occupancy information is transmitted to the capability scheduler of the first platform device through the capability resource scheduler;

[0011] Determine resource scheduling information for the at least two second platform devices using the capability scheduler according to the resource occupancy information;

[0012] The resource scheduling information is transmitted to the capability resource scheduler through the capability orchestrator;

[0013] The capability resource scheduler is used to schedule resources for the at least two second platform devices according to the resource scheduling information.

[0014] Optionally, the using the capability orchestrator to determine resource scheduling information for the at least two second platform devices according to the resource occupancy information includes:

[0015] Using the capability orchestrator, when the resource occupancy information of the third platform device indicates that the resource occupancy rate is greater than or equal to the first threshold, determining that the resource scheduling information for the at least two second platform devices is first information, wherein the first information indicates calling the resource load of the fourth platform device to load part of the services under the third platform device;

[0016] Wherein, the third platform device is one platform device among the at least two second platform devices;

[0017] The fourth platform device is a platform device among the at least two second platform devices except the third platform device;

[0018] The resource occupancy rate indicated by the resource occupancy information of the fourth platform is less than the second threshold;

[0019] The first threshold is greater than the second threshold.

[0020] Optionally, the utilizing the capability resource scheduler to perform resource scheduling on the at least two second platform devices according to the resource scheduling information includes:

[0021] Using the capability resource scheduler, according to the first information, an activation instruction is sent to the capability scheduler of the fourth platform device;

[0022] Using the capability resource scheduler, receiving an activation response fed back by the capability scheduler of the fourth platform device;

[0023] The capability resource scheduler is utilized to call the resources of the fourth platform device to load part of the services under the third platform device according to the activation response.

[0024] Optionally, the using the capability orchestrator to determine resource scheduling information for the at least two second platform devices according to the resource occupancy information further includes:

[0025] Using the capability orchestrator, after using the capability resource scheduler to call the resources of the fourth platform device to load part of the services under the third platform device according to the activation response, when the resource occupancy information of the third platform device indicates that the resource occupancy rate is less than a third threshold, determining that the resource scheduling information for the at least two second platform devices is second information, and the second information indicates to deactivate the resources of the fourth platform device that loads the part of the services;

[0026] The third threshold is smaller than the first threshold.

[0027] Optionally, the using the capability resource scheduler to perform resource scheduling on the at least two second platform devices according to the resource scheduling information further includes:

[0028] Using the capability resource scheduler, according to the second information, sending a deactivation instruction to the capability scheduler of the fourth platform device;

[0029] The capability resource scheduler is used to receive a deactivation response fed back by the capability scheduler of the fourth platform device.

[0030] Optionally, the using the capability resource scheduler to perform resource scheduling on the at least two second platform devices according to the resource scheduling information further includes:

[0031] By utilizing the capability resource scheduler, while the part of the services is still running, according to the second information, the resources of the third platform device are called to load the part of the services.

[0032] The embodiment of the present invention further provides a resource scheduling method, which is applied to a second platform device, comprising:

[0033] Using the capability scheduler of the second platform device, obtaining resource occupancy information of the second platform device;

[0034] The resource occupancy information is sent to the capability resource scheduler of the first platform device by utilizing the capability scheduler.

[0035] Optionally, after using the capability scheduler to send the resource occupancy information to the capability resource scheduler of the first platform device, the method further includes:

[0036] Using the capability scheduler, receiving an activation instruction sent by the capability resource scheduler of the first platform device;

[0037] The capability scheduler is used to activate the resources of the second platform device according to the activation instruction, and an activation response is fed back to the capability resource scheduler of the first platform device.

[0038] Optionally, after activating the resources of the second platform device by using the capability scheduler according to the activation instruction, the method further includes:

[0039] Using the capability scheduler, receiving a deactivation instruction sent by the capability resource scheduler of the first platform device;

[0040] The capability scheduler is used to deactivate the resources of the second platform device according to the deactivation instruction, and a deactivation response is fed back to the capability resource scheduler of the first platform device.

[0041] The embodiment of the present invention further provides a resource scheduling device, which is applied to a first platform device, including:

[0042] A first receiving module, configured to use the capability resource scheduler of the first platform device to receive resource occupancy information respectively sent by capability schedulers included in at least two second platform devices;

[0043] A first transmission module, configured to transmit the resource occupancy information to a capability scheduler of the first platform device through the capability resource scheduler;

[0044] A first determination module, configured to determine resource scheduling information for the at least two second platform devices according to the resource occupancy information by using the capability orchestrator;

[0045] A second transmission module, used to transmit the resource scheduling information to the capability resource scheduler through the capability scheduler;

[0046] The first scheduling module is used to utilize the capability resource scheduler to perform resource scheduling on the at least two second platform devices according to the resource scheduling information.

[0047] Optionally, the using the capability orchestrator to determine resource scheduling information for the at least two second platform devices according to the resource occupancy information includes:

[0048] Using the capability orchestrator, when the resource occupancy information of the third platform device indicates that the resource occupancy rate is greater than or equal to the first threshold, determining that the resource scheduling information for the at least two second platform devices is first information, wherein the first information indicates calling the resource load of the fourth platform device to load part of the services under the third platform device;

[0049] Wherein, the third platform device is one platform device among the at least two second platform devices;

[0050] The fourth platform device is a platform device among the at least two second platform devices except the third platform device;

[0051] The resource occupancy rate indicated by the resource occupancy information of the fourth platform is less than the second threshold;

[0052] The first threshold is greater than the second threshold.

[0053] Optionally, the utilizing the capability resource scheduler to perform resource scheduling on the at least two second platform devices according to the resource scheduling information includes:

[0054] Using the capability resource scheduler, according to the first information, an activation instruction is sent to the capability scheduler of the fourth platform device;

[0055] Using the capability resource scheduler, receiving an activation response fed back by the capability scheduler of the fourth platform device;

[0056] The capability resource scheduler is utilized to call the resources of the fourth platform device to load part of the services under the third platform device according to the activation response.

[0057] Optionally, the using the capability orchestrator to determine resource scheduling information for the at least two second platform devices according to the resource occupancy information further includes:

[0058] Using the capability orchestrator, after using the capability resource scheduler to call the resources of the fourth platform device to load part of the services under the third platform device according to the activation response, when the resource occupancy information of the third platform device indicates that the resource occupancy rate is less than a third threshold, determining that the resource scheduling information for the at least two second platform devices is second information, and the second information indicates to deactivate the resources of the fourth platform device that loads the part of the services;

[0059] The third threshold is smaller than the first threshold.

[0060] Optionally, the using the capability resource scheduler to perform resource scheduling on the at least two second platform devices according to the resource scheduling information further includes:

[0061] Using the capability resource scheduler, according to the second information, sending a deactivation instruction to the capability scheduler of the fourth platform device;

[0062] The capability resource scheduler is used to receive a deactivation response fed back by the capability scheduler of the fourth platform device.

[0063] Optionally, the using the capability resource scheduler to perform resource scheduling on the at least two second platform devices according to the resource scheduling information further includes:

[0064] By utilizing the capability resource scheduler, while the part of the services is still running, according to the second information, the resources of the third platform device are called to load the part of the services.

[0065] The embodiment of the present invention further provides a resource scheduling device, which is applied to a second platform device, including:

[0066] A first acquisition module, configured to acquire resource occupancy information of the second platform device by using a capacity scheduler of the second platform device;

[0067] The first sending module is used to use the capability scheduler to send the resource occupancy information to the capability resource scheduler of the first platform device.

[0068] Optionally, also include:

[0069] A second receiving module is used to use the capability scheduler to receive an activation instruction sent by the capability resource scheduler of the first platform device after using the capability scheduler to send the resource occupancy information to the capability resource scheduler of the first platform device;

[0070] The first processing module is used to use the capability scheduler to activate the resources of the second platform device according to the activation instruction, and feed back an activation response to the capability resource scheduler of the first platform device.

[0071] Optionally, also include:

[0072] A third receiving module is used to use the capability scheduler to receive a deactivation instruction sent by the capability resource scheduler of the first platform device after using the capability scheduler to activate the resources of the second platform device according to the activation instruction;

[0073] The second processing module is used to use the capability scheduler to deactivate the resources of the second platform device according to the deactivation instruction, and feed back a deactivation response to the capability resource scheduler of the first platform device.

[0074] An embodiment of the present invention further provides a platform device, the platform device being a first platform device, comprising: a processor and a transceiver;

[0075] The processor is configured to use the capability resource scheduler of the first platform device to receive, through the transceiver, resource occupancy information respectively sent by the capability schedulers included in at least two second platform devices;

[0076] The resource occupancy information is transmitted to the capability scheduler of the first platform device through the capability resource scheduler;

[0077] Determine resource scheduling information for the at least two second platform devices using the capability scheduler according to the resource occupancy information;

[0078] The resource scheduling information is transmitted to the capability resource scheduler through the capability orchestrator;

[0079] The capability resource scheduler is used to schedule resources for the at least two second platform devices according to the resource scheduling information.

[0080] Optionally, the using the capability orchestrator to determine resource scheduling information for the at least two second platform devices according to the resource occupancy information includes:

[0081] Using the capability orchestrator, when the resource occupancy information of the third platform device indicates that the resource occupancy rate is greater than or equal to the first threshold, determining that the resource scheduling information for the at least two second platform devices is first information, wherein the first information indicates calling the resource load of the fourth platform device to load part of the services under the third platform device;

[0082] Wherein, the third platform device is one platform device among the at least two second platform devices;

[0083] The fourth platform device is a platform device among the at least two second platform devices except the third platform device;

[0084] The resource occupancy rate indicated by the resource occupancy information of the fourth platform is less than the second threshold;

[0085] The first threshold is greater than the second threshold.

[0086] Optionally, the utilizing the capability resource scheduler to perform resource scheduling on the at least two second platform devices according to the resource scheduling information includes:

[0087] Using the capability resource scheduler, according to the first information, sending an activation instruction to the capability scheduler of the fourth platform device through the transceiver;

[0088] Using the capability resource scheduler, receiving, through the transceiver, an activation response fed back by the capability scheduler of the fourth platform device;

[0089] The capability resource scheduler is utilized to call the resources of the fourth platform device to load part of the services under the third platform device according to the activation response.

[0090] Optionally, the using the capability orchestrator to determine resource scheduling information for the at least two second platform devices according to the resource occupancy information further includes:

[0091] Using the capability orchestrator, after using the capability resource scheduler to call the resources of the fourth platform device to load part of the services under the third platform device according to the activation response, when the resource occupancy information of the third platform device indicates that the resource occupancy rate is less than a third threshold, determining that the resource scheduling information for the at least two second platform devices is second information, and the second information indicates to deactivate the resources of the fourth platform device that loads the part of the services;

[0092] The third threshold is smaller than the first threshold.

[0093] Optionally, the using the capability resource scheduler to perform resource scheduling on the at least two second platform devices according to the resource scheduling information further includes:

[0094] Using the capability resource scheduler, according to the second information, sending a deactivation instruction to the capability scheduler of the fourth platform device through the transceiver;

[0095] The capability resource scheduler is utilized to receive, through the transceiver, a deactivation response fed back by the capability scheduler of the fourth platform device.

[0096] Optionally, the using the capability resource scheduler to perform resource scheduling on the at least two second platform devices according to the resource scheduling information further includes:

[0097] By utilizing the capability resource scheduler, while the part of the services is still running, according to the second information, the resources of the third platform device are called to load the part of the services.

[0098] An embodiment of the present invention further provides a platform device, which is a second platform device and includes: a processor and a transceiver;

[0099] The processor is configured to obtain resource occupancy information of the second platform device by using the capability scheduler of the second platform device;

[0100] The capability scheduler is utilized to send the resource occupancy information to the capability resource scheduler of the first platform device through the transceiver.

[0101] Optionally, the processor is further configured to:

[0102] After using the capability scheduler to send the resource occupancy information to the capability resource scheduler of the first platform device through the transceiver, using the capability scheduler to receive the activation instruction sent by the capability resource scheduler of the first platform device through the transceiver;

[0103] The capability scheduler is used to activate the resources of the second platform device according to the activation instruction, and an activation response is fed back to the capability resource scheduler of the first platform device through the transceiver.

[0104] Optionally, the processor is further configured to:

[0105] After activating the resources of the second platform device according to the activation instruction by using the capability scheduler, receiving the deactivation instruction sent by the capability resource scheduler of the first platform device through the transceiver by using the capability scheduler;

[0106] The capability scheduler is used to deactivate the resources of the second platform device according to the deactivation instruction, and a deactivation response is fed back to the capability resource scheduler of the first platform device through the transceiver.

[0107] The embodiment of the present invention further provides a platform device, comprising a memory, a processor, and a program stored in the memory and executable on the processor; when the processor executes the program, the resource scheduling method on the first platform device side is implemented; or,

[0108] When the processor executes the program, the resource scheduling method on the second platform device side is implemented.

[0109] The embodiment of the present invention further provides a readable storage medium on which a program is stored, and when the program is executed by a processor, the steps in the resource scheduling method on the first platform device side are implemented; or,

[0110] When the program is executed by the processor, the steps in the resource scheduling method on the second platform device side are implemented.

[0111] The beneficial effects of the above technical solution of the present invention are as follows:

[0112] In the above scheme, the resource scheduling method receives resource occupancy information respectively sent by the capability schedulers included in at least two second platform devices by utilizing the capability resource scheduler of the first platform device; transmits the resource occupancy information to the capability scheduler of the first platform device through the capability resource scheduler; determines resource scheduling information for the at least two second platform devices according to the resource occupancy information by utilizing the capability scheduler; transmits the resource scheduling information to the capability scheduler through the capability scheduler; and performs resource scheduling on the at least two second platform devices according to the resource scheduling information by utilizing the capability resource scheduler. It can schedule resources and can schedule resources between platform devices. When the available resources corresponding to some platform devices are insufficient, the resources of platform devices with more available resources can be dynamically allocated to platform devices with insufficient available resources through the dynamic resource mobilization mechanism, and the capacity can be dynamically expanded with the help of resources from other platform devices. It avoids the long response time of capability service calls and ensures the service call capability. It can effectively reuse and utilize the resources of other services and avoid resource waste. It does not need to restart the platform device and avoid service interruption. It solves the problem in the prior art that the resource scheduling scheme may lead to poor service call capability, service interruption and resource waste due to insufficient resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0113] Figure 1 The resource scheduling method according to the embodiment of the present invention is shown in FIG. Figure 1 ;

[0114] Figure 2 The resource scheduling method according to the embodiment of the present invention is shown in FIG. Figure 2 ;

[0115] Figure 3 A schematic diagram of a resource scheduling method implementation framework according to an embodiment of the present invention;

[0116] Figure 4 The structure of the resource scheduling device according to the embodiment of the present invention is shown as follows Figure 1 ;

[0117] Figure 5 The structure of the resource scheduling device according to the embodiment of the present invention is shown as follows Figure 2 ;

[0118] Figure 6 The structure of the platform device of the embodiment of the present invention is shown as follows Figure 1 ;

[0119] Figure 7 The structure of the platform device of the embodiment of the present invention is shown as follows Figure 2 . DETAILED DESCRIPTION

[0120] In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.

[0121] The present invention aims to solve the problem that resource scheduling schemes in the prior art may lead to poor service calling capability, service interruption, and resource waste due to insufficient resources, and provides a resource scheduling method applied to a first platform device, such as Figure 1 As shown, including:

[0122] Step 11: using the capability resource scheduler of the first platform device, receiving resource occupancy information respectively sent by the capability schedulers included in at least two second platform devices;

[0123] Step 12: Transmitting the resource occupancy information to the capability scheduler of the first platform device through the capability resource scheduler;

[0124] Step 13: using the capability scheduler to determine resource scheduling information for the at least two second platform devices according to the resource occupancy information;

[0125] Step 14: Transmitting the resource scheduling information to the capability resource scheduler through the capability orchestrator;

[0126] Step 15: Utilize the capability resource scheduler to perform resource scheduling on the at least two second platform devices according to the resource scheduling information.

[0127] Among them, the first platform device can be implemented as a capability opening platform, and the second platform device can be implemented as a capability platform; the resource occupancy information can include at least one of CPU occupancy information and memory occupancy information; the resource occupancy information can specifically be the resource occupancy information corresponding to the main (service) capability, but is not limited to this.

[0128] The resource scheduling method provided in the embodiment of the present invention receives resource occupancy information respectively sent by the capability schedulers included in at least two second platform devices by utilizing the capability resource scheduler of the first platform device; transmits the resource occupancy information to the capability scheduler of the first platform device through the capability resource scheduler; determines resource scheduling information for the at least two second platform devices according to the resource occupancy information by utilizing the capability scheduler; transmits the resource scheduling information to the capability resource scheduler through the capability scheduler; and schedules the resource scheduling for the at least two second platform devices according to the resource scheduling information by utilizing the capability resource scheduler. It can schedule resources among platform devices. When the available resources corresponding to some platform devices are insufficient, the resources of platform devices with more available resources can be dynamically allocated to platform devices with insufficient available resources through the dynamic resource mobilization mechanism, and the capacity can be dynamically expanded with the help of resources of other platform devices. It avoids the long response time of capability service call and ensures the service call capability. It can effectively reuse and utilize the resources of other services and avoid resource waste. It does not need to restart the platform device and avoid service interruption. It solves the problem in the prior art that the resource scheduling scheme may lead to poor service call capability, service interruption and resource waste due to insufficient resources.

[0129] Among them, the use of the capability orchestrator to determine the resource scheduling information for the at least two second platform devices according to the resource occupancy information includes: using the capability orchestrator, when the resource occupancy information of the third platform device indicates that the resource occupancy rate is greater than or equal to the first threshold, determining that the resource scheduling information for the at least two second platform devices is the first information, and the first information indicates calling the resource load of the fourth platform device to load part of the business under the third platform device; wherein the third platform device is one of the at least two second platform devices; the fourth platform device is the platform device other than the third platform device among the at least two second platform devices; the resource occupancy rate indicated by the resource occupancy information of the fourth platform is less than the second threshold; the first threshold is greater than the second threshold.

[0130] That is, when the resources of the third platform device are insufficient, the resources of the fourth platform device are dynamically called to support the service of the third platform device; wherein the number of the fourth platform device is at least one. The resources of the called fourth platform device may be resources corresponding to capabilities other than the main service capabilities of the fourth platform device.

[0131] This makes it possible to schedule resources between platform devices and avoid deterioration of service calling capabilities due to insufficient resources.

[0132] Specifically, the use of the capability resource scheduler to perform resource scheduling for the at least two second platform devices according to the resource scheduling information includes: using the capability resource scheduler to send an activation instruction to the capability scheduler of the fourth platform device according to the first information; using the capability resource scheduler to receive an activation response fed back by the capability scheduler of the fourth platform device; and using the capability resource scheduler to call the resource load of the fourth platform device to load part of the business under the third platform device according to the activation response.

[0133] Further, the using of the capability orchestrator to determine the resource scheduling information for the at least two second platform devices according to the resource occupancy information also includes: using the capability orchestrator, after using the capability resource scheduler to call the resources of the fourth platform device to load part of the business under the third platform device according to the activation response, when the resource occupancy information of the third platform device indicates that the resource occupancy rate is less than a third threshold, determining that the resource scheduling information for the at least two second platform devices is second information, and the second information indicates to deactivate the resources of the fourth platform device that loads the part of the business; wherein the third threshold is less than the first threshold.

[0134] Correspondingly, using the capability resource scheduler to perform resource scheduling for the at least two second platform devices according to the resource scheduling information also includes: using the capability resource scheduler to send a deactivation instruction to the capability scheduler of the fourth platform device according to the second information; using the capability resource scheduler to receive a deactivation response fed back by the capability scheduler of the fourth platform device.

[0135] This can avoid wasting resources caused by continuing to run the resources of the fourth platform device when the resources of the third platform device are sufficient.

[0136] Furthermore, the use of the capability resource scheduler to schedule resources for the at least two second platform devices according to the resource scheduling information also includes: using the capability resource scheduler to call the resource load of the third platform device to load the part of the business according to the second information while the part of the business is still running.

[0137] This can ensure the normal operation of the business to the greatest extent.

[0138] The embodiment of the present invention also provides a resource scheduling method, which is applied to a second platform device, such as Figure 2 As shown, including:

[0139] Step 21: using the capability scheduler of the second platform device to obtain resource occupancy information of the second platform device;

[0140] Step 22: Utilize the capability scheduler to send the resource occupancy information to the capability resource scheduler of the first platform device.

[0141] Among them, the first platform device can be implemented as a capability opening platform, and the second platform device can be implemented as a capability platform; the resource occupancy information can include at least one of CPU occupancy information and memory occupancy information; the resource occupancy information can specifically be the resource occupancy information corresponding to the main (service) capability, but is not limited to this.

[0142] The resource scheduling method provided in the embodiment of the present invention obtains the resource occupancy information of the second platform device by utilizing the capability scheduler of the second platform device; utilizes the capability scheduler to send the resource occupancy information to the capability resource scheduler of the first platform device; can support the scheduling of resources between platform devices, and when the available resources corresponding to some platform devices are insufficient, through the resource dynamic mobilization mechanism, the resources of the platform devices with more available resources are dynamically allocated to the platform devices with insufficient available resources, and the dynamic capacity is elastically expanded with the help of the resources of other platform devices; avoids the capability service call response time being too long, ensures the service call capability, can effectively reuse and utilize the resources of other services, avoids resource waste, and does not need to restart the platform device, avoiding service interruption; it well solves the problem in the prior art that the resource scheduling scheme may lead to poor service call capability, service interruption, and resource waste due to insufficient resources.

[0143] Furthermore, after using the capability scheduler to send the resource occupancy information to the capability resource scheduler of the first platform device, it also includes: using the capability scheduler to receive an activation instruction sent by the capability resource scheduler of the first platform device; using the capability scheduler to activate the resources of the second platform device according to the activation instruction, and feeding back an activation response to the capability resource scheduler of the first platform device.

[0144] The second platform device here is specifically implemented as the fourth platform device mentioned above. The resources of the activated second platform device may be resources corresponding to capabilities other than the primary service capability of the second platform device.

[0145] In an embodiment of the present invention, after using the capability scheduler to activate the resources of the second platform device according to the activation instruction, it also includes: using the capability scheduler to receive a deactivation instruction sent by the capability resource scheduler of the first platform device; using the capability scheduler to deactivate the resources of the second platform device according to the deactivation instruction, and feeding back a deactivation response to the capability resource scheduler of the first platform device.

[0146] This can avoid wasting resources caused by running the resources of the second platform device unnecessarily.

[0147] It is to be noted that the above thresholds involved in the embodiments of the present invention may be empirical values ​​and are not limited here.

[0148] The resource scheduling method provided by the embodiment of the present invention is illustrated below with reference to multiple sides such as a first platform device and a second platform device. The first platform device takes a capability opening platform as an example, and the second platform device takes a capability platform as an example.

[0149] In response to the above technical problems, an embodiment of the present invention provides a resource scheduling method, which can be specifically implemented as a capability exposure platform mechanism for system resource sharing, involving a resource dynamic mobilization mechanism. When certain security capability platforms (corresponding to capability platforms) are short of resources, the resource dynamic mobilization mechanism of the capability exposure platform can be used to dynamically allocate the resources of capability platforms with more resources (which can be server resources) to capability platforms with insufficient resources, and flexibly use other capability platforms for dynamic expansion.

[0150] In this solution, considering that users call the service capabilities of the middle platform (capability platform) through the external API interface, when some capability platforms are short of resources and cannot be replenished effectively and quickly, the capability service call response time will be long, and even users will not be able to call the capabilities, which will make the user experience worse and the service call capability worse. In this regard, through the dynamic resource mobilization mechanism of the capability development platform, the resources of the capability platform with more resources are dynamically allocated to the capability platform with insufficient resources, and dynamic capacity expansion is flexibly carried out with the help of other capability platforms.

[0151] The solution provided by the embodiment of the present invention can be adopted as follows Figure 3 The system framework shown is implemented, which mainly involves the capability scheduler, capability orchestrator and capability resource scheduler; among them:

[0152] (1) About Capacity Scheduler:

[0153] The capability scheduler can obtain the resource status of the capability platform to which it belongs (including memory, CPU (central processing unit) and other resources; corresponding to the above-mentioned resource occupancy information), and report it to the capability resource scheduler of the capability open platform in a timely manner; so that the capability resource scheduler can use the capability orchestrator to analyze the user's call to different capability API interfaces, allocate different user requests to the corresponding capability platform and call its capability service, that is, allocate capability services on demand (corresponding to the above-mentioned use of the capability resource scheduler of the first platform device, receiving the resource occupancy information sent by the resource schedulers included in at least two second platform devices respectively; through the capability resource scheduler, the resource occupancy information is transmitted to the capability orchestrator of the first platform device; using the capability orchestrator, according to the resource occupancy information, determine the resource scheduling information for the at least two second platform devices; through the capability orchestrator, transmit the resource scheduling information to the capability resource scheduler; using the capability resource scheduler, according to the resource scheduling information, perform resource scheduling for the at least two second platform devices).

[0154] (2) About Capability Orchestrator:

[0155] With the rise of the front-end and back-end separation development model, development efficiency has been greatly improved. At the same time, a large number of APIs have been generated that are difficult to manage in an orderly manner. In addition, the continuous evolution of microservices, BFF (front-end and back-end separation services) services and RPA (cloud intelligent services) has also made it more urgent to quickly integrate interfaces. Based on this, the capability orchestrator is to allocate interfaces, visualize interface orchestration, and quickly reorganize and aggregate existing capabilities. In addition, when it is found that the resource occupancy of the main capability platform (a specific implementation of the above-mentioned third platform) is reduced to 50% (a specific implementation of the above-mentioned third threshold), the loaded business platform (corresponding to the above-mentioned fourth platform) is notified to shut down the started capability service (corresponding to the above-mentioned activated resources) to reduce resource consumption; corresponding to the above-mentioned use of the capability orchestrator, according to the resource occupancy information, the resource scheduling information for the at least two second platform devices is determined.

[0156] (3) About Capacity Resource Scheduler:

[0157] Resource scheduling refers to the acquisition of resource information reported by each capability platform and sending it to the capability orchestrator for coordination. Assuming that when the CPU and memory usage of a capability platform exceeds a certain threshold (corresponding to the first threshold mentioned above), the capability orchestrator notifies the capability resource scheduler to activate a capability platform with a resource usage rate of less than 50%. Various resources are reasonably and effectively adjusted, measured, analyzed and used. When some security capability platforms are short of resources, the resource dynamic mobilization mechanism of the capability development platform can be used to dynamically allocate the resources of capability platforms with more resources to capability platforms with insufficient resources, and elastically use other capability platforms for dynamic expansion.

[0158] The solution provided by the embodiment of the present invention is combined with Figure 3 The framework may specifically include the following operations: users access the website through the client, and the website obtains support from the capability exposure platform through the interface (that is, the capability exposure platform supports the website to provide external services through the interface); subsequently, the capability exposure platform can call various service capabilities of the middle platform (capability platform) through the capability API interface to provide various business capabilities to users.

[0159] Specifically, the capability open platform obtains the capabilities provided by each capability platform (corresponding to the above-mentioned resource occupancy information) through the capability resource scheduler, organizes and encapsulates them, and adopts a unified API model to provide external services, visualize interface orchestration, and quickly reorganize and aggregate existing capabilities.

[0160] The capability platform loads different capability services through the capability service container, among which a certain service capability (such as capability service 1) can be set as the main service capability, which is connected to the capability resource scheduler to support the capability exposure platform to provide external services; the main service capability can be understood as the service capability with the highest priority, such as providing protection capability, providing scanning capability, etc.; in this solution, when the resources for providing protection capability are sufficient, there is no need to call resources from other platforms; when the resources for providing protection capability are insufficient, the resources of other platforms are called to load the protection request business.

[0161] The capability scheduler can be responsible for monitoring the resource status in the capability platform (including memory, CPU, etc., corresponding to the above resource occupancy information) and reporting it to the capability resource scheduler of the capability open platform in a timely manner.

[0162] Among them, after the capability resource scheduler obtains the resource status reported by each capability platform, it sends it to the capability orchestrator for coordination; for example: when the CPU and memory occupancy of a capability platform exceeds 80%, the capability orchestrator notifies the capability resource scheduler to activate a capability platform with a resource occupancy of less than 50% (corresponding to sending an activation instruction to pull up the backup capability) and start the corresponding service capability; and the capability resource scheduler loads the business to the newly enabled capability platform (corresponding to the above-mentioned call to the resource load of the fourth platform device to load part of the business under the third platform device), reducing the business pressure of the main capability platform (that is, the service platform that provides the above-mentioned main service capability); that is, when a platform has abundant resources and less resources, the capability resource scheduler can pull up the backup capability (which can be a capability other than the main service capability of the platform) to support the main service capability of other platforms and share the pressure.

[0163] Furthermore, when the capability orchestrator finds that the resource usage of the main capability platform has dropped to 50%, it notifies the loaded service platform (i.e., the newly enabled capability platform) to shut down (corresponding to sending a deactivation instruction to the capability scheduler of the fourth platform device). In this way, shutting down the enabled capability service can reduce resource consumption.

[0164] As described above, this solution can realize dynamic capacity expansion for a capability platform with insufficient resources by elastically using other capability platforms, so that service capability calls are not affected by insufficient resources.

[0165] The Open API involved in the embodiments of the present invention can all adopt http (Hypertext Transfer Protocol) + RESTful protocol; the parameters and data to be transmitted can all be assembled in json (a standard data packaging format for the Internet); this has better adaptability and is easier to encapsulate and transmit data.

[0166] From the above, it can be seen that the solution provided by the embodiment of the present invention realizes a dynamic scheduling mechanism for capability resources. Through the elastic scheduling mechanism, the resources of the capability platform with more resources can be dynamically allocated to the capability platform with insufficient resources, and dynamic capacity expansion can be elastically carried out with the help of other capability platforms, so that the service capability call is not affected by insufficient resources; furthermore, the capability scheduling application can be managed on a platform basis by using data monitoring, data analysis, data traceability, etc.

[0167] In general, the resource expansion mechanism of most current capability platforms is implemented on the PAAS platform side. That is, when the service cluster capacity of the capability platform is insufficient, the user shuts down the service, expands the server's memory, CPU, hard disk and other resources, and then restarts and loads the service resources. This can easily cause service interruptions. At the same time, it is impossible to effectively reuse and utilize the existing resources of other services, which can easily lead to resource waste.

[0168] Compared with most current capability exposure platforms, this solution proposes a dynamic resource scheduling mechanism that dynamically schedules resources to areas where resources are insufficient, achieving deployment-free and installation-free, and elastically using other capability platforms for dynamic capacity expansion; it also avoids problems such as service interruption and resource waste.

[0169] The embodiment of the present invention further provides a resource scheduling device, which is applied to a first platform device, such as Figure 4 As shown, including:

[0170] A first receiving module 41 is used to use the capability resource scheduler of the first platform device to receive resource occupancy information respectively sent by the capability schedulers included in at least two second platform devices;

[0171] A first transmission module 42, configured to transmit the resource occupancy information to a capability scheduler of the first platform device through the capability resource scheduler;

[0172] A first determination module 43 is used to determine resource scheduling information for the at least two second platform devices according to the resource occupancy information by using the capability scheduler;

[0173] A second transmission module 44 is used to transmit the resource scheduling information to the capability resource scheduler through the capability scheduler;

[0174] The first scheduling module 45 is used to utilize the capability resource scheduler to perform resource scheduling on the at least two second platform devices according to the resource scheduling information.

[0175] The resource scheduling device provided in the embodiment of the present invention receives resource occupancy information respectively sent by the capability schedulers included in at least two second platform devices by using the capability resource scheduler of the first platform device; transmits the resource occupancy information to the capability scheduler of the first platform device through the capability resource scheduler; uses the capability scheduler to determine resource scheduling information for the at least two second platform devices according to the resource occupancy information; transmits the resource scheduling information to the capability scheduler through the capability scheduler; uses the capability resource scheduler to schedule resource scheduling for the at least two second platform devices according to the resource scheduling information. It can schedule resources among platform devices. When the available resources corresponding to some platform devices are insufficient, the resources of platform devices with more available resources can be dynamically allocated to platform devices with insufficient available resources through the dynamic resource mobilization mechanism, and the capacity can be dynamically expanded with the help of resources of other platform devices. It avoids the long response time of capability service call and ensures the service call capability. It can effectively reuse and utilize the resources of other services and avoid resource waste. It does not need to restart the platform device and avoid service interruption. It solves the problem in the prior art that the resource scheduling scheme may lead to poor service call capability, service interruption and resource waste due to insufficient resources.

[0176] Among them, the use of the capability orchestrator to determine the resource scheduling information for the at least two second platform devices according to the resource occupancy information includes: using the capability orchestrator, when the resource occupancy information of the third platform device indicates that the resource occupancy rate is greater than or equal to the first threshold, determining that the resource scheduling information for the at least two second platform devices is the first information, and the first information indicates calling the resource load of the fourth platform device to load part of the business under the third platform device; wherein the third platform device is one of the at least two second platform devices; the fourth platform device is the platform device other than the third platform device among the at least two second platform devices; the resource occupancy rate indicated by the resource occupancy information of the fourth platform is less than the second threshold; the first threshold is greater than the second threshold.

[0177] Specifically, the use of the capability resource scheduler to perform resource scheduling for the at least two second platform devices according to the resource scheduling information includes: using the capability resource scheduler to send an activation instruction to the capability scheduler of the fourth platform device according to the first information; using the capability resource scheduler to receive an activation response fed back by the capability scheduler of the fourth platform device; and using the capability resource scheduler to call the resource load of the fourth platform device to load part of the business under the third platform device according to the activation response.

[0178] Further, the using of the capability orchestrator to determine the resource scheduling information for the at least two second platform devices according to the resource occupancy information also includes: using the capability orchestrator, after using the capability resource scheduler to call the resources of the fourth platform device to load part of the business under the third platform device according to the activation response, when the resource occupancy information of the third platform device indicates that the resource occupancy rate is less than a third threshold, determining that the resource scheduling information for the at least two second platform devices is second information, and the second information indicates to deactivate the resources of the fourth platform device that loads the part of the business; wherein the third threshold is less than the first threshold.

[0179] Correspondingly, using the capability resource scheduler to perform resource scheduling for the at least two second platform devices according to the resource scheduling information also includes: using the capability resource scheduler to send a deactivation instruction to the capability scheduler of the fourth platform device according to the second information; using the capability resource scheduler to receive a deactivation response fed back by the capability scheduler of the fourth platform device.

[0180] Furthermore, the use of the capability resource scheduler to schedule resources for the at least two second platform devices according to the resource scheduling information also includes: using the capability resource scheduler to call the resource load of the third platform device to load the part of the business according to the second information while the part of the business is still running.

[0181] Among them, the implementation embodiments of the resource scheduling method on the first platform device side are all applicable to the embodiments of the resource scheduling device, and can also achieve the corresponding same technical effects.

[0182] The embodiment of the present invention also provides a resource scheduling device, which is applied to a second platform device, such as Figure 5 As shown, including:

[0183] A first acquisition module 51 is used to acquire resource occupancy information of the second platform device by using the capacity scheduler of the second platform device;

[0184] The first sending module 52 is used to use the capability scheduler to send the resource occupancy information to the capability resource scheduler of the first platform device.

[0185] The resource scheduling device provided in the embodiment of the present invention obtains the resource occupancy information of the second platform device by utilizing the capability scheduler of the second platform device; utilizes the capability scheduler to send the resource occupancy information to the capability resource scheduler of the first platform device; can support the scheduling of resources between platform devices, and when the available resources corresponding to certain platform devices are insufficient, through the resource dynamic mobilization mechanism, the resources of the platform devices with more available resources are dynamically allocated to the platform devices with insufficient available resources, and the dynamic capacity is elastically expanded with the help of the resources of other platform devices; avoids the capability service call response time being too long, ensures the service call capability, can effectively reuse and utilize the resources of other services, avoids resource waste, and does not need to restart the platform device, avoiding service interruption; it well solves the problem in the prior art that the resource scheduling scheme may lead to poor service call capability, service interruption, and resource waste due to insufficient resources.

[0186] Furthermore, the resource scheduling device also includes: a second receiving module, which is used to use the capability scheduler to receive the activation instruction sent by the capability resource scheduler of the first platform device after using the capability scheduler to send the resource occupancy information to the capability resource scheduler of the first platform device; a first processing module, which is used to use the capability scheduler to activate the resources of the second platform device according to the activation instruction, and feedback the activation response to the capability resource scheduler of the first platform device.

[0187] In an embodiment of the present invention, the resource scheduling device further includes: a third receiving module, which is used to use the capability scheduler to receive a deactivation instruction sent by the capability resource scheduler of the first platform device after using the capability scheduler to activate the resources of the second platform device according to the activation instruction; a second processing module, which is used to use the capability scheduler to deactivate the resources of the second platform device according to the deactivation instruction, and feed back a deactivation response to the capability resource scheduler of the first platform device.

[0188] Among them, the implementation embodiments of the resource scheduling method on the second platform device side are all applicable to the embodiments of the resource scheduling device, and can also achieve the corresponding same technical effects.

[0189] The embodiment of the present invention further provides a platform device, wherein the platform device is a first platform device, such as Figure 6 As shown, it includes: a processor 61 and a transceiver 62;

[0190] The processor 61 is used to use the capability resource scheduler of the first platform device to receive resource occupancy information respectively sent by the capability schedulers included in at least two second platform devices through the transceiver 62;

[0191] The resource occupancy information is transmitted to the capability scheduler of the first platform device through the capability resource scheduler;

[0192] Determine resource scheduling information for the at least two second platform devices using the capability scheduler according to the resource occupancy information;

[0193] The resource scheduling information is transmitted to the capability resource scheduler through the capability orchestrator;

[0194] The capability resource scheduler is used to schedule resources for the at least two second platform devices according to the resource scheduling information.

[0195] The platform device provided in the embodiment of the present invention receives resource occupancy information respectively sent by the capability schedulers included in at least two second platform devices by utilizing the capability resource scheduler of the first platform device; transmits the resource occupancy information to the capability scheduler of the first platform device through the capability resource scheduler; utilizes the capability scheduler to determine resource scheduling information for the at least two second platform devices according to the resource occupancy information; transmits the resource scheduling information to the capability scheduler through the capability scheduler; utilizes the capability resource scheduler to schedule resource scheduling for the at least two second platform devices according to the resource scheduling information. Perform resource scheduling; it can schedule resources between platform devices. When the available resources corresponding to some platform devices are insufficient, the resources of platform devices with more available resources can be dynamically allocated to platform devices with insufficient available resources through the dynamic resource mobilization mechanism, and dynamic capacity expansion can be elastically performed with the help of resources from other platform devices; it avoids the long response time of capability service calls and ensures the service call capability, and can effectively reuse and utilize the resources of other services to avoid resource waste, and there is no need to restart the platform device to avoid service interruption; it solves the problem in the prior art that the resource scheduling scheme will lead to poor service call capability, service interruption, and resource waste due to insufficient resources.

[0196] Among them, the use of the capability orchestrator to determine the resource scheduling information for the at least two second platform devices according to the resource occupancy information includes: using the capability orchestrator, when the resource occupancy information of the third platform device indicates that the resource occupancy rate is greater than or equal to the first threshold, determining that the resource scheduling information for the at least two second platform devices is the first information, and the first information indicates calling the resource load of the fourth platform device to load part of the business under the third platform device; wherein the third platform device is one of the at least two second platform devices; the fourth platform device is the platform device other than the third platform device among the at least two second platform devices; the resource occupancy rate indicated by the resource occupancy information of the fourth platform is less than the second threshold; the first threshold is greater than the second threshold.

[0197] Specifically, the use of the capability resource scheduler to perform resource scheduling for the at least two second platform devices according to the resource scheduling information includes: using the capability resource scheduler to send an activation instruction to the capability scheduler of the fourth platform device through the transceiver according to the first information; using the capability resource scheduler to receive an activation response fed back by the capability scheduler of the fourth platform device through the transceiver; using the capability resource scheduler to call the resource load of the fourth platform device according to the activation response. Part of the business under the third platform device.

[0198] Further, the using of the capability orchestrator to determine the resource scheduling information for the at least two second platform devices according to the resource occupancy information also includes: using the capability orchestrator, after using the capability resource scheduler to call the resources of the fourth platform device to load part of the business under the third platform device according to the activation response, when the resource occupancy information of the third platform device indicates that the resource occupancy rate is less than a third threshold, determining that the resource scheduling information for the at least two second platform devices is second information, and the second information indicates to deactivate the resources of the fourth platform device that loads the part of the business; wherein the third threshold is less than the first threshold.

[0199] Correspondingly, the use of the capability resource scheduler to perform resource scheduling for the at least two second platform devices according to the resource scheduling information also includes: using the capability resource scheduler to send a deactivation instruction to the capability scheduler of the fourth platform device through the transceiver according to the second information; and using the capability resource scheduler to receive a deactivation response fed back by the capability scheduler of the fourth platform device through the transceiver.

[0200] Furthermore, the use of the capability resource scheduler to schedule resources for the at least two second platform devices according to the resource scheduling information also includes: using the capability resource scheduler to call the resource load of the third platform device to load the part of the business according to the second information while the part of the business is still running.

[0201] Among them, the implementation embodiments of the resource scheduling method on the first platform device side mentioned above are all applicable to the embodiments of the platform device and can also achieve the corresponding same technical effects.

[0202] The embodiment of the present invention further provides a platform device, wherein the platform device is a second platform device, such as Figure 7 As shown, it includes: a processor 71 and a transceiver 72;

[0203] The processor 71 is configured to obtain resource occupancy information of the second platform device by using the capability scheduler of the second platform device;

[0204] The capability scheduler is used to send the resource occupancy information to the capability resource scheduler of the first platform device through the transceiver 72 .

[0205] The platform device provided in the embodiment of the present invention obtains the resource occupancy information of the second platform device by utilizing the capability scheduler of the second platform device; utilizes the capability scheduler to send the resource occupancy information to the capability resource scheduler of the first platform device; can support the scheduling of resources between platform devices, and when the available resources corresponding to certain platform devices are insufficient, through the dynamic resource mobilization mechanism, the resources of the platform devices with more available resources are dynamically allocated to the platform devices with insufficient available resources, and the dynamic capacity is elastically expanded with the help of the resources of other platform devices; avoids the capability service call response time being too long, ensures the service call capability, can effectively reuse and utilize the resources of other services, avoids resource waste, and does not need to restart the platform device, avoiding service interruption; it well solves the problem in the prior art that the resource scheduling scheme may lead to poor service call capability, service interruption, and resource waste due to insufficient resources.

[0206] Furthermore, the processor is also used to: after using the capability scheduler to send the resource occupancy information to the capability resource scheduler of the first platform device through the transceiver, use the capability scheduler to receive the activation instruction sent by the capability resource scheduler of the first platform device through the transceiver; use the capability scheduler to activate the resources of the second platform device according to the activation instruction, and feedback the activation response to the capability resource scheduler of the first platform device through the transceiver.

[0207] In an embodiment of the present invention, the processor is also used to: after using the capability scheduler to activate the resources of the second platform device according to the activation instruction, use the capability scheduler to receive a deactivation instruction sent by the capability resource scheduler of the first platform device through the transceiver; use the capability scheduler to deactivate the resources of the second platform device according to the deactivation instruction, and feedback a deactivation response to the capability resource scheduler of the first platform device through the transceiver.

[0208] Among them, the implementation embodiments of the resource scheduling method on the second platform device side are all applicable to the embodiments of the platform device and can achieve the corresponding same technical effects.

[0209] The embodiment of the present invention further provides a platform device, comprising a memory, a processor, and a program stored in the memory and executable on the processor; when the processor executes the program, the resource scheduling method on the first platform device side is implemented; or,

[0210] When the processor executes the program, the resource scheduling method on the second platform device side is implemented.

[0211] Among them, the implementation embodiments of the resource scheduling method on the first platform device side or the second platform device side are all applicable to the embodiments of the platform device and can achieve the corresponding same technical effects.

[0212] The embodiment of the present invention further provides a readable storage medium on which a program is stored, and when the program is executed by a processor, the steps in the resource scheduling method on the first platform device side are implemented; or,

[0213] When the program is executed by the processor, the steps in the resource scheduling method on the second platform device side are implemented.

[0214] Among them, the implementation embodiments of the resource scheduling method on the first platform device side or the second platform device side are all applicable to the embodiments of the readable storage medium, and can also achieve the corresponding same technical effects.

[0215] It should be noted that many functional components described in this specification are referred to as modules in order to more particularly emphasize the independence of their implementation methods.

[0216] In the embodiment of the present invention, module can be implemented with software so that it can be executed by various types of processors. For example, an executable code module of an identification can include one or more physical or logical blocks of computer instructions, for example, it can be constructed as an object, process or function. Nevertheless, the executable code of the identified module does not need to be physically located together, but can include different instructions stored in different positions, and when these instructions are logically combined together, it constitutes a module and realizes the specified purpose of the module.

[0217] In fact, executable code module can be a single instruction or many instructions, and can even be distributed on a plurality of different code segments, distributed among different programs, and distributed across a plurality of memory devices. Similarly, operating data can be identified in the module, and can be implemented and organized in the data structure of any appropriate type according to any appropriate form. The operating data can be collected as a single data set, or can be distributed in different locations (including on different storage devices), and can only be present on a system or network as an electronic signal at least in part.

[0218] When a module can be implemented by software, considering the level of existing hardware technology, a person skilled in the art can build a corresponding hardware circuit to implement the corresponding function of the module that can be implemented by software without considering the cost. The hardware circuit includes a conventional very large scale integration (VLSI) circuit or gate array and existing semiconductors such as logic chips, transistors, or other discrete components. The module can also be implemented by a programmable hardware device, such as a field programmable gate array, a programmable array logic, a programmable logic device, etc.

[0219] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary personnel in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A resource scheduling method, applied to a first platform device, characterized in that: include: Using the capability resource scheduler of the first platform device, receiving resource occupancy information respectively sent by the capability schedulers included in at least two second platform devices; The resource occupancy information is transmitted to the capability scheduler of the first platform device through the capability resource scheduler; Determine resource scheduling information for the at least two second platform devices using the capability scheduler according to the resource occupancy information; The resource scheduling information is transmitted to the capability resource scheduler through the capability orchestrator; Using the capability resource scheduler, and according to the resource scheduling information, performing resource scheduling on the at least two second platform devices; The using the capability scheduler to determine resource scheduling information for the at least two second platform devices according to the resource occupancy information includes: Using the capability orchestrator, when the resource occupancy information of the third platform device indicates that the resource occupancy rate is greater than or equal to the first threshold, determining that the resource scheduling information for the at least two second platform devices is first information, wherein the first information indicates calling the resource load of the fourth platform device to load part of the services under the third platform device; Wherein, the third platform device is one platform device among the at least two second platform devices; The fourth platform device is a platform device among the at least two second platform devices except the third platform device; The resource occupancy rate indicated by the resource occupancy information of the fourth platform is less than a second threshold; The first threshold is greater than the second threshold; The utilizing the capability resource scheduler to perform resource scheduling on the at least two second platform devices according to the resource scheduling information includes: Using the capability resource scheduler, according to the first information, an activation instruction is sent to the capability scheduler of the fourth platform device; Using the capability resource scheduler, receiving an activation response fed back by the capability scheduler of the fourth platform device; The capability resource scheduler is utilized to call the resources of the fourth platform device to load part of the services under the third platform device according to the activation response.

2. The resource scheduling method according to claim 1, characterized in that: The determining, using the capability scheduler according to the resource occupancy information, resource scheduling information for the at least two second platform devices further includes: Using the capability orchestrator, after using the capability resource scheduler to call the resources of the fourth platform device to load part of the services under the third platform device according to the activation response, when the resource occupancy information of the third platform device indicates that the resource occupancy rate is less than a third threshold, determining that the resource scheduling information for the at least two second platform devices is second information, and the second information indicates to deactivate the resources of the fourth platform device that loads the part of the services; The third threshold is smaller than the first threshold.

3. The resource scheduling method according to claim 2, characterized in that: The utilizing the capability resource scheduler to perform resource scheduling on the at least two second platform devices according to the resource scheduling information further includes: Using the capability resource scheduler, according to the second information, sending a deactivation instruction to the capability scheduler of the fourth platform device; The capability resource scheduler is used to receive a deactivation response fed back by the capability scheduler of the fourth platform device.

4. The resource scheduling method according to claim 2 or 3, characterized in that: The utilizing the capability resource scheduler to perform resource scheduling on the at least two second platform devices according to the resource scheduling information further includes: By utilizing the capability resource scheduler, while the part of the services is still running, according to the second information, the resources of the third platform device are called to load the part of the services.

5. A resource scheduling method, applied to a second platform device, characterized in that: include: Using the capability scheduler of the second platform device, obtaining resource occupancy information of the second platform device; Using the capability scheduler, sending the resource occupancy information to the capability resource scheduler of the first platform device; The resource occupancy information is used to determine resource scheduling information for at least two of the second platform devices; the resource occupancy information is used to determine resource scheduling information for at least two of the second platform devices, including: The first platform device uses the capability orchestrator to determine, when the resource occupancy information of the third platform device indicates that the resource occupancy rate is greater than or equal to the first threshold, that the resource scheduling information for at least two of the second platform devices is first information, wherein the first information indicates calling the resources of the fourth platform device to load part of the services under the third platform device; Wherein, the third platform device is one platform device among at least two of the second platform devices; The fourth platform device is a platform device other than the third platform device among the at least two second platform devices; The resource occupancy rate indicated by the resource occupancy information of the fourth platform is less than a second threshold; The first threshold is greater than the second threshold; After using the capability scheduler to send the resource occupancy information to the capability resource scheduler of the first platform device, the method further includes: Using the capability scheduler, receiving an activation instruction sent by the capability resource scheduler of the first platform device; The capability scheduler is used to activate the resources of the second platform device according to the activation instruction, and an activation response is fed back to the capability resource scheduler of the first platform device.

6. The resource scheduling method according to claim 5, characterized in that: After activating the resources of the second platform device by using the capability scheduler according to the activation instruction, the method further includes: Using the capability scheduler, receiving a deactivation instruction sent by the capability resource scheduler of the first platform device; The capability scheduler is used to deactivate the resources of the second platform device according to the deactivation instruction, and a deactivation response is fed back to the capability resource scheduler of the first platform device.

7. A platform device, the platform device being a first platform device, characterized in that: include: Capacity resource scheduler and capability orchestrator; The capability resource scheduler is used to receive resource occupancy information respectively sent by the capability schedulers included in at least two second platform devices; The capability resource scheduler is used to transmit the resource occupancy information to the capability orchestrator; The capability scheduler is used to determine resource scheduling information for the at least two second platform devices according to the resource occupancy information; The capability scheduler is used to transmit the resource scheduling information to the capability resource scheduler; The capability resource scheduler is used to perform resource scheduling on the at least two second platform devices according to the resource scheduling information; The determining, according to the resource occupancy information, resource scheduling information for the at least two second platform devices includes: When the resource occupancy information of the third platform device indicates that the resource occupancy rate is greater than or equal to the first threshold, determining that the resource scheduling information for the at least two second platform devices is the first information, wherein the first information indicates calling the resource load of the fourth platform device to load part of the services under the third platform device; Wherein, the third platform device is one platform device among the at least two second platform devices; The fourth platform device is a platform device among the at least two second platform devices except the third platform device; The resource occupancy rate indicated by the resource occupancy information of the fourth platform is less than a second threshold; The first threshold is greater than the second threshold; The performing resource scheduling on the at least two second platform devices according to the resource scheduling information includes: Sending an activation instruction to a capability scheduler of a fourth platform device according to the first information; receiving an activation response fed back by the capability scheduler of the fourth platform device; According to the activation response, resources of the fourth platform device are called to load part of the services under the third platform device.

8. A platform device, the platform device being a second platform device, characterized in that: include: Capacity Scheduler; The capability scheduler is used to obtain resource occupancy information of the second platform device; The capability scheduler is used to send the resource occupancy information to the capability resource scheduler of the first platform device; The resource occupancy information is used to determine resource scheduling information for at least two of the second platform devices; the resource occupancy information is used to determine resource scheduling information for at least two of the second platform devices, including: the first platform device uses the capability scheduler to determine that the resource scheduling information for at least two of the second platform devices is first information when the resource occupancy information of the third platform device indicates that the resource occupancy rate is greater than or equal to the first threshold, and the first information indicates calling the resource load of the fourth platform device to load part of the business under the third platform device; Wherein, the third platform device is one platform device among the at least two second platform devices; The fourth platform device is a platform device among the at least two second platform devices except the third platform device; The resource occupancy rate indicated by the resource occupancy information of the fourth platform is less than a second threshold; The first threshold is greater than the second threshold; The capability scheduler is further used for: After sending the resource occupancy information to the capability resource scheduler of the first platform device, receiving an activation instruction sent by the capability resource scheduler of the first platform device; According to the activation instruction, the resources of the second platform device are activated, and an activation response is fed back to the capability resource scheduler of the first platform device.

9. A platform device, comprising a memory, a processor, and a program stored in the memory and executable on the processor; characterized in that: When the processor executes the program, the resource scheduling method according to any one of claims 1 to 4 is implemented; or, When the processor executes the program, the resource scheduling method according to any one of claims 5 to 6 is implemented.

10. A readable storage medium having a program stored thereon, characterized in that: When the program is executed by a processor, the steps of the resource scheduling method according to any one of claims 1 to 4 are implemented; or, When the program is executed by a processor, the steps in the resource scheduling method according to any one of claims 5 to 6 are implemented.

Citation Information

Patent Citations

  • Resource scheduling method and device for security service platform

    CN106453646A

  • Scheduling method, device and system based on server resource consumption prediction

    CN108566424A

  • A resilient computing service management system

    CN109471730A