Automatic elastic scaling system, method and related equipment for multiple types of clusters
Through the automatic elastic scaling system of multiple types of clusters, the elastic scaling engine outside the cluster and the resource management and control system are used in combination to realize elastic scaling management and control of multiple clusters, support user customized indicators, and solve the problem of cluster resource management platforms in the existing technology. The expansion and contraction strategy provides a more accurate and stable elastic scaling effect based on a single problem.
Patent Information
- Application Number
- CN202410707194.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-03
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-06-03
AI Technical Summary
Existing cloud computing platforms and self-built platforms have limitations in the automatic elastic scaling of multiple types of cluster resources. They cannot elastically scale multiple different types of clusters at the same time. Moreover, the expansion and contraction basis is single, and user-customized indicators cannot be introduced, resulting in The expansion and contraction effect is not ideal.
An automatic elastic scaling system for multiple types of clusters is proposed, including an external elastic scaling engine, a resource monitoring module, a resource management and control system and a resource pool. The external elastic scaling engine is used to regulate resources for multiple types of clusters, and the resource monitoring module monitors resources. The occupied data is fed back to the engine. The resource management and control system receives control signals to regulate resources and supports user-customized indicators and strategy management.
It realizes simultaneous automatic elastic scaling of multiple clusters, supports reuse of the same expansion and contraction strategies or rules, and combines external and internal elastic scaling devices of the cluster to provide more accurate and stable elastic scaling effects, solving the problem of cloud computing platform expansion and contraction. Strategies are based on a single problem.
Smart Images

Figure CN118277106B
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to an automatic elastic scaling system, method and related equipment for multiple types of clusters. Background Art
[0002] The advantages of realizing automatic elastic scaling of multi-cluster resources based on cloud computing platforms are that the system can be quickly deployed and expanded, supporting a variety of application scenarios and service models, optimizing and saving resources, and improving system reliability and security. Public cloud computing platform providers provide commercial elastic scaling technology for cloud computing resources. The disadvantage is that it needs to rely on cloud service providers or platform providers, which may lead to problems such as increased costs or service restrictions; the indicators based on which the capacity is expanded and reduced are fixed, and third-party or user-customized indicators cannot be introduced. In addition, the elastic scaling technology provided by the public cloud computing platform can only perform elastic scaling for one cluster, and cannot operate on multiple clusters of different types at the same time.
[0003] The advantages of implementing automatic elastic scaling of multi-cluster resources based on virtualization technology are that it can highly isolate and protect the system, support multiple hardware platforms and operating systems, and improve system flexibility and compatibility. The disadvantage is that it requires higher hardware configuration requirements and may have performance loss or compatibility issues.
[0004] The advantages of realizing automatic elastic scaling of multi-cluster resources based on hybrid cloud technology are that it can distribute computing power across regions, support multiple hardware platforms and operating systems, and improve system scalability and portability. The disadvantage is that it requires a more complex network communication protocol, which may cause network delays or failures.
[0005] In the solution of building a self-built platform to achieve automatic elastic scaling of resources, the elastic scaling device that comes with the cluster management software can only scale up and down for one cluster, and cannot scale up and down multiple clusters. Moreover, it can only scale up and down based on the application load working on it, and cannot be extended to other indicators.
[0006] In addition, the above-mentioned different types of clusters have a limitation: many existing commercial usage scenarios are complex. A commercial usage scenario may require the joint support of multiple types of clusters mentioned above. The elastic scaling device (open source elastic scaling technology) in the cluster does not collect external information about the cluster operation. In other words, it does not look at the problem from a higher perspective, such as the external decision-making perspective and the cost perspective, which can easily lead to the final expansion and contraction execution failure or unsatisfactory expansion and contraction execution effect. Summary of the invention
[0007] In view of this, the purpose of the present application is to propose an automatic elastic scaling system, method and related equipment for multiple types of clusters.
[0008] Based on the above objectives, the present application provides an automatic elastic scaling system for multiple types of clusters, including:
[0009] Out-of-cluster elastic scaling engine, multiple types of clusters, resource monitoring modules, resource management and control systems, and resource pools;
[0010] The out-of-cluster elastic scaling engine is used to perform resource regulation on the multiple types of clusters, and / or the out-of-cluster elastic scaling engine is used to send a resource regulation signal to the resource management and control system to perform resource regulation on the resource pool;
[0011] The resource monitoring module is used to monitor the resource occupancy data of the resource pool and feed the monitoring data back to the external elastic scaling engine of the cluster;
[0012] The resource management and control system is used to receive the control signal sent by the elastic scaling engine outside the cluster to perform resource control on the resource pool.
[0013] In a possible implementation, the system further includes an elastic scaling device within the cluster;
[0014] The elastic scaling device in the cluster is used to regulate resources of the multiple types of clusters;
[0015] The in-cluster elastic scaling device communicates with the out-cluster elastic scaling engine.
[0016] In a possible implementation, the system further includes a policy management system;
[0017] The policy management system is used to receive policy information and send the policy information to the resource management and control system to perform resource regulation on the resource pool.
[0018] In a possible implementation, the multiple types of clusters include at least one of a container cluster, a virtual machine cluster, a physical machine cluster, and a cloud host cluster.
[0019] In a possible implementation, the system further includes an application program interface service;
[0020] The in-cluster elastic scaling device communicates with the out-cluster elastic scaling engine through the application program interface service.
[0021] Based on the same inventive concept, the embodiment of the present application also provides a method for automatic elastic scaling of multiple types of clusters, including:
[0022] Use the resource monitoring module to monitor the resource usage data of the resource pool and feed the monitoring data back to the elastic scaling engine outside the cluster;
[0023] Using an out-of-cluster elastic scaling engine to perform resource regulation on multiple types of clusters, and / or using the out-of-cluster elastic scaling engine to send a resource regulation signal to the resource management and control system to perform resource regulation on a resource pool;
[0024] In response to the resource management and control system receiving the control signal sent by the elastic scaling engine outside the cluster, resource control is performed on the resource pool.
[0025] In a possible implementation, the use of an external elastic scaling engine to regulate resources of multiple types of clusters includes:
[0026] Utilize the external elastic scaling engine to simultaneously regulate resources of the multiple types of clusters, and / or
[0027] The external elastic scaling engine is used to reuse the same resource control rule in the multiple types of clusters.
[0028] In a possible implementation, the system further includes a policy management system;
[0029] The method further comprises:
[0030] The policy management system is used to receive the user-defined resource allocation policy, and the user-defined resource allocation policy is sent to the resource management and control system to perform resource regulation on the resource pool.
[0031] In a possible implementation, the system further includes an elastic scaling device within the cluster;
[0032] The elastic scaling device within the cluster is used to communicate with the elastic scaling engine outside the cluster and to regulate resources of the multiple types of clusters.
[0033] Based on the same inventive concept, an embodiment of the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for automatic elastic scaling of multiple types of clusters as described in any one of the above items is implemented.
[0034] From the above, it can be seen that the automatic elastic scaling system, method and related equipment for multiple types of clusters provided by the present application include: an elastic scaling engine outside the cluster, multiple types of clusters, a resource monitoring module, a resource management system and a resource pool; the elastic scaling engine outside the cluster is used to perform resource regulation on multiple types of clusters, and / or, the elastic scaling engine outside the cluster is used to send a resource regulation signal to the resource management system to perform resource regulation on the resource pool; the resource monitoring module is used to monitor the resource occupancy data of the resource pool and feed back the monitoring data to the elastic scaling engine outside the cluster; the resource management system is used to receive the regulation signal sent by the elastic scaling engine outside the cluster to perform resource regulation on the resource pool. The embodiment of the present application uses a system to perform automatic elastic scaling operations on multiple resource clusters at the same time, which solves the problem that the cloud computing platform can only scale up and down for one resource cluster. The system of the embodiment of the present application supports the reuse of the same scaling strategy or rule on multiple clusters, which solves the problem that the cloud computing platform can only scale up and down for one resource cluster. In addition to the basic CPU, memory, network, and storage indicators, the system of the embodiment of the present application also supports user-customized expansion and contraction indicators, which are not limited to the resource indicators themselves, but also include customized indicators such as application load on the cluster, and other external indicators, which solves the problem that the expansion and contraction strategy of the cloud computing resource management platform is based on a single basis. The system of the embodiment of the present application combines the two types of elastic scaling, the elastic scaling engine outside the cluster and the elastic scaling device inside the cluster, through a specific algorithm to achieve a more elastic and accurate expansion and contraction purpose, solving the problem that the expansion and contraction strategy of the cloud computing resource management platform is based on a single basis and cannot be used in combination with the elastic scaling of the container orchestration software. The embodiment of the present application stands at a higher perspective, and can manage and control the elastic expansion and contraction of multiple clusters. It is not limited to two single indicators of resources and applications, but can be customized by users. The elastic scaling device outside the cluster is invented, and it is connected with the underlying resource management and control system to make more accurate decisions. In addition, the elastic scaling device outside the cluster and the elastic scaling device inside the cluster can be used in combination to provide a more accurate and stable elastic scaling effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solutions in the present application or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0036] Figure 1 This is a schematic diagram of the structure of an automatic elastic scaling system for multiple types of clusters in an embodiment of the present application;
[0037] Figure 2 A schematic diagram of a process flow of an automatic elastic scaling method for multiple types of clusters according to an embodiment of the present application;
[0038] Figure 3 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0039] In order to make the objectives, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.
[0040] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present application should be the usual meanings understood by people with ordinary skills in the field to which the present application belongs. The "first", "second" and similar words used in the embodiments of the present application do not represent any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing in front of the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0041] It is understandable that before using the technical solutions of each embodiment of the present disclosure, the type, scope of use, usage scenarios, etc. of the personal information involved will be informed to the user in an appropriate manner, and the user's authorization will be obtained.
[0042] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly remind the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can independently choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0043] As an optional but non-limiting implementation, in response to receiving the user's active request, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0044] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0045] As described in the background technology section, the advantages of realizing automatic elastic scaling of multi-cluster resources based on cloud computing platforms or container technology are that the system can be quickly deployed and expanded, supporting a variety of application scenarios and service models, optimizing and saving resources, and improving system reliability and security. Public cloud computing platform providers provide commercial elastic scaling technology for cloud computing resources. The disadvantage is that it needs to rely on cloud service providers or platform providers, which may lead to problems such as increased costs or service restrictions; the indicators based on which the capacity is expanded and reduced are fixed, and third-party or user-customized indicators cannot be introduced. In addition, the elastic scaling technology provided by the public cloud computing platform can only perform elastic scaling for one cluster, and cannot operate on multiple clusters of different types at the same time.
[0046] The advantages of implementing automatic elastic scaling of multi-cluster resources based on virtualization technology are that it can highly isolate and protect the system, support multiple hardware platforms and operating systems, and improve system flexibility and compatibility. The disadvantage is that it requires higher hardware configuration requirements and may have performance loss or compatibility issues.
[0047] The advantages of realizing automatic elastic scaling of multi-cluster resources based on hybrid cloud technology are that it can distribute computing power across regions, support multiple hardware platforms and operating systems, and improve system scalability and portability. The disadvantage is that it requires a more complex network communication protocol, which may cause network delays or failures.
[0048] In the solution of building a self-built platform to achieve automatic elastic scaling of resources, the elastic scaling device that comes with the cluster management software can only scale up and down for one cluster, and cannot scale up and down multiple clusters. Moreover, it can only scale up and down based on the application load working on it, and cannot be extended to other indicators.
[0049] Based on the above considerations, an embodiment of the present application proposes an automatic elastic scaling system for multiple types of clusters, the system comprising: an elastic scaling engine outside the cluster, multiple types of clusters, a resource monitoring module, a resource management system and a resource pool; the elastic scaling engine outside the cluster is used to perform resource regulation on multiple types of clusters, and / or, the elastic scaling engine outside the cluster is used to send a resource regulation signal to the resource management system to perform resource regulation on the resource pool; the resource monitoring module is used to monitor the resource occupancy data of the resource pool, and feed the monitoring data back to the elastic scaling engine outside the cluster; the resource management system is used to receive the regulation signal sent by the elastic scaling engine outside the cluster to perform resource regulation on the resource pool. The embodiment of the present application uses a system to perform automatic elastic scaling operations on multiple resource clusters at the same time, solving the problem that the cloud computing platform can only scale up and down for one resource cluster. The system of the embodiment of the present application supports the reuse of the same scaling strategy or rule on multiple clusters, solving the problem that the cloud computing platform can only scale up and down for one resource cluster. In addition to the basic CPU, memory, network, and storage indicators, the system of the embodiment of the present application also supports user-customized expansion and contraction indicators, which are not limited to the resource indicators themselves, but also include customized indicators such as application load on the cluster, and other external indicators, which solves the problem that the expansion and contraction strategy of the cloud computing resource management platform is based on a single basis. The system of the embodiment of the present application combines the two types of elastic scaling, the elastic scaling engine outside the cluster and the elastic scaling device inside the cluster, through a specific algorithm to achieve a more elastic and accurate expansion and contraction purpose, solving the problem that the expansion and contraction strategy of the cloud computing resource management platform is based on a single basis and cannot be used in combination with the elastic scaling of the container orchestration software. The embodiment of the present application stands at a higher perspective, and can manage and control the elastic expansion and contraction of multiple clusters. It is not limited to two single indicators of resources and applications, but can be customized by users. The elastic scaling device outside the cluster is invented, and it is connected with the underlying resource management and control system to make more accurate decisions. In addition, the elastic scaling device outside the cluster and the elastic scaling device inside the cluster can be used in combination to provide a more accurate and stable elastic scaling effect.
[0050] The technical solutions of the embodiments of the present application are described in detail below through specific examples.
[0051] refer to Figure 1 , the automatic elastic scaling system of multiple types of clusters in the embodiment of the present application includes: an external elastic scaling engine, multiple types of clusters, a resource monitoring module, a resource management and control system, and a resource pool;
[0052] The out-of-cluster elastic scaling engine is used to perform resource regulation on the multiple types of clusters, and / or the out-of-cluster elastic scaling engine is used to send a resource regulation signal to the resource management and control system to perform resource regulation on the resource pool;
[0053] The resource monitoring module is used to monitor the resource occupancy data of the resource pool and feed the monitoring data back to the external elastic scaling engine of the cluster;
[0054] The resource management and control system is used to receive the control signal sent by the elastic scaling engine outside the cluster to perform resource control on the resource pool.
[0055] like Figure 1 As shown, the automatic elastic scaling system for multiple types of clusters in the embodiment of the present application includes a user end, a policy management system, an elastic scaling engine outside the cluster, an API server (application programming interface service), an elastic scaling device within the cluster, multiple clusters (multiple types of clusters), a resource management and control system, a resource pool, and a resource monitoring data collection resource portrait (resource monitoring module).
[0056] In some embodiments, the off-cluster elastic scaling engine is used to perform resource regulation on the multiple types of clusters, and / or the off-cluster elastic scaling engine is used to send a resource regulation signal to the resource management system to perform resource regulation on the resource pool; the resource monitoring module is used to monitor the resource occupancy data of the resource pool and feed the monitoring data back to the off-cluster elastic scaling engine; the resource management system is used to receive the regulation signal sent by the off-cluster elastic scaling engine to perform resource regulation on the resource pool.
[0057] In some embodiments, the multiple types of clusters include at least one of a container cluster, a virtual machine cluster, a physical machine cluster, and a cloud host cluster.
[0058] The resource monitoring module can monitor the resource occupancy data of the resource pool, and can feed back the acquired monitoring data to the elastic scaling engine outside the cluster, and can also collect data from the resource management system to obtain the resource management system's regulation information on the resource pool, such as a regulation log, which can include each resource management system receives a resource regulation signal sent by the policy management system or the elastic scaling engine outside the cluster, and can include the specific regulation of the resource pool by the resource management system, the resource monitoring module can intelligently memorize the user configuration based on the aforementioned collected information, and can provide a default configuration for the same user the next time it is used, and can also intelligently learn and recommend resource allocation based on the corresponding data of the resource management system and the resource pool. In addition, it is also possible to collect indicators in multiple clusters, such as the usage of internal containers in the cluster, and then feed back to the elastic scaling device in the cluster or the elastic scaling engine outside the cluster, so as to regulate the number of internal container copies of the cluster or the configuration of resource allocation in the next step, which is different from the dimensions collected in the resource management system and the resource pool, and the dimensions of subsequent regulation based on the corresponding data are also different, so in this embodiment, the system can regulate resources from multiple dimensions.
[0059] The cluster-outside elastic scaling engine can regulate resources for multiple types of clusters. Specifically, during implementation, different types of clusters will be packaged in the system so that the cluster-outside elastic scaling engine can regulate resources for multiple types of clusters at the same time and use the same resource regulation rules. This can make it more convenient for users to control the costs of multiple types of clusters. For example, when the budget is directly reduced or increased proportionally, such as when the budget is doubled, the resources consumed by all types of clusters can be doubled directly at this time, without the need to make different adjustments to different clusters separately. Moreover, after a simple doubling adjustment, different types of clusters can be specially processed according to different needs. This can effectively increase the speed of adjustment and ensure the rationality of the adjustment. The cluster-outside elastic scaling engine can also establish a signal connection with the resource management and control system. It can directly send a corresponding signal to the resource management and control system based on the data returned by the resource monitoring module to directly adjust the resources of the resource pool. In this way, when cluster resources are fully occupied and cluster resource regulation fails, the resource pool can be adjusted directly to ensure the smooth operation of multiple clusters and the stability of applications running in the cluster, reducing the occurrence of resource adjustment failures.
[0060] In some embodiments, the system further includes an elastic scaling device within the cluster; the elastic scaling device within the cluster is used to perform resource regulation on the multiple types of clusters; and the elastic scaling device within the cluster communicates with the elastic scaling engine outside the cluster.
[0061] The elastic scaling device described in the present invention can directly regulate the number of replicas or resource allocation configuration of a cluster, and can also directly adjust the number of replicas or resource allocation configuration of multiple clusters according to data feedback from a resource monitoring module, and can also regulate the number of replicas or resource allocation configuration of multiple clusters according to signals sent by an elastic scaling engine outside the cluster.
[0062] In some embodiments, the system further includes an application program interface service; the in-cluster elastic scaling device communicates with the out-cluster elastic scaling engine through the application program interface service.
[0063] In an embodiment of the present application, the elastic scaling device within the cluster and the elastic scaling engine outside the cluster can communicate through the application interface service, and the two can be used in combination. For example, when the elastic scaling device within the cluster adjusts the number of container copies or the configuration of resource allocation in multiple clusters, if there are sufficient resources for the containers to use at this time, the elastic scaling engine outside the cluster does not need to send a control signal to the resource management system. If the resources are not sufficient at this time and the operation of adjusting the number of container copies or the configuration of resource allocation cannot be completed, the elastic scaling device within the cluster can send relevant signals to the elastic scaling engine outside the cluster through the application interface service, and then the elastic scaling engine outside the cluster can directly send a control signal to the resource management system to realize direct control of the resource pool, so that the control of resources can be successfully carried out, effectively improving the stability of the system.
[0064] In the embodiment of the present application, a user terminal is also included. Among them, the user can send the customized resource policy to the policy management system by controlling the user terminal. Further, the policy management system can send the corresponding policy to the resource management system so that the resource management system can execute the corresponding policy. Specifically, during execution, the resource management system can adjust the resources of the resource pool, for example, adjust the memory size, adjust the CPU model, etc. When adjusting the resources of the resource pool, if the resources of the resource pool are physical machines, the resources of the resource pool can be automatically adjusted by the system preset software. If there is no interface to provide automated services, the corresponding email can be sent to the manufacturer, in which the specific requirements are stated, so that the manufacturer can perform the corresponding configuration of the resource pool resources based on the email. If it is a virtual machine or cloud host, the operation is simpler. When it is built, there will be a corresponding management system to configure its own parameters. At this time, after receiving the corresponding signal, the control strategy can be directly sent to the corresponding management platform to control the resources in the corresponding resource pool.
[0065] It can be seen from the above embodiments that the automatic elastic scaling system for multiple types of clusters described in the embodiments of the present application includes: an elastic scaling engine outside the cluster, multiple types of clusters, a resource monitoring module, a resource management system and a resource pool; the elastic scaling engine outside the cluster is used to perform resource regulation on multiple types of clusters, and / or the elastic scaling engine outside the cluster is used to send a resource regulation signal to the resource management system to perform resource regulation on the resource pool; the resource monitoring module is used to monitor the resource occupancy data of the resource pool and feed back the monitoring data to the elastic scaling engine outside the cluster; the resource management system is used to receive the regulation signal sent by the elastic scaling engine outside the cluster to perform resource regulation on the resource pool. The embodiment of the present application uses a system to perform automatic elastic scaling operations on multiple resource clusters at the same time, which solves the problem that the cloud computing platform can only scale up and down for one resource cluster. The system of the embodiment of the present application supports the reuse of the same scaling strategy or rule on multiple clusters, which solves the problem that the cloud computing platform can only scale up and down for one resource cluster. In addition to the basic CPU, memory, network, and storage indicators, the system of the embodiment of the present application also supports user-customized expansion and contraction indicators, which are not limited to the resource indicators themselves, but also include customized indicators such as application load on the cluster or other external indicators, which solves the problem that the expansion and contraction strategy of the cloud computing resource management platform is based on a single basis. The system of the embodiment of the present application combines the two types of elastic scaling, the elastic scaling engine outside the cluster and the elastic scaling device inside the cluster, through a specific algorithm to achieve a more elastic and accurate expansion and contraction purpose, solving the problem that the expansion and contraction strategy of the cloud computing resource management platform is based on a single basis and cannot be used in combination with the elastic scaling of the container orchestration software. The embodiment of the present application stands at a higher perspective, and can manage and control the elastic expansion and contraction of multiple clusters. It is not limited to two single indicators of resources and applications, but can be customized by users. The elastic scaling device outside the cluster is invented, and it is connected with the underlying resource management and control system to make more accurate decisions. In addition, the elastic scaling device outside the cluster and the elastic scaling device inside the cluster can be used in combination to provide a more accurate and stable elastic scaling effect.
[0066] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides an automatic elastic scaling method.
[0067] refer to Figure 2 , which is a flow chart of the automatic elastic scaling method according to an embodiment of the present application.
[0068] Step S201: monitor resource usage data of the resource pool using a resource monitoring module, and feed the monitoring data back to the elastic scaling engine outside the cluster;
[0069] Step S202, using an out-of-cluster elastic scaling engine to perform resource regulation on multiple types of clusters, and / or using the out-of-cluster elastic scaling engine to send a resource regulation signal to the resource management and control system to perform resource regulation on the resource pool;
[0070] Step S203: In response to the resource management and control system receiving the control signal sent by the elastic scaling engine outside the cluster, the resource pool is controlled.
[0071] In some embodiments, the use of an out-of-cluster elastic scaling engine to perform resource regulation on multiple types of clusters includes: using the out-of-cluster elastic scaling engine to simultaneously regulate resources on the multiple types of clusters, and / or using the out-of-cluster elastic scaling engine to reuse the same resource regulation rule in the multiple types of clusters.
[0072] In some embodiments, the system further includes a policy management system; the method further includes: using the policy management system to receive a user-defined resource allocation policy, and sending the customized resource allocation policy to the resource management and control system to perform resource regulation on the resource pool.
[0073] In some embodiments, the system further includes an elastic scaling device within the cluster; the elastic scaling device within the cluster is used to communicate with the elastic scaling engine outside the cluster and perform resource regulation on the multiple types of clusters.
[0074] The specific data flow has been described in the aforementioned multi-cluster automatic elastic scaling system, so it will not be repeated here.
[0075] The method of the above embodiment is used to implement the corresponding multi-cluster automatic elastic scaling system in any of the above embodiments, and has the beneficial effects of the corresponding system embodiment, which will not be described in detail here.
[0076] It should be noted that the method of the embodiment of the present application can be performed by a single device, such as a computer or server. The method of this embodiment can also be applied to a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present application, and the multiple devices will interact with each other to complete the described method.
[0077] It should be noted that the above describes some embodiments of the present application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0078] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the automatic elastic scaling method for multiple clusters described in any of the above embodiments is implemented.
[0079] Figure 3 A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.
[0080] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0081] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.
[0082] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.
[0083] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through wired means (such as USB, network cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).
[0084] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010 , the memory 1020 , the input / output interface 1030 , and the communication interface 1040 ).
[0085] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.
[0086] The electronic device in the above embodiment is used to implement the corresponding multi-cluster automatic elastic scaling method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.
[0087] A person skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application (including the claims) is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.
[0088] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present application difficult to understand, the known power / ground connections to the integrated circuit (IC) chip and other components may or may not be shown in the provided drawings. In addition, the device may be shown in the form of a block diagram to avoid making the embodiments of the present application difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform on which the embodiments of the present application are to be implemented (that is, these details should be fully within the scope of understanding of those skilled in the art). Where specific details (e.g., circuits) are set forth to describe exemplary embodiments of the present application, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details or with changes in these specific details. Therefore, these descriptions should be considered illustrative rather than restrictive.
[0089] Although the present application has been described in conjunction with specific embodiments of the present application, many alternatives, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the discussed embodiments.
[0090] The embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the scope of protection of the present application.
Claims
1. An automatic elastic scaling system for multiple types of clusters, characterized in that: include: Out-of-cluster elastic scaling engine, multiple types of clusters, resource monitoring modules, resource management and control systems, and resource pools; The out-of-cluster elastic scaling engine is used to perform resource regulation on the multiple types of clusters, and / or the out-of-cluster elastic scaling engine is used to send a resource regulation signal to the resource management and control system to perform resource regulation on the resource pool; The multiple types of clusters include at least one of a container cluster, a virtual machine cluster, a physical machine cluster, and a cloud host cluster; The resource monitoring module is used to monitor the resource occupancy data of the resource pool and feed the monitoring data back to the external elastic scaling engine of the cluster; The resource management and control system is used to receive the control signal sent by the elastic scaling engine outside the cluster to perform resource control on the resource pool; The system also includes an elastic expansion and contraction device within the cluster; The elastic scaling device in the cluster is used to regulate resources of the multiple types of clusters; The elastic scaling device in the cluster communicates with the elastic scaling engine outside the cluster; The system also includes an application program interface service; The elastic scaling device within the cluster and the elastic scaling engine outside the cluster are used to directly regulate the number of replicas or resource allocation configuration of a cluster; the elastic scaling device within the cluster and the elastic scaling engine outside the cluster are used to directly adjust the number of replicas or resource allocation configuration of the multiple types of clusters according to the data fed back by the resource monitoring module; the elastic scaling device within the cluster is used to regulate the number of replicas or resource allocation configuration of the multiple types of clusters according to the signal sent by the elastic scaling engine outside the cluster; The in-cluster elastic scaling device communicates with the out-cluster elastic scaling engine through the application program interface service, including: The out-of-cluster elastic scaling engine is used to regulate the number of container replicas or resource allocation configuration in multiple types of clusters in response to the in-cluster elastic scaling device. If there are sufficient resources for the containers, the out-of-cluster elastic scaling engine does not need to send a regulation signal to the resource management and control system. The external elastic scaling engine is further used to, in response to the elastic scaling device in the cluster regulating the number of container copies or the configuration of resource allocation in multiple types of clusters, if the resources are not sufficient, the elastic scaling device in the cluster cannot complete the operation of regulating the number of container copies or the configuration of resource allocation, the elastic scaling device in the cluster sends a signal to the external elastic scaling engine by applying the application program interface service, and the external elastic scaling engine directly sends a regulation signal to the resource management and control system to directly regulate the resource pool; The in-cluster elastic scaling device and the out-cluster elastic scaling engine are used in combination.
2. The system according to claim 1, characterized in that The system also includes a policy management system; The policy management system is used to receive policy information and send the policy information to the resource management and control system to perform resource regulation on the resource pool.
3. An automatic elastic scaling method for multiple types of clusters applied in the automatic elastic scaling system for multiple types of clusters as described in any one of claims 1 to 2, characterized in that: include: Use the resource monitoring module to monitor the resource usage data of the resource pool and feed the monitoring data back to the elastic scaling engine outside the cluster; Using an out-of-cluster elastic scaling engine to perform resource regulation on multiple types of clusters, and / or using the out-of-cluster elastic scaling engine to send a resource regulation signal to the resource management and control system to perform resource regulation on a resource pool; The multiple types of clusters include at least one of a container cluster, a virtual machine cluster, a physical machine cluster, and a cloud host cluster; In response to the resource management and control system receiving a control signal sent by the elastic scaling engine outside the cluster, performing resource control on the resource pool; The system also includes an elastic expansion and contraction device within the cluster; The method further comprises: Using the elastic scaling device in the cluster to regulate resources of the multiple types of clusters; Utilize the elastic scaling device in the cluster to communicate with the elastic scaling engine outside the cluster; The system also includes an application program interface service; The elastic scaling device in the cluster communicates with the elastic scaling engine outside the cluster through the application program interface service; The elastic scaling device in the cluster and the elastic scaling engine outside the cluster are used to directly regulate the number of replicas or resource allocation configuration of a cluster; the elastic scaling device in the cluster and the elastic scaling engine outside the cluster are used to directly adjust the number of replicas or resource allocation configuration of the multiple types of clusters according to the data fed back by the resource monitoring module; the elastic scaling device in the cluster is used to regulate the number of replicas or resource allocation configuration of the multiple types of clusters according to the signal sent by the elastic scaling engine outside the cluster; The in-cluster elastic scaling device communicates with the out-cluster elastic scaling engine through the application program interface service, including: In response to the elastic scaling device in the cluster regulating the number of container replicas or the configuration of resource allocation in the multi-type cluster, if there are sufficient resources for the containers, the elastic scaling engine outside the cluster does not need to send a regulation signal to the resource management and control system; In response to the elastic scaling device in the cluster regulating the number of container replicas or resource allocation configurations in the multi-type clusters, if the resources are not sufficient, the elastic scaling device in the cluster cannot complete the operation of regulating the number of container replicas or resource allocation configurations, the elastic scaling device in the cluster sends a signal to the elastic scaling engine outside the cluster by applying the application program interface service, and the elastic scaling engine outside the cluster directly sends a regulation signal to the resource management and control system to directly regulate the resource pool; The in-cluster elastic scaling device and the out-cluster elastic scaling engine are used in combination.
4. The method according to claim 3, characterized in that The use of an elastic scaling engine outside the cluster to regulate resources of various types of clusters includes: Utilize the external elastic scaling engine to simultaneously regulate resources of the multiple types of clusters, and / or The external elastic scaling engine is used to reuse the same resource control rule in the multiple types of clusters.
5. The method according to claim 3, characterized in that: The system also includes a policy management system; The method further comprises: The policy management system is used to receive the user-defined resource allocation policy, and the user-defined resource allocation policy is sent to the resource management and control system to perform resource regulation on the resource pool.
6. The method according to claim 3, characterized in that The system also includes an elastic expansion and contraction device within the cluster; The elastic scaling device within the cluster is used to communicate with the elastic scaling engine outside the cluster and to regulate resources of the multiple types of clusters.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 3 to 6 is implemented.
