Method for expanding and contracting capacity of management and control system, management and control system and computer program product
By identifying resource configuration differences in the management and control system, adjusting nodes, and generating migration tables, smooth scaling up and down without interrupting business operations is achieved. This solves the problem of excessive time consumption in traditional methods and improves operational efficiency and system continuity.
Patent Information
- Application Number
- CN202611540154.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-30
- Publication Date
- 2026-11-27
AI Technical Summary
Traditional scaling up and down methods for management and control systems are too time-consuming, leading to service interruptions and low operational efficiency, making it difficult to meet the management needs of the rapidly increasing number of network elements under 5G networks and cloud-native technologies.
By identifying the resource allocation differences between the current scale and the target scale, adding or reducing nodes, setting scheduling tags, and generating a public service migration table, the management and control system can be smoothly scaled up or down, avoiding full data backup and system reinstallation.
It shortened the scaling up and down time from several hours or days to minutes, ensuring the continuity of system services and improving operation and maintenance efficiency and elastic scaling capabilities.
Smart Images

Figure CN123185080A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of network management technology, and in particular to a method for scaling up and down a control system, a control system, and a computer program product. Background Technology
[0002] With the large-scale deployment of 5G networks and the widespread application of cloud-native technologies, the number of network elements managed by network management and control systems (OMC, Operations and Maintenance Center) is growing exponentially, placing higher demands on the system's elastic scaling capabilities. In practical engineering, management and control systems typically face two types of scaling-up and scaling-down scenarios: one is that initially deployed small-scale systems need to be rapidly scaled up to large-scale systems to cope with explosive growth in business volume; the other is that already deployed large-scale systems need to be scaled down to small-scale systems to adapt to resource migration or business contraction needs.
[0003] The scaling up and down of the management and control system primarily employs a method based on resource reservation and full data migration. In this approach, operations and maintenance personnel must first perform a complete backup of all business and configuration data of the current system. Then, they must uninstall the currently running small-scale or large-scale system version. After scaling up or down the underlying physical or virtual resources, they must reinstall the system version corresponding to the target scale. Finally, they must import the backup data into the new system through data recovery operations. When this process involves the backup and recovery of massive amounts of data, scaling up and down becomes extremely time-consuming, typically requiring a business interruption window of several hours or even days, making it difficult to meet the management and control system's requirements for business continuity and operational efficiency. Summary of the Invention
[0004] The main purpose of this application is to provide a method for scaling up and down a management and control system, a management and control system, and a computer program product, which aims to at least solve the technical problem that traditional scaling up and down methods are difficult to meet the requirements of management and control systems for business continuity and operational efficiency.
[0005] To at least achieve the above objectives, this application provides a method for scaling up and down a control system, comprising: In response to requests to scale up or down the management system, determine the resource allocation differences between the current and target sizes of the management system. Based on differences in resource allocation, nodes can be added or removed from the management and control system, and scheduling tags can be set for each node in the management and control system. A public service migration table is generated based on the change information of the scheduling tags of each node. Public services are migrated according to the public service migration table to complete the expansion or reduction of the management and control system. The public service migration table is used to indicate the migration path of public services before and after expansion or reduction.
[0006] In addition, to at least achieve the above objectives, this application also provides a management and control system, which includes multiple nodes, among which a master control node is included. The master control node is used to execute the steps of the management and control system scaling up and down method as described above.
[0007] In addition, to at least achieve the above objectives, this application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the method described above.
[0008] One or more technical solutions proposed in this application have at least the following technical effects: This application's embodiment determines the resource configuration differences between the current and target scales, adds or reduces nodes accordingly, and sets scheduling tags. Simultaneously, it generates public service migration relationships based on these scheduling tag changes, and migrates public services according to these relationships, thus completing the scaling up / down process. Since node additions / deletions and public service migrations are all performed based on these differences, there is no need to back up and restore all business and configuration data, nor is it necessary to uninstall and reinstall system versions. This significantly reduces the amount of data operations during the scaling up / down process, compressing the time that originally took hours to days into minutes. This allows the scaling up / down process to be executed smoothly without interrupting business operations, effectively ensuring the continuity of system services. It overcomes the shortcomings of traditional full migration methods, which are time-consuming and require business interruption, and improves the operational efficiency of the management system's elastic scaling. Attached Figure Description
[0009] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0010] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0011] Figure 1 This is a flowchart illustrating the first embodiment of the scaling up / down method for the control system in this application; Figure 2 This is a schematic diagram of the control system architecture involved in one embodiment of the control system scaling method of this application; Figure 3 This is a schematic diagram showing the comparison of the control system before and after expansion / reduction in an embodiment of the control system expansion / reduction method of this application. Figure 4 This is a schematic diagram of data load balancing within a database instance, as described in an embodiment of the scaling up / down method for the management system in this application. Figure 5This is a schematic diagram of the control system expansion process according to an embodiment of the control system expansion and contraction method of this application; Figure 6 This is a schematic diagram of the scaling-down process of the control system involved in one embodiment of the scaling-up and scaling-down method of the control system in this application.
[0012] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0013] To make the above-mentioned objects, features, and advantages of the present invention more apparent and understandable, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0014] With the rapid development of 5G networks and cloud-native technologies, the number of network elements that the Operations and Maintenance Center (OMC) needs to manage is growing exponentially, placing higher demands on the system's processing capabilities.
[0015] There are two scenarios in engineering. The first is that a small-scale management and control system has been installed and deployed, managing a small number of devices. Due to the rapid development of 5G networks, there is a need to quickly add a large number of devices to manage, requiring simultaneous expansion into a large-scale management and control system. The second scenario is that a large-scale management and control system has been installed, but due to requirements such as resource migration, it needs to be scaled down to a small-scale management and control system.
[0016] Traditional expansion methods involve first backing up data, uninstalling the old, small-scale management system, manually expanding and configuring resources, installing a new, large-scale management system, and then restoring the data. Downsizing methods involve first backing up data, uninstalling the large-scale management system, installing a small-scale management system, restoring the system, and finally reducing resources.
[0017] Traditional expansion and contraction methods have the following technical drawbacks: Service interruption during expansion / contraction: When expanding or shrinking the system, it is usually necessary to stop the service, which will cause service interruption for at least half a day, affecting the continuity of network management for operators.
[0018] Low expansion efficiency: Traditional methods cannot achieve smooth expansion, resulting in low resource utilization and long expansion cycles.
[0019] Insufficient automation: Existing solutions rely heavily on manual operation, lack intelligent resource assessment and allocation mechanisms, and are prone to human error and inefficiency.
[0020] Especially in the field of telecommunications network management, control systems need to support elastic scaling capabilities for managing network elements from the smallest to the largest scale without interrupting service, and traditional methods are difficult to meet this requirement.
[0021] Based on this, the main solution of this application is as follows: In response to the scaling request of the management and control system, determine the resource configuration difference between the current scale and the target scale of the management and control system; according to the resource configuration difference, adjust the nodes used for deploying service resources under the current scale in the management and control system to obtain the target nodes used for deploying service resources under the target scale; for each public service under the current scale, determine the target node to be deployed for the public service according to the resource consumption requirements of the public service under the target scale, and determine the public service migration relationship corresponding to the public service, wherein the public service migration relationship represents the correspondence between the current deployment node and the target node to be deployed for the public service under the current scale; for each public service under the current scale, migrate the public service from the current deployment node to the target node to be deployed according to the public service migration relationship corresponding to the public service.
[0022] This application's embodiment determines the resource configuration differences between the current and target scales, adds or reduces nodes accordingly, and sets scheduling tags. Simultaneously, it generates public service migration relationships based on these scheduling tag changes, and migrates public services according to these relationships, thus completing the scaling up / down process. Since node additions / deletions and public service migrations are all performed based on these differences, there is no need to back up and restore all business and configuration data, nor is it necessary to uninstall and reinstall system versions. This significantly reduces the amount of data operations during the scaling up / down process, compressing the time that originally took hours to days into minutes. This allows the scaling up / down process to be executed smoothly without interrupting business operations, effectively ensuring the continuity of system services. It overcomes the shortcomings of traditional full migration methods, which are time-consuming and require business interruption, and improves the operational efficiency of the management system's elastic scaling.
[0023] It should be noted that the execution subject of each embodiment of the scaling up and down method of the control system in this application can be an OMC that implements the above functions, and the embodiments of the scaling up and down method of the control system in this application do not impose specific limitations on this.
[0024] Based on this, this application proposes a method for scaling up and down a control system according to a first embodiment, referring to... Figure 1 As shown, the scaling up / down method for the control system includes the following steps S10~S40: Step S10: In response to the scaling up / down request of the management and control system, determine the resource allocation difference between the current scale and the target scale of the management and control system; A management and control system is a system capable of centralized management, monitoring, and control of network devices. It can be deployed in a virtual machine cluster using a cloud-native architecture. For example, in one specific embodiment, refer to... Figure 2 As shown, the management and control system may include a master node cluster, an application node cluster containing an SLB (Server Load Balancer), a public service node cluster, and an application node cluster.
[0025] The master node cluster consists of master VM 1 to master VM N. Each master VM deploys a K8S (Kubernetes, container orchestration platform) master, a software repository, and a PaaS (Platform as a Service) controller.
[0026] The application node cluster with SLB consists of SLB node VM 1 to SLB node VM N. Each SLB node VM deploys a Kubernetes Minion and an SLB.
[0027] The public service node cluster consists of public service node VM 1 to public service node VM N. Each public service node VM deploys a Kubernetes Minion, public services, and application services.
[0028] The application node cluster consists of application node VM 1 to application node VM N. Each application node VM deploys K8SMinion and application services.
[0029] The aforementioned clusters can be connected via a network to form a virtual machine cluster environment for the management and control system. Here, VM stands for Virtual Machine.
[0030] In one possible implementation, the scaling requests of the management and control system can be manually triggered by operations and maintenance personnel, or automatically triggered by the capacity prediction module, performance monitoring module, or resource scheduling module. The current scale and target scale can be characterized by indicators such as equivalent network element scale, number of managed objects, service load, or number of users. Differences in resource configuration can include at least one of node differences, service differences, and data differences.
[0031] Node differences refer to the configuration differences between the current scale and the target scale at the node level, such as the number of nodes, node roles, node types, or node specifications. Service differences refer to the configuration differences between the current scale and the target scale at the service level, such as the number of public service instances, application service instances, or replicas. Data differences refer to the configuration differences between the current scale and the target scale at the data level, such as the number of database entities, the number of database instances, storage capacity, or data distribution.
[0032] When determining resource configuration differences, the current standard configuration parameters corresponding to the current scale and the target standard configuration parameters corresponding to the target scale can be obtained based on a unified resource configuration template. The target standard configuration parameters are then compared with the current standard configuration parameters to obtain the resource configuration differences. These resource configuration differences may include, for example, at least one of the following: the number of nodes changed, the number of CPUs (Central Processing Units) added or reduced for each node, memory capacity, and storage space.
[0033] As one possible implementation method, the target standard configuration parameters can also be determined based on the total number of network elements and the carrying capacity of a single node. For example, the number of nodes required for the target scale can be calculated by N_target=ceil(total number of network elements / carrying capacity of a single node), and the number of CPU cores, memory capacity and storage space under the target scale can be set accordingly.
[0034] In some embodiments, taking the expansion scenario of upgrading the UME (Unified Management Expert) control system from an 8k equivalent network element scale to a 50k equivalent network element scale as an example, the resource differences between the UME 8k equivalent network element scale and the UME 50k equivalent network element scale can be analyzed, and the list of node tags supported by the 8k and 50k scales can be compiled. The resource configuration of the current scale (8k equivalent network element scale) is shown in Table 1 below.
[0035] Table 1 The resource allocation for the target scale (equivalent to 50,000 network elements) is shown in Table 2 below.
[0036]
[0037] Table 2 After the difference calculation, the resource configuration difference can be output. This resource configuration difference can be represented in the form of a resource list, and may specifically include at least one of the following: differences in the number of nodes, differences in node specifications, differences in CPU, differences in memory, and differences in storage.
[0038] In scaling scenarios, this resource list can be a list of resources to be added, indicating the number of nodes, CPUs, memory, and storage that need to be added relative to the current scale. For example: the PaaS master virtual machine nodes remain unchanged at 3 virtual machine nodes, each configured with 8 vCPUs, 32GB of memory, and 520GB of storage; the NFS virtual machine nodes' memory is adjusted from 6GB to 8GB, and storage is increased from 400GB to 800GB; the SLB virtual machine node information remains unchanged; the number of virtual machine nodes for public services is expanded from 8 to 11, and the total disk usage is expanded from 1330GB to 4260GB; the number of virtual machine nodes for application services is expanded from 5 to 6; in total, 4 virtual machine nodes need to be added, CPUs are increased by 336 cores, memory is increased by 1350GB, and storage is increased by 7800GB.
[0039] In a scaling-down scenario, this resource list can be a reduced resource list, used to indicate the number of nodes, CPUs, memory, and storage that need to be reduced relative to the current size.
[0040] Step S20: Based on the resource configuration differences, adjust the nodes used for deploying service resources at the current scale in the management and control system to obtain the target nodes used for deploying service resources at the target scale. In one possible implementation, node adjustment can include at least one of the following: adding a node, deleting a node, modifying node specifications, changing node labels, adding a node to the cluster, removing a node from the cluster, or performing a health check on a node. The target node can be a set of nodes capable of deploying service resources such as public services and / or application services at a target scale. Node adjustment can provide the foundational resources for subsequent migration of public services and scaling up or down of application services.
[0041] As an example, in a scaling-up scenario, based on the resource differences analyzed in step S10, new virtual machine nodes can be created on the existing virtual machine cluster and added to the cluster. Node parameters can be configured, and node health status can be verified, such as network connectivity, storage mounting correctness, and IO (Input / Output) efficiency, thereby completing basic resource scaling and environment checks. In a scaling-down scenario, it is possible to determine which nodes need to be retained and which need to be released.
[0042] Step S30: For each public service under the current scale, determine the target node to be deployed for the public service based on the resource consumption requirements of the public service under the target scale, and determine the public service migration relationship corresponding to the public service. The public service migration relationship represents the correspondence between the current deployment node and the target node to be deployed for the public service under the current scale. Public services refer to basic technical services shared by multiple application services in a management and control system. For example, they may include one or more of the following: database services, message middleware services, caching services, search services, log services, and file transfer services.
[0043] As an example, database services may include EBASE-T databases, message middleware services may include Kafka, caching services may include Redis and EbaseCache, search services may include ElasticSearch, logging services may include Logstash, and file transfer services may include FTP (File Transfer Protocol).
[0044] In one possible implementation, resource consumption requirements refer to the resources required when a public service is deployed at a target scale. These requirements may include the resource requirements of a single service instance supported by the public service, specifically including at least one of the following: the number of instances of a single service instance, CPU, memory, storage, number of replicas, data volume, and management pressure.
[0045] When determining the target node to be deployed, it can be done at the granularity of a single service instance. That is, for each individual service instance of a public service at the target scale, a target node to be deployed can be determined for that individual service instance based on its resource requirements, as well as at least one of the remaining resources of the target node, deployment constraints, etc.
[0046] For example, you can traverse each node under the target scale, obtain the remaining resource information and deployment constraints of each node, and match the remaining resource information of each node with the resource requirements of the current single service instance. If the remaining resources of a certain node can meet the resource requirements of the single service instance and the node meets the corresponding deployment constraints, then the node can be determined as the target node to be deployed for the single service instance.
[0047] In this context, if a target node can still support another service instance after hosting one service instance, then the target node can continue to host another service instance. In other words, a target node can correspond to one or more service instances; and a service instance usually corresponds to a target node to be deployed.
[0048] Deployment constraints may include at least one of the following: node role constraints, service type constraints, data distribution constraints, etc.
[0049] After obtaining the target nodes for deployment of each service instance of a public service, the target nodes for deployment of all service instances of that public service can be aggregated to obtain the target node for deployment of the public service. For example, the target nodes for deployment of each service instance can be combined or deduplicated to obtain the target node for deployment of the public service.
[0050] Therefore, the target nodes to be deployed in a public service is a set of target nodes obtained from the perspective of the public service as a whole. This set includes the target nodes to be deployed in each service instance under the public service, and its number may be equal to or less than the number of service instances.
[0051] Using the above method, for each service instance of a public service at the target scale, the target node for deploying the service instance can be determined, and these target nodes can be aggregated into the target nodes to be deployed for the public service. Then, based on the current deployment node of the public service at the current scale, the correspondence between the current deployment node and the target node to be deployed for the public service can be obtained, that is, the public service migration relationship corresponding to the public service can be obtained.
[0052] Public service migration relationships can be one-to-one, one-to-many, many-to-one, or many-to-many. For example, if a public service is currently deployed on node A, and the target scale requires the same public service to be deployed on both node A and node B, then the migration relationship can represent the correspondence between node A and node B. Optionally, a public service migration table can be generated to record these migration relationships.
[0053] In one example, taking a Kafka public service as an example, the public service is currently deployed on node 1, and the target scale requires the public service to be deployed on both node 1 and node 2. In this case, the public service migration relationship can represent the correspondence between node 1 and node 2, that is, the public service can choose either node 1 or node 2 during the migration process.
[0054] Step S40: For each public service under the current scale, based on the public service migration relationship corresponding to the public service, migrate the public service from the current deployment node to the target node to be deployed.
[0055] Based on the obtained public service migration relationships, it can be determined which current deployment node each public service needs to be migrated from to which target node to be deployed.
[0056] For example, if a public service migration relationship represents the correspondence between node A and node B, it means that the public service is deployed on node A at the current scale, and can be deployed on both node A and node B at the target scale. In this case, the management data and business data of the public service on node A can be migrated to both node A and node B, or some instances can be retained on node A and some new instances can be added on node B.
[0057] In one possible implementation, migrating public services may include migrating the management and business data of the public service itself, and deploying or starting the corresponding service instances on the target node. The migration process can be performed online to minimize business interruption.
[0058] After the migration is completed, public services can be expanded or reduced, such as by increasing or decreasing resources such as CPU, memory, and storage, to achieve heterogeneous expansion and contraction.
[0059] As an example, you can call the underlying public service migration interface of the CaaS (Container as a Service) platform to migrate the management data and business data of the public service one by one, and then perform public service expansion or reduction actions. Public service expansion mainly refers to increasing CPU, memory, and storage, while public service reduction mainly refers to reducing CPU, memory, and storage.
[0060] Furthermore, after the migration and scaling up of public services, application services can also be scaled up or down.
[0061] Scaling up application services mainly involves changing the number of service instances and the configuration of CPU and memory. After scaling up, the service can be deployed and run on the new virtual machine node. If the number of instances and resource configuration remain unchanged, the service will be set to continue running on the existing node.
[0062] In a scaling-down scenario, the number of application service instances can be reduced, CPU, memory, and storage resources can be reduced, and the deployment status of public services and application services can be scanned to identify idle virtual machine nodes, release these resources, and complete the scaling-down.
[0063] Through steps S10 to S40 above, the overall system load can be adjusted during expansion and contraction, achieving smooth expansion and contraction through heterogeneous adjustments. Service is uninterrupted during expansion, processing capacity increases almost linearly, and minimal manual intervention is required. It supports expansion from small to any scale without the need for incremental expansion based on size. The contraction process is similar to the expansion process, also achieving smooth contraction and resource release.
[0064] In one specific embodiment, reference is made to Figure 3As shown, the management and control system (small scale, i.e., current scale) includes a master control node cluster, a public service node cluster, and an application service node cluster. The master control node cluster includes master control nodes 1 to M. The public service node cluster includes public service nodes 1-M, which deploy public services. The application service node cluster includes application service nodes 1-M, which deploy application services. After a smooth upgrade, the management and control system (large scale, i.e., target scale) is obtained. The master control node cluster of the management and control system (large scale) includes master control nodes 1 to N. The public service node cluster includes public service nodes 1-N, which deploy public services. The application service node cluster includes application service nodes 1-N, which deploy application services. Through the above smooth upgrade, stepless scaling from a small-scale management and control system to a large-scale management and control system can be achieved.
[0065] Based on the first embodiment of this application, in the second embodiment of this application, the content that is the same as or similar to that in the first embodiment described above can be referred to the above description and will not be repeated hereafter. Based on this, the steps for determining the target nodes to be deployed for the public service according to the resource consumption requirements of the public service at the target scale include: Step A10: Obtain the resource requirements of the public service at the target scale, wherein the resource requirements include the resource requirements of a single service instance supported by the public service; A public service can include one or more service instances. Resource requirements can be obtained at the instance level, that is, by obtaining the resource requirements of each individual service instance supported by the public service.
[0066] The resource requirements of a single service instance can include at least one of CPU, memory, and storage. Different individual service instances may have the same or different resource requirements. Therefore, when determining the target node for deployment, resource matching can be performed at the individual service instance level.
[0067] Step A20: For each individual service instance, execute the target operation sequentially; The target operation includes: traversing each target node, obtaining the available resource information of each target node, and if the available resource information of the currently traversed target node meets the resource requirements of a single service instance, associating the currently traversed target node with the service identifier corresponding to the public service and stopping the traversal of the next target node, so as to determine the currently traversed target node as the target node to be deployed for the public service.
[0068] As an example, the available resource information of the target node may include at least one of the node's remaining CPU, remaining memory, and remaining storage.
[0069] In one possible implementation, determining whether the available resource information of the target node being traversed meets the resource requirements of a single service instance can be done by determining whether the remaining available resource information of the target node is greater than the resources occupied by a single instance of the public service. In one possible implementation, it can be determined whether the available resources of the currently traversed target node meet the resource requirements of a single service instance. Alternatively, it can be determined whether multiplying the remaining available resources of the target node by a preset ratio exceeds the resources required for a single instance of the public service. This preset ratio could be 80%, 85%, etc. By multiplying the remaining available resources of the target node by the preset ratio, a portion of the remaining available resources of the target node is pre-allocated as reserved resources, and only a portion of these remaining available resources is used to support the single service instance. This way, when determining whether the currently traversed target node can support the single service instance, a certain amount of resource space can be reserved, preventing the target node's resources from being completely occupied. This reduces the risk of overload on the target node during subsequent operation and improves the reliability and stability of node resource usage.
[0070] If the above conditions are met, it means that the target node being traversed can support the single service instance. The target node can be associated with the service identifier corresponding to the public service, and the traversal of the next target node for the single service instance can be stopped.
[0071] A service identifier can be understood as an identifier used to indicate that a target node is capable of carrying a public service. In one possible implementation, associating a node with a service identifier can also be referred to as tagging the node with the public service.
[0072] When all individual service instances corresponding to the public service have been traversed, the service identifier association operation of the public service can be considered complete. At this time, all target nodes associated with the service identifiers corresponding to the public service are the target nodes to be deployed for the public service at the target scale.
[0073] It should be noted that steps A10 and A20 above are executed sequentially for each public service at the current scale. For a public service, step A10 is first executed to obtain the resource requirements of each individual service instance supported by the public service; then step A20 is executed to perform the target operation sequentially for each individual service instance under the public service, thereby determining the target node to be deployed for the public service. After that, the next public service is selected, and steps A10 and A20 are repeated until all public services at the current scale have been processed.
[0074] Furthermore, in one possible implementation, before executing step A20, the node service identifiers for the current scale can be scanned, and the scan results can be compared with the preset service identifier configuration corresponding to the current scale. The preset service identifier configuration corresponding to the current scale can indicate the public service identifiers associated with each node.
[0075] If the scan results are inconsistent with the preset service identifier configuration, it indicates that there are omissions, redundancies, or errors in the service identifiers on the existing nodes. The service identifiers on the existing nodes can be optimized and adjusted. For example, if a node lacks a service identifier it should be associated with, then the corresponding service identifier for the relevant public service should be associated with that node; if a node has a service identifier that should not be associated, then the service identifier corresponding to that public service on that node should be deleted; if a service identifier on a node is incorrectly associated, then it should be corrected to the correct service identifier. Through the above optimization and adjustment, the service identifier status of the existing nodes can be kept consistent with the current scale, thus providing an accurate benchmark for subsequently determining the migration relationship of public services.
[0076] In one possible implementation, determining the public service migration relationship corresponding to the public service includes: Step B10: Based on the service identifier of the public service, obtain the current deployment node and the target node to be deployed of the public service at the current scale, so as to obtain the public service migration relationship corresponding to the public service.
[0077] A service identifier is used to indicate the node that hosts the public service. At the current scale, the public service is deployed on one or more currently deployed nodes, and these currently deployed nodes are associated with the service identifier of the public service.
[0078] Under the target scale, steps A10 to A20 can identify one or more target nodes to be deployed for the public service, and these target nodes to be deployed are also associated with the service identifier of the public service.
[0079] Get the nodes associated with the service identifier under the current scale as the current deployment nodes, and the nodes associated with the service identifier under the target scale as the target nodes to be deployed.
[0080] Then, by establishing a correspondence between the current deployment nodes of the same public service and the target nodes to be deployed, the migration relationship of the public service can be obtained.
[0081] As an example, service identification can be represented as public service tags. At the current scale, the public service tags on virtual cluster nodes can be scanned to determine the node where the public service is currently located, i.e., the currently deployed node. At the target scale, step A20 is used to tag nodes that meet the conditions with the public service tag, thereby determining the target node where the public service will be deployed. By comparing the public service tags of nodes before and after scaling up or down, the changes in the nodes where each public service is located before and after migration can be obtained, generating a public service migration table, which can represent the migration relationships of public services.
[0082] Taking the scaling up of Kafka public services as an example, assuming that only node 1 is tagged with the Kafka public service at the current scale, then node 1 is the currently deployed Kafka node; at the target scale, if both node 1 and node 2 are tagged with the Kafka public service, then the target nodes to be deployed in Kafka are node 1 and node 2. Based on the currently deployed nodes and the target nodes to be deployed obtained from the service identifiers, the migration relationship of the Kafka public services can be obtained, that is, the correspondence between node 1 and node 2.
[0083] This embodiment obtains the currently deployed nodes at the current scale and the target nodes to be deployed at the target scale based on the service identifier of the public service. It then establishes a correspondence between the currently deployed nodes and the target nodes of the same public service, generating a public service migration table. This clearly defines the node affiliation changes for each public service before and after scaling up or down, providing a direct basis for migrating public services from the currently deployed nodes to the target nodes. Since both the currently deployed nodes and the target nodes are associated through the same service identifier, the migration table can be automatically generated without manual comparison of each node, improving the automation and accuracy of determining migration relationships.
[0084] Based on the first and / or second embodiments of this application, in the third embodiment of this application, the content that is the same as or similar to the first and second embodiments described above can be referred to the above description and will not be repeated hereafter. On this basis, according to the public service migration relationship corresponding to the public service, the public service is migrated from the current deployment node to the target node to be deployed, including: Step C10: Based on the preset load balancing strategy and the public service migration relationship corresponding to the public service, migrate the public service from the current deployment node to the target node to be deployed.
[0085] The public service migration relationship is used to determine the start and end points of the public service migration, i.e., from which currently deployed nodes to which target nodes to be deployed. The preset load balancing strategy is used to determine the specific distribution of public service data or instances on the target nodes to be deployed, so that the load among the target nodes tends to be balanced after the migration.
[0086] In one possible implementation, the load balancing strategy can include at least one of node load balancing and intra-instance data load balancing. Node load balancing refers to balancing from the perspective of overall node resource usage. For example, based on the CPU, memory, and disk I / O resource consumption of nodes, it migrates public services on currently deployed nodes with high loads to target nodes with lower loads or less resource availability. Intra-instance data load balancing refers to balancing from the perspective of data distribution within a database instance. For example, based on the number of network elements managed by the database instance, the type of network elements, or the volume of business data, it redistributes data or network elements among multiple database instances to avoid excessive management pressure on some database instances.
[0087] This embodiment performs migration based on a preset load balancing strategy and public service migration relationship, thereby further determining the distribution of data or instances after migration based on a clear migration path, so that the load among the target nodes to be deployed tends to be balanced and some nodes are avoided from being overloaded.
[0088] In one possible implementation, based on a preset load balancing strategy and the public service migration relationship corresponding to the public service, the public service is migrated from the current deployment node to the target node to be deployed, including: Step D10: Obtain the resource utilization rate of the currently deployed node. The resource utilization rate is determined based on at least one resource utilization metric. Resource usage metrics can include at least one of CPU utilization, memory utilization, disk I / O, and network bandwidth. Resource utilization can be a value determined comprehensively based on at least one of these metrics, such as a weighted calculation of multiple metrics, or it can be determined individually for a specific key metric. By obtaining the resource utilization of the currently deployed node, it can be determined whether the currently deployed node is under high load.
[0089] As an example, resource utilization can be calculated using the formula LoadScore = a·Cpu% + b·Mem% + c·DiskIO% where Cpu% represents the average CPU utilization of the node within a preset time period, Mem% represents the average memory utilization of the node within a preset time period, and DiskIO% represents the ratio of the node's IO read / write operations to the system's set IOPS (Input / Output Operations Per Second) standard value within a preset time period. a, b, and c are the weighting coefficients for each resource utilization metric, and their specific values can be set according to actual operational needs, experience, or system performance requirements. For example, a can be 40%, b can be 40%, and c can be 20%; alternatively, a can be 50%, b can be 20%, and c can be 30%.
[0090] Step D20: If the resource utilization rate of the current deployment node is greater than the preset load threshold, according to the public service migration relationship corresponding to the public service, the service instance of the public service on the current deployment node is migrated from the current deployment node to the target node to be deployed where the resource utilization rate is less than the preset load threshold. The target node to be deployed has a resource utilization rate less than the preset load threshold after hosting the service instance.
[0091] The preset load threshold can be set according to system operation and maintenance requirements, such as 80%, 85%, 90%, etc.
[0092] If the resource utilization of the currently deployed node is greater than the preset load threshold, it indicates that the current deployed node is under high load and the service instances on it need to be migrated out.
[0093] At this point, the target nodes to be deployed for the public service can be determined based on the public service migration relationship, and the target nodes with resource utilization rates less than the preset load threshold can be selected from these target nodes to be deployed as migration destinations.
[0094] Furthermore, it is necessary to ensure that the resource utilization of the target node to be deployed remains below the preset load threshold after hosting the service instance, in order to avoid overloading the target node after migration. If the resource utilization exceeds the preset load threshold after hosting, the target node can be abandoned and other target nodes to be deployed can be selected.
[0095] If the resource utilization of the currently deployed node is less than or equal to the preset load threshold, it indicates that the currently deployed node is under normal load, and by default, no migration will be performed on the service instances on the currently deployed node. However, if the public service migration relationship corresponding to the public service indicates the need to add a target node, or if the number of service instances or resource configuration on the currently deployed node needs to be changed, then the corresponding migration or expansion operations can still be performed according to the public service migration relationship.
[0096] This embodiment migrates service instances on a currently deployed node to a target node whose resource utilization is still less than the preset load threshold when the resource utilization of the current node exceeds the preset load threshold. This allows for consideration of the load conditions of both the source and target nodes during the migration process, preventing the emergence of new overloaded nodes after migration, ensuring load balance among nodes, and improving the stability of system operation.
[0097] In one possible implementation, after migrating service instances of public services from the current deployment node to the target node to be deployed where resource utilization is less than a preset load threshold, the process includes: Step E10 involves redistributing the service data of each service instance supported by the public service to achieve load balancing of the service data across the service instances.
[0098] Service data can include at least one of network data, business data, and management data. The purpose of redistribution is to balance the amount of service data managed by each service instance, the management pressure, or the resource consumption, so as to avoid some service instances being overloaded while others are underloaded.
[0099] As an example, taking the EBASE-T database public service as an example, refer to... Figure 4 As shown, the 8k scale includes database entity 1 and database entity 2. Database entity 1 includes instance 1 and instance 2, and database entity 2 includes instance 3 and instance 4. That is, the 8k scale includes a total of 4 instances: instance 1, instance 2, instance 3, and instance 4. Each instance can manage 2000 network elements, for a total of 8000 network elements managed.
[0100] After scaling up and down, the 50,000-level database includes database entity 1, database entity 2, and database entity 3. Database entity 1 includes instance 1 and instance 2, database entity 2 includes instance 3 and instance 4, and database entity 3 includes instance 5 and instance 6. That is, the 50,000-level database includes a total of 6 instances: instance 1, instance 2, instance 3, instance 4, instance 5, and instance 6.
[0101] At this point, the data from the original 4 instances can be reload-balanced to the new 6 instances, so that each instance manages approximately 8000 / 6≈1334 network elements, thus maintaining data load balance across the 6 instances after the expansion.
[0102] This embodiment redistributes service data after migrating service instances, thereby achieving load balancing of service data on each service instance. This avoids issues such as data hotspots or uneven management pressure after migration, and helps improve the overall processing capacity and resource utilization of the expanded system.
[0103] In one possible implementation, the service instance includes a database instance, and the service data for each service instance supported by the public service is reallocated, including: Step F10: Obtain the type and number of network elements managed by the database instance on the currently deployed node; Service instances can include database instances. During operation, database instances manage different types of network elements. To facilitate subsequent data redistribution, it's essential to first obtain the types and quantities of network elements managed by the database instance on the currently deployed node. Network element types can include base stations, core network elements, and transmission network elements, each with varying management complexity. Obtaining the types and quantities of network elements provides a basis for calculating management pressure values.
[0104] Step F20: Obtain the management pressure value of each service instance. The management pressure value is the sum of the pressure values of each type of network element in the service instance. The pressure value of a type of network element is the product of the equivalent network element coefficient corresponding to the type and the number of network elements of the type. The equivalent network element coefficient is used to convert different types of network elements into equivalent management units. Since different types of network elements have different management pressures on database instances, an equivalent network element coefficient can be introduced to convert different types of network elements into a unified equivalent management unit.
[0105] For any service instance, the pressure value of each type of network element in the service instance can be calculated separately, which is the product of the equivalent network element coefficient corresponding to the type and the number of network elements of the type; then the pressure values of each type of network element are added together to obtain the management pressure value of the service instance.
[0106] As an example, the management pressure value can be expressed by the formula: Management Pressure Value = Σ (Equivalent Network Element Coefficient × Number of Network Elements). Here, Σ represents the summation of the products for each network element type managed by the service instance. Specifically, it involves calculating the product of the equivalent network element coefficient and the number of network elements for each type, and then summing the products for all network element types. The equivalent network element coefficient is used to convert different types of network elements into equivalent management units, and the number of network elements represents the number of network elements of that type.
[0107] The equivalent network element coefficient is related to the specific network element type, and the data can range from 1 to 20. For example, if the equivalent network element coefficient of a certain type of network element is 5 and the quantity is 100, then the pressure value of this type of network element is 500. By summing the pressure values of each type of network element, the management pressure value of the database instance can be obtained.
[0108] Step F30: The database instance with a management pressure value greater than a preset threshold is identified as an instance to be reassigned, and at least some of the network elements managed by the instance to be reassigned, as well as the service data corresponding to at least some of the network elements, are reassigned to the database instance with a management pressure value less than the preset threshold. After receiving the reassigned data, the database instance has a management pressure value less than the preset threshold.
[0109] The preset threshold can be set according to system operation and maintenance requirements. If the management pressure value of a database instance is greater than the preset threshold, it indicates that the management pressure of the database instance is too high, and it can be identified as an instance to be reallocated.
[0110] Then, at least some of the network elements managed by the instance to be reassigned, as well as the corresponding service data of these network elements, are reallocated to database instances whose management pressure is less than a preset threshold. During the reallocation, it is necessary to ensure that the management pressure of the database instance receiving the data remains less than the preset threshold after receiving the reassigned data, in order to avoid overloading the database instance receiving the data.
[0111] As an example, if the database pressure exceeds 10,000, it indicates significant pressure. During the expansion process, some network elements on this database instance can be migrated to other database instances with management pressure values below a preset threshold. The specific services corresponding to these network elements are also migrated accordingly, thereby restructuring the data within the database instance and achieving heterogeneous expansion.
[0112] This embodiment calculates the management pressure value of database instances and redistributes network elements and service data when the management pressure value exceeds a preset threshold. This allows data on database instances with high management pressure to be distributed to database instances with low management pressure, thereby balancing the management pressure of each database instance, preventing some database instances from overloading, and improving the overall processing capacity and stability of the system.
[0113] Based on the first, second, and / or third embodiments of this application, in the fourth embodiment of this application, the content that is the same as or similar to the above-described embodiments one, two, and three can be referred to the above description and will not be repeated hereafter. Furthermore, based on this, after adjusting the nodes used to deploy service resources in the management and control system according to resource configuration differences, the method further includes: Step G10: Determine the target number of application service instances at the target scale based on resource configuration differences; Differences in resource configuration may include differences in the number of instances corresponding to application services. This difference in the number of instances can be obtained by comparing the current number of application services at the current scale with the configured number of application services at the target scale.
[0114] When determining the target number of instances, the difference in instance count can be added to the current number of instances. If the difference in instance count is positive, the target number of instances is greater than the current number of instances; if the difference in instance count is negative, the target number of instances is less than the current number of instances; if the difference in instance count is zero, the target number of instances is equal to the current number of instances.
[0115] As an example, taking the upgrade of the UME management and control system from an 8k equivalent network element scale to a 50,000 equivalent network element scale as an example, under the current scale, the management application has 3 application components, and under the target scale, the management application has 4 application components. Therefore, the difference in the number of instances for the management application is +1, and the target number of instances is 4. The control application has 1 instance under the current scale and remains 1 under the target scale, so the difference in the number of instances is 0, and the target number of instances is 1. The special application has 1 instance under the current scale and remains 1 under the target scale, so the difference in the number of instances is 0. In summary, the target number of instances is 1.
[0116] Step G20: If the scaling request of the management system is a scaling request of the management system, add application service instances according to the target number of instances, and deploy the newly added application service instances to the newly added nodes in the target nodes.
[0117] If the scaling request for the management system is a scaling request, it means that the current size needs to be expanded to the target size. In this case, application service instances can be added according to the target number of instances, and the newly added application service instances can be deployed to the newly added nodes in the target nodes.
[0118] The new node in the target node can be the node added in step S20 based on resource configuration differences. By deploying the new application service instance to the new node, it is possible to avoid additional load on the original node and utilize the resources of the new node to improve the application service processing capacity.
[0119] In one possible implementation, if the number of application service instances and resource configuration remain unchanged, the application service instances can continue to run on the existing nodes. If the number of application service instances or resource configuration changes, new instances can be deployed on new nodes, or scaling can be performed on the existing nodes.
[0120] This embodiment determines the target number of application service instances based on resource configuration differences, and adds application service instances according to the target number of instances and deploys them to new nodes under expansion requests. This enables the processing capacity of application services to increase synchronously with the target scale, and completes smooth expansion in conjunction with node adjustment, public service migration and other steps.
[0121] In one specific implementation, refer to Figure 5 As shown, the overall process of scaling up and down the management and control system can include: resource difference analysis, outputting a list of new resources, providing resources of the target scale, changing node labels, migrating and expanding public services, and expanding application services.
[0122] Among them, the resource difference analysis can correspond to the resource allocation difference determination process in step S10 above; the output of the new resource list and the provision of target scale resources can correspond to the node adjustment process in step S20 above; the node label change can correspond to the relevant processing of node adjustment in step S20 above; the public service migration and expansion can correspond to steps S30 to S40 above; and the application service expansion can correspond to steps G10 to G20.
[0123] pass Figure 5 The process shown can sequentially perform resource difference analysis, output a list of new resources, provide resources of the target scale, change node labels, migrate and expand public services, and expand application services, thereby completing a smooth upgrade from a small-scale management and control system to a large-scale management and control system.
[0124] In one possible implementation, after adjusting the nodes used for deploying service resources at the current scale in the management and control system based on resource configuration differences, the method further includes: Step H10: Determine the target number of application service instances at the target scale based on resource configuration differences; In a scaling-down scenario, if the difference in the number of instances is negative, then the target number of instances is less than the current number of instances, meaning that the application service needs to be scaled down.
[0125] As an example, taking the scaling down of the UME management system from a 5w equivalent network element scale to an 8k equivalent network element scale as an example, the difference in the number of instances corresponding to the management application is -1, and the target number of instances is 3.
[0126] Step H20: If the scaling-up / scaling request of the management system is a scaling-down request, reduce the number of application service instances on the target node according to the target number of instances.
[0127] If the scaling request for the management system is a scaling-down request, it means that the current size needs to be reduced to the target size. In this case, the application service instances on the target node can be reduced according to the target number of instances.
[0128] In one possible implementation, reducing the number of application service instances may include reducing the number of application service instances and reducing the CPU, memory, storage, and other resources used by the reduced instances.
[0129] The scaled-down application service instances can continue to run on the target node. If all application service instances on a target node are scaled down, that target node can become an idle node.
[0130] As an example, if the number of application service instances needs to be reduced, the corresponding number of application service instances can be reduced on the target node, and the corresponding resources can be released.
[0131] This embodiment determines the target number of application service instances based on resource configuration differences, and reduces the number of application service instances on the target node according to the target number of instances under the scaling-down request. This enables the processing capacity of the application service to be reduced synchronously with the target scale, avoiding resource waste, and completing smooth scaling-down in coordination with node adjustment, public service migration and other steps.
[0132] In one possible implementation, when the scaling-up / scaling request of the management system is a scaling-down request, after reducing the number of application service instances on the target node according to the target number of instances, the method further includes: Step J10: Obtain the deployment status of public services and application services for each target node in the control system; Deployment status indicates whether public service instances and application service instances are deployed on the target node, as well as the number of deployed instances and the resources they consume. Deployment status can be obtained by scanning the deployment information of the target node, querying the instance list of the container orchestration platform, reading node tags, or calling resource management interfaces.
[0133] Step J20: Based on the deployment status, determine the idle nodes in the target nodes that have not deployed public services and application services; Step J30: Release the idle node.
[0134] Releasing idle nodes can include at least one of the following: removing the idle node from the management system, deleting the virtual machine corresponding to the idle node, and reclaiming the CPU, memory, and storage resources occupied by the idle node. After releasing the idle node, the resource reduction corresponding to the scaling-down process is completed.
[0135] In one specific implementation, refer to Figure 6 As shown, the overall process of scaling down the management and control system can include: resource difference analysis, outputting a list of resources to be reduced, changing node labels, migrating and scaling down public services, scaling down application services, and releasing resources after reduction.
[0136] Specifically, the resource difference analysis corresponds to the process of determining the resource allocation difference between the current scale and the target scale in step S10; the output of the reduced resource list corresponds to the process of outputting the reduced resource list in the scaling-down scenario in step S10; the node label change corresponds to the relevant processing of node adjustment in step S20; the public service migration and scaling-down corresponds to the process of determining the public service migration relationship and migrating public services in steps S30 to S40, and performing scaling-down in the scaling-down scenario; the application service scaling-down corresponds to steps H10 to H20; and the resource reduction and release corresponds to steps J10 to J30.
[0137] pass Figure 6 The process shown can sequentially perform resource difference analysis, output a reduced resource list, change node labels, migrate and scale down public services, scale down application services, and release reduced resources, thereby completing a smooth scaling down from a large-scale management and control system to a small-scale management and control system.
[0138] This embodiment obtains the deployment status of public services and application services of each target node, identifies idle nodes that have not deployed public services and application services, and releases them. This avoids releasing nodes that are still carrying services, improves the accuracy of resource reclamation and the security of the scaling-down process, and coordinates with steps such as public service migration and scaling-down, and application service scaling-down to complete a smooth scaling-down.
[0139] Furthermore, this application also proposes a management and control system, characterized in that the management and control system includes multiple nodes, among which a master control node is included, and the master control node is used to execute the steps of the management and control system scaling up and down method as described above.
[0140] The master node is a node used to coordinate and manage public services and application services in the management system. For example, it can be deployed as a K8S (Kubernetes, container orchestration platform) Master, a software repository, and a PaaS (Platform as a Service) Controller.
[0141] The master node is used to execute the steps of the aforementioned scaling up and down method for the management and control system. Multiple nodes may also include public service nodes and application service nodes, etc.
[0142] The management and control system provided in this application adopts the management and control system scaling method in the above embodiments, which can solve the technical problem of how to achieve reliable scaling of the management and control system in concurrent access scenarios. Compared with the prior art, the beneficial effects of the management and control system provided in this application are the same as the beneficial effects of the management and control system scaling method provided in the above embodiments, and other technical features of this management and control system are the same as those disclosed in the previous embodiment method, and will not be repeated here.
[0143] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.
[0144] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
[0145] In addition, to achieve the above objectives, this application also provides a readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, which are used to execute the control system scaling up and down method in the above embodiments.
[0146] The computer-readable storage medium provided in this application embodiment may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.
[0147] The aforementioned computer-readable storage medium may be included in the control system or may exist independently without being assembled into the control system.
[0148] The aforementioned computer-readable storage medium carries one or more programs, which, when executed by the control system, cause the control system to perform the steps of the aforementioned control system scaling up / down method.
[0149] Computer program code for performing the operations of this application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0150] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0151] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the modules themselves.
[0152] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the above-described control system scaling method, thereby solving the technical problem of how to achieve reliable control system scaling in concurrent access scenarios. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the control system scaling method provided in the above embodiments, and will not be repeated here.
[0153] Furthermore, this application also proposes a computer program product, including a computer program that, when executed by a processor, implements the steps of the control system scaling method as described above.
[0154] The specific implementation method of the computer program product in this application is basically the same as the various embodiments of the above-mentioned control system expansion and contraction method, and will not be described again here.
[0155] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.
[0156] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0157] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software sensor. This computer software sensor is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions to cause a control system (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0158] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.
Claims
1. A method for scaling up and down a control system, characterized in that, include: In response to a scaling request from the management and control system, determine the resource allocation difference between the current size and the target size of the management and control system; Based on the resource configuration differences, the nodes used for deploying service resources at the current scale are adjusted in the management and control system to obtain the target nodes used for deploying service resources at the target scale. For each public service at the current scale, based on the resource consumption requirements of the public service at the target scale, the target node to be deployed for the public service is determined, and the public service migration relationship corresponding to the public service is determined, wherein the public service migration relationship represents the correspondence between the current deployment node of the public service at the current scale and the target node to be deployed. For each public service at the current scale, based on the public service migration relationship corresponding to the public service, the public service is migrated from the current deployment node to the target node to be deployed.
2. The method for scaling up and down a control system as described in claim 1, characterized in that, The step of determining the target nodes for deployment of the public service based on the resource consumption requirements of the public service at the target scale includes: Obtain the resource consumption requirements of the public service at the target scale, wherein the resource consumption requirements include the resource requirements of a single service instance supported by the public service; For each individual service instance, execute the target operation sequentially; The target operation includes: traversing each target node, obtaining the available resource information of each target node, and if the available resource information of the currently traversed target node meets the resource requirements of the single service instance, associating the currently traversed target node with the service identifier corresponding to the public service and stopping the traversal of the next target node, so as to determine the currently traversed target node as the target node to be deployed for the public service.
3. The method for scaling up and down a control system as described in claim 2, characterized in that, Determining the public service migration relationship corresponding to the public service includes: Based on the service identifier of the public service, obtain the current deployment node and the target node to be deployed of the public service under the current scale, so as to obtain the public service migration relationship corresponding to the public service.
4. The method for scaling up and down a control system as described in claim 1, characterized in that, The step of migrating the public service from the current deployment node to the target node to be deployed, based on the public service migration relationship corresponding to the public service, includes: According to the preset load balancing strategy and the public service migration relationship corresponding to the public service, the public service is migrated from the current deployment node to the target node to be deployed.
5. The method for scaling up and down a control system as described in claim 4, characterized in that, The step of migrating the public service from the current deployment node to the target node to be deployed, based on a preset load balancing strategy and the public service migration relationship corresponding to the public service, includes: Obtain the resource utilization rate of the currently deployed node, wherein the resource utilization rate is determined based on at least one resource utilization indicator; If the resource utilization rate of the currently deployed node is greater than a preset load threshold, the service instance of the public service on the currently deployed node is migrated from the currently deployed node to the target node to be deployed, where the resource utilization rate is less than the preset load threshold, according to the public service migration relationship corresponding to the public service. The target node to be deployed has a resource utilization rate less than the preset load threshold after hosting the service instance.
6. The method for scaling up and down a control system as described in claim 5, characterized in that, The step of migrating the service instance of the public service on the current deployment node to the target node to be deployed, where the resource utilization rate is less than the preset load threshold, includes: The service data of each service instance supported by the public service is redistributed to achieve load balancing of the service data of each service instance.
7. The method for scaling up and down a control system as described in claim 6, characterized in that, The service instance includes a database instance, and the reallocation of service data for each service instance supported by the public service includes: Obtain the type and quantity of network elements managed by the database instance on the currently deployed node; Obtain the management pressure value of each service instance. The management pressure value is the sum of the pressure values of each type of network element in the service instance. The pressure value of a type of network element is the product of the equivalent network element coefficient corresponding to the type and the number of network elements of the type. The equivalent network element coefficient is used to convert different types of network elements into equivalent management units. Database instances whose management pressure value is greater than a preset threshold are identified as instances to be reassigned. At least some network elements managed by the instances to be reassigned, and the service data corresponding to the at least some network elements, are reassigned to database instances whose management pressure value is less than the preset threshold. After receiving the reassigned data, the management pressure value of the database instance is less than the preset threshold.
8. The method for scaling up or down a control system as described in any one of claims 1 to 7, characterized in that, After adjusting the nodes used for deploying service resources in the management and control system based on the resource configuration differences, the method further includes: Based on the resource configuration differences, determine the target number of application service instances at the target scale; If the scaling request of the management and control system is a scaling request of the management and control system, add application service instances according to the target number of instances, and deploy the newly added application service instances to the newly added nodes in the target nodes.
9. The method for scaling up or down a control system as described in any one of claims 1 to 7, characterized in that, After adjusting the nodes used for deploying service resources at the current scale in the management and control system based on the resource configuration differences, the method further includes: Based on the resource configuration differences, determine the target number of application service instances at the target scale; If the scaling-up / scaling request of the management system is a scaling-down request, the number of application service instances on the target node is reduced according to the target number of instances.
10. The method for scaling up and down a control system as described in claim 9, characterized in that, When the scaling-up / scaling request of the management system is a scaling-down request, after reducing the number of application service instances on the target node according to the target number of instances, the method further includes: Obtain the deployment status of public services and application services of each target node in the control system; Based on the deployment status, identify idle nodes among the target nodes that have not deployed public services and application services; Release the idle node.
11. A control system, characterized in that, The control system includes multiple nodes, among which a master control node is included. The master control node is used to execute the steps of the control system scaling up and down method as described in any one of claims 1 to 10.
12. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the steps of the control system scaling method as described in any one of claims 1 to 10.
