A method, device and storage medium for deploying a secure network element
By acquiring the characteristic information and real-time load data of the host resource pool, and using a two-stage anchoring method to determine the target host cluster and the host, the problem of unbalanced load in the deployment of security network elements is solved, and the reasonable allocation and automated deployment of host are realized, thereby improving the robustness and efficiency of multi-cloud host clusters.
Patent Information
- Application Number
- CN202611405448.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-10
- Publication Date
- 2026-11-20
AI Technical Summary
Existing technologies lack a balanced approach to various operational metrics among host machines in the deployment of security network elements, leading to dynamic load imbalance. Furthermore, the lack of a collaborative allocation strategy for CPU and disk resources poses risks of resource contention and skewness.
By acquiring the characteristic information and real-time load data of the host resource pool, the target host cluster and host are determined using a two-stage anchoring method. Security network elements are allocated reasonably to achieve load balancing, prevent host overload, and enhance the robustness of the multi-cloud host cluster.
It effectively prevents host machine overload, extends host machine lifespan, improves the automation level of the deployment process, reduces maintenance costs, and enhances the robustness and deployment efficiency of multi-cloud host machine clusters.
Smart Images

Figure CN123145151A_ABST
Abstract
Description
Technical Field
[0001] This article relates to computer network security technology, and in particular to a method, device and storage medium for deploying a security network element. Background Technology
[0002] In the deployment of security network elements, anti-affinity deployment is a prerequisite. Common deployment methods for security network elements include a method based on hyperconverged systems, which calculates multiple deployment schemes by measuring metrics such as mesh hop count, available network bandwidth, and network latency. Another method is a security service chain orchestration method, which uses a particle swarm optimization algorithm to combine security service chain policies as particles, iteratively optimizing particle speed and position with the objective function of minimizing bandwidth consumption, and finally outputting the optimal policy combination and deploying it to the security service chain. Additionally, there is a distributed deployment method for Virtual Network Function (VNF) devices. This method parses the anti-affinity group policy in the VNF configuration model and dynamically deploys VNF instances with different device labels within the same group to different computing nodes based on network element description files, achieving multi-dimensional resource isolation and load balancing.
[0003] However, current technologies lack content on balancing various operational metrics among host machines, making it difficult to effectively solve the problem of dynamic load imbalance among host machines. Summary of the Invention
[0004] This application provides a method, device, and storage medium for deploying security network elements, which effectively prevents host machine overload, enhances the robustness of multi-cloud host machine clusters, reduces human intervention, and improves the automation level of the security network element deployment process.
[0005] In a first aspect, embodiments of this application provide a method for deploying a security network element, including: Obtain the characteristic information of each host cluster within the host resource pool; the characteristic information of the host cluster includes: the cloud platform information to which the host cluster belongs and the capacity and allocation of various resources of the host cluster; various resources include at least one of the following: Central Processing Unit (CPU), memory, and disk; Based on the characteristic information of each host cluster, the target host cluster is determined from the multiple host clusters included in the host resource pool; Obtain real-time load data of each host machine within the target host cluster; Based on the real-time load data of each host machine within the target host machine cluster, the target host machine is identified from among the host machines within the target host machine cluster, and a security network element is deployed on the target host machine.
[0006] In one possible implementation, the target host cluster is determined from multiple host clusters included in the host resource pool based on the characteristic information of each host cluster, including: Based on the preset weighting coefficients and the characteristic information of each host cluster, the cluster score corresponding to each host cluster is determined, and the host cluster with the smallest cluster score is determined as the target host cluster.
[0007] In one possible implementation, the resources include: CPU, memory, and disk; based on preset weighting coefficients and the characteristic information of each host cluster within the host resource pool, the cluster score corresponding to each host cluster is determined, including: The following expression is used for calculation: , in, This represents the cluster score corresponding to the host cluster. This indicates the amount of CPU allocated to the host cluster. This indicates the CPU capacity of the host cluster. This indicates the amount of memory allocated to the host cluster. This indicates the memory capacity of the host cluster. This indicates the memory allocation rate weight corresponding to the host cluster. This indicates the disk allocation amount of the host cluster. This indicates the disk capacity of the host cluster. This indicates the disk allocation weight corresponding to the host cluster. This indicates the cloud platform weight corresponding to the cloud platform to which the host cluster belongs.
[0008] In one possible implementation, the real-time load data includes at least one of the following: actual CPU load, actual disk read load, and actual disk write load; Based on the real-time load data of each host machine within the target host machine cluster, the target host machine is identified from among the host machines within the target host machine cluster, including: Based on the real-time load data of each host machine within the target host machine cluster, determine the baseline values for each real-time load data item corresponding to the target host machine cluster. Based on the real-time load data of each host machine within the target host machine cluster and the baseline values of each real-time load data, the host machine score corresponding to each host machine within the target host machine cluster is determined, and the host machine with the lowest host machine score is determined as the target host machine.
[0009] In one possible implementation, the host score for each host within the target host cluster is determined based on the real-time load data of each host within the target host cluster and the baseline values of each real-time load data point, including: The following expression is used for calculation: , in, This represents the host machine's host machine score. Represents any real-time load data of the host machine, RV represents the baseline value of the real-time load data V of the host machine, and e represents the natural constant.
[0010] In one possible implementation, a baseline value for each real-time load data item of the target host cluster is determined based on the real-time load data of each host within the target host cluster, including: Remove the extreme values from the real-time load data of all hosts within the target host cluster to obtain the optimized data corresponding to each real-time load data. The average value of the optimized data corresponding to each real-time load data is determined as the baseline value corresponding to the real-time load data.
[0011] In one possible implementation, characteristic data of each host cluster within the host resource pool is obtained, including: Obtain the operating data of each host machine within each host machine cluster corresponding to each cloud platform. The operating data shall include at least one of the following: CPU load rate, memory usage rate, and disk read / write speed. Based on the operational data of each host machine within each host machine cluster, the characteristic information of each host machine cluster is determined.
[0012] In one possible implementation, after determining the cluster score for each host cluster, the method further includes: A scalable caching architecture is adopted to store the identification information of each host cluster and the cluster score corresponding to each host cluster; When a new host cluster is added to the host resource pool, the method also includes: Obtain characteristic information of the new host cluster; Based on the preset weighting coefficients and the characteristic information of the new host cluster, determine the cluster score corresponding to the new host cluster; The host cluster with the lowest cluster score among the stored host clusters and the new host cluster will be re-identified as the target host cluster.
[0013] Secondly, embodiments of this application also provide an electronic device, including a processor, a memory, and a communication bus, wherein the processor and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, when executing a program stored in memory, implements any of the methods provided in the first aspect.
[0014] Thirdly, embodiments of this application also provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements any of the methods provided in the first aspect.
[0015] The security network element deployment method, device, and storage medium provided in this application embodiment obtain characteristic information of each host cluster within the host resource pool. The characteristic information of the host cluster includes: cloud platform information to which the host cluster belongs and the capacity and allocation of various resources of the host cluster. Various resources include at least one of the following: CPU, memory, and disk. Based on the characteristic information of each host cluster, a target host cluster is determined from multiple host clusters included in the host resource pool; real-time load data of each host within the target host cluster is obtained. Based on the real-time load data of each host machine within the target host machine cluster, the target host machine is identified from among the hosts within the target host machine cluster, and security network elements are deployed on the target host machine. This achieves "two-stage anchoring": firstly, the target host machine cluster is anchored from within the host machine resource pool based on the host machine cluster's characteristic information, and then the target host machine is anchored within the anchored target host machine cluster based on the real-time load data of the host machine. This effectively prevents host machine overload, extends the host machine's lifespan through reasonable allocation, enhances the robustness of the multi-cloud host machine cluster, reduces human intervention, improves the automation level of the security network element deployment process, shortens the deployment cycle of security network elements, and reduces the maintenance cost of deploying network elements in the multi-cloud host machine cluster.
[0016] Other features and advantages of this application will be set forth in the following description, and will be apparent in part from the description, or may be learned by practicing the application. Other advantages of this application can be realized and obtained by means of the embodiments described in the description and the accompanying drawings. Attached Figure Description
[0017] The accompanying drawings are used to provide an understanding of the technical solutions of this application and constitute a part of the specification. They are used together with the embodiments of this application to explain the technical solutions of this application and do not constitute a limitation on the technical solutions of this application.
[0018] Figure 1 A flowchart illustrating a method for deploying a security network element as provided in an embodiment of this application; Figure 2 This is a schematic diagram of a host resource pool and cloud platform provided in an embodiment of this application. Detailed Implementation
[0019] This application describes several embodiments, but these descriptions are exemplary and not limiting, and it will be apparent to those skilled in the art that many more embodiments and implementations are possible within the scope of the embodiments described herein. Although many possible combinations of features are shown in the drawings and discussed in the detailed description, many other combinations of the disclosed features are also possible. Unless specifically limited, any feature or element of any embodiment may be used in combination with, or may replace, any feature or element of any other embodiment.
[0020] This application includes and contemplates combinations of features and elements known to those skilled in the art. The embodiments, features, and elements disclosed in this application can also be combined with any conventional features or elements to form unique inventive solutions. Any feature or element of any embodiment can also be combined with features or elements from other inventive solutions to form another unique inventive solution. Therefore, it should be understood that any feature shown and / or discussed in this application can be implemented individually or in any suitable combination. Therefore, the embodiments are not limited except by the limitations imposed by the appended claims and their equivalents. Furthermore, various modifications and changes can be made within the scope of the appended claims.
[0021] Furthermore, in describing representative embodiments, the specification may have presented methods and / or processes as a specific sequence of steps. However, the method or process should not be limited to a specific order of steps to the extent that it does not depend on this specific order. As will be understood by those skilled in the art, other sequences of steps are also possible. Therefore, the specific order of steps set forth in the specification should not be construed as a limitation of the claims. Moreover, the claims relating to the method and / or process should not be limited to the steps performed in the order written, and those skilled in the art will readily understand that these orders can be varied and still remain within the spirit and scope of the embodiments of this application.
[0022] In the deployment of security network elements, anti-affinity deployment is a prerequisite. Meanwhile, common operational metrics such as CPU, memory, hard disk read / write speed, and network speed have a significant impact on deployment operations and subsequent maintenance. Therefore, the influence of these factors should be considered during deployment. Patent application number CN202111287937.8 provides a deployment method for security network elements based on a hyperconverged system. This method includes: obtaining multiple network hop counts, multiple available network bandwidths, and multiple network delays; calculating multiple bandwidth overheads based on each network hop count and its corresponding available network bandwidth; calculating multiple delay overheads based on each network hop count and its corresponding network delay; and selecting a target physical server from multiple physical servers based on the multiple bandwidth overheads and multiple delay overheads. The target physical server is used to deploy the target security network element that communicates with the source security network element. By utilizing the above technical solution, the embodiments of this application can effectively improve the utilization efficiency of the hyperconverged system. Patent application CN202411914665.3 provides a method, apparatus, electronic device, and medium for orchestrating secure service chains. The method includes: acquiring user security service requirement data; initializing a particle swarm by treating a combination of security service chain strategies as particles based on the user security service requirement data; determining an objective function with the goal of minimizing the total bandwidth consumption of the security service chains; calculating the fitness values of the particles based on the objective function; updating the velocity and position of the particles based on the fitness values; recalculating the fitness values of the particles and updating their velocity and position until the number of iterations reaches a preset value to obtain the optimal strategy combination; and deploying the security service chain based on the optimal strategy combination. This application obtains the minimum overall bandwidth consumption that meets the user's security capability requirements by setting an objective function, which can effectively reduce bandwidth consumption and improve the efficiency and effective transmission capability of the orchestration algorithm. However, both methods only optimize bandwidth and fail to establish a dynamic load model for host CPU, memory, and disk I / O, leading to risks of resource contention and skewness. This can result in dynamic load imbalances between host machines. Furthermore, the lack of a collaborative allocation strategy for CPU and disk resources may cause resource fragmentation and performance isolation failures, resulting in insufficient collaborative scheduling of heterogeneous resources. Patent application CN202210996570.5 provides a distributed deployment method and device for VNF devices.The received VNF configuration model is parsed using a model parsing engine. This model includes basic configuration node information and network element type node information. Based on the parsing results, the group number of the anti-affinity group corresponding to the VNF device to be deployed is obtained, and the information of other VNF devices within the anti-affinity group is determined based on this group number. The device labels of multiple VNF devices within the same anti-affinity group are distinct. The network element description file of the anti-affinity group corresponding to the VNF device to be deployed is obtained. If the anti-affinity strategy is introduced in the network element description file, the VNF device to be deployed is deployed along with other VNF devices in the anti-affinity group, each deployed on different compute node servers. This method solves the problem of uneven load on compute node servers. However, this method only aims at "anti-affinity" and "meeting basic requirements," and does not establish a dynamic load model for host CPU, memory, and disk I / O. This leads to the risk of resource contention and skew, potentially resulting in dynamic load imbalance between host machines. Furthermore, because it lacks a collaborative allocation strategy for CPU and disk, there is insufficient collaborative scheduling of heterogeneous resources.
[0023] To address the problems existing in the prior art, this application provides a deployment method for security network elements. This method fully considers the core operation and maintenance indicators of the host machine, adopts a two-stage anchoring method to achieve intelligent deployment of security network elements, solves the problem of load imbalance, reduces manual intervention to adjust the host machine load, and improves the robustness of the host machine system and the efficiency of deployment.
[0024] Figure 1 A flowchart illustrating a method for deploying a security network element provided in an embodiment of this application is shown below. Figure 1 As shown, the method includes: S101. Obtain the characteristic data of each host cluster in the host resource pool.
[0025] like Figure 2 As shown, the host resource pool includes multiple host clusters, each host cluster includes multiple hosts, and each host cluster may belong to different cloud platforms or the same cloud platform.
[0026] The characteristic data of the host cluster includes: information about the cloud platform to which the host cluster belongs and the capacity and allocation of various resources of the host cluster; various resources include at least one of the following: CPU, memory, and disk.
[0027] Specifically, the characteristic data of the host cluster may include: the cloud platform information to which the host cluster belongs, the CPU capacity of the host cluster, the CPU allocation of the host cluster, the memory capacity of the host cluster, the memory allocation of the host cluster, the disk capacity of the host cluster, and the disk allocation of the host cluster.
[0028] Furthermore, obtaining the characteristic data of each host cluster within the host resource pool can be achieved by directly obtaining the characteristic data of each host cluster within the host resource pool from the outside through an interactive interface or API, or by obtaining the characteristic data of each host cluster within the host resource pool from relevant external data through an interactive interface or API and then performing calculations.
[0029] The characteristic data of each host cluster in the host resource pool can be obtained periodically, in real time, or at other preset frequencies.
[0030] In one possible implementation, the characteristic data of each host cluster within the host resource pool is obtained, including: obtaining the operating data of each host within each host cluster corresponding to each cloud platform; and determining the characteristic information of each host cluster based on the operating data of each host within each host cluster.
[0031] The operational data must include at least one of the following: CPU load rate, memory usage rate, and disk read / write speed.
[0032] Specifically, operational data of each host machine within each host resource pool is obtained through manual input or scheduled monitoring APIs or other monitoring methods from various cloud vendors. This data includes metrics such as CPU load, memory usage, and disk read / write speed. Based on this operational data, characteristic information of each host machine is determined, such as its CPU allocation, memory capacity, disk capacity, and disk allocation. Furthermore, by integrating the characteristic information of each host machine across different host clusters, the characteristic data of each host cluster is determined. CPU, memory, and disk capacity are pre-known parameters. Determining CPU, memory, and disk allocation based on CPU load, memory usage, and disk read / write speed is existing technology and will not be elaborated upon here.
[0033] S102. Based on the characteristic information of each host cluster, determine the target host cluster from the multiple host clusters included in the host resource pool.
[0034] In one possible implementation, the target host cluster is determined from multiple host clusters included in the host resource pool based on the characteristic information of each host cluster. This includes: determining the cluster score corresponding to each host cluster based on the preset weight coefficient and the characteristic information of each host cluster in the host resource pool, and determining the host cluster with the smallest cluster score as the target host cluster.
[0035] The preset weighting coefficient can be a weighting coefficient that is pre-set according to the type of security network element to be deployed.
[0036] When determining the target host cluster, this method can take into account the type of security network element, fully consider actual needs, and reasonably adjust the weights to meet the user needs in different business scenarios.
[0037] Optionally, various resources, including CPU, memory, and disk, are used to determine the cluster score for each host cluster based on preset weighting coefficients and the characteristic information of each host cluster within the host resource pool. The following expression is used for calculation: , in, This represents the cluster score corresponding to the host cluster. This indicates the amount of CPU allocated to the host cluster. This indicates the CPU capacity of the host cluster. This indicates the amount of memory allocated to the host cluster. This indicates the memory capacity of the host cluster. This indicates the memory allocation rate weight corresponding to the host cluster. This indicates the disk allocation amount of the host cluster. This indicates the disk capacity of the host cluster. This indicates the disk allocation weight corresponding to the host cluster. This indicates the cloud platform weight corresponding to the cloud platform to which the host cluster belongs.
[0038] For example, weighting coefficients , , Values can range from 0 to 2. For example, when setting weighting coefficients, they can be set according to actual needs. For instance, to balance the load, Qm, Qd, and Qc can all be set to 1, meaning that the weights of each characteristic of each host cluster within the host resource pool are equal, and there is no bias towards any particular cluster. This allows the load to be distributed as evenly as possible across each machine without distinguishing between cluster hardware performance, achieving load balancing. Different weights can also be set for different types of security network elements according to business plans. For example, when primarily used for firewall deployment, the Qc value of the firewall can be reduced, while the Qc value of other network elements can be increased. Alternatively, a performance-first principle can be adopted, setting different weight values for different types of feature values within the same feature information. For example, memory can be divided into high-speed memory and ordinary memory, with the Qm value for high-speed memory set to be smaller and the Qm value for ordinary memory set to be higher, thus prioritizing the use of clusters that include high-speed memory. Similarly, disks can be divided into solid-state drives (SSDs) and ordinary disks, with the Qd value for SSDs set to be lower and the Qd value for ordinary disks set to be higher, thus prioritizing the use of clusters that include SSDs.
[0039] S103. Obtain real-time load data of each host machine within the target host machine cluster.
[0040] The types of real-time load data can be set according to actual needs. Optionally, real-time load data may include at least one of the following: CPU actual load data, disk actual read load data, and disk actual write load data.
[0041] S104. Based on the real-time load data of each host machine within the target host machine cluster, identify the target host machine from among the host machines within the target host machine cluster, and deploy security network elements on the target host machine.
[0042] In one possible implementation, the target host is determined from the hosts within the target host cluster based on the real-time load data of each host within the target host cluster. This includes: determining the baseline values of various real-time load data corresponding to the target host cluster based on the real-time load data of each host within the target host cluster; determining the host score corresponding to each host within the target host cluster based on the real-time load data of each host within the target host cluster and the baseline values of various real-time load data; and determining the host with the lowest host score as the target host.
[0043] For example, by performing statistical analysis on the real-time load data of each host machine within the target host machine cluster and using appropriate calculation methods, the baseline values of various real-time load data corresponding to the target host machine cluster can be determined, such as extreme value averaging, median statistical method, and conventional arithmetic average method, in order to adapt to the data distribution characteristics under different scenarios.
[0044] Optionally, based on the real-time load data of each host machine within the target host machine cluster, a baseline value for each real-time load data corresponding to the target host machine cluster is determined, including: removing the extreme values from the real-time load data of all hosts within the target host machine cluster to obtain the optimized data corresponding to each real-time load data; and determining the average value of the optimized data corresponding to each real-time load data as the baseline value corresponding to the corresponding real-time load data.
[0045] Optionally, based on the real-time load data of each host within the target host cluster and the baseline values of each real-time load data, the host score corresponding to each host within the target host cluster is determined, including: determining the score of each real-time load data of each host based on the real-time load data of each host within the target host cluster and the baseline values of each real-time load data; and determining the host score corresponding to each host based on the score of each real-time load data of each host.
[0046] Specifically, for any real-time load data V, a normalization calculation method can be used for quantitative evaluation. This involves calculating the difference between the actual load data V and the baseline value RV of the load data V, and then performing a ratio operation between this difference and RV to obtain the normalized value. This calculation method distributes the result value range in the interval [-1, +∞]. A negative result indicates that the actual load data V of the host machine is lower than the cluster average; a positive result indicates that the actual load data V of the host machine is higher than the average. Furthermore, to avoid calculation bias caused by an excessively large range of normalized values and to prevent a single load data point from excessively influencing the final score, a specific exponential function is introduced for value range mapping. This function has monotonically increasing characteristics, continuously mapping the normalized values to a preset interval. While ensuring that the relative magnitudes of the values remain unchanged, it achieves effective data compression and standardization, thereby improving the scientific rigor and stability of the score calculation. Therefore, the score calculation formula corresponding to the actual load data V of the host machine can be expressed as: , in, This represents the score corresponding to the actual load data V.
[0047] Furthermore, after calculating the scores corresponding to each real-time load data point, the host machine score for each host machine within the target host machine cluster is obtained through calculation, and is expressed as follows: .
[0048] Optionally, based on the real-time load data of each host within the target host cluster and the baseline values of each real-time load data, the host score corresponding to each host within the target host cluster is determined, including: The following expression is used for calculation: , in, This represents the host machine's host machine score. This represents any real-time load data of the host machine, where RV represents the baseline value of the real-time load data V, and e represents the natural constant.
[0049] It is understandable that when V is the actual CPU load, RV is the CPU load baseline; when V is the actual disk read load, RV is the disk read load baseline; and when V is the actual disk write load, RV is the disk write load baseline.
[0050] In one possible implementation, after determining the cluster score corresponding to each host cluster, the method further includes: using a scalable caching architecture to store the identification information of each host cluster and the cluster score corresponding to each host cluster. When a new host cluster is added to the host resource pool, the method further includes: obtaining the feature information of the new host cluster; determining the cluster score corresponding to the new host cluster based on the preset weight coefficient and the feature information of the new host cluster; and re-determining the host cluster with the smallest cluster score among the stored host clusters and the new host cluster as the target host cluster.
[0051] Among them, the scalable caching architecture can adopt any data structure strategy such as red-black tree or N-ary tree.
[0052] This method, based on a scalable caching architecture, persistently stores the identification information and corresponding cluster scores of each host cluster. Upon invocation, it provides an efficient retrieval path, quickly locating the host cluster with the best overall score, thus improving the anchoring efficiency of the target host cluster and shortening the deployment time of security network elements. Furthermore, this method can automatically adapt to changes in host clusters to meet different needs, while also reducing manual intervention and lowering operational costs.
[0053] In one possible implementation, after determining the cluster score corresponding to each host cluster, the method further includes: using a scalable caching architecture to store the identification information of each host cluster and the cluster score corresponding to each host cluster. When any host cluster leaves the host resource pool, the method also includes: deleting the stored identification information and cluster score of the host cluster that has left the host resource pool.
[0054] This method employs a flexible storage strategy, which can automatically maintain the stored information, ensure the validity of the stored information, and improve the rationality of security element deployment.
[0055] Optionally, after determining the host machine score for each host within the target host cluster, the host machine score for each host can be stored to improve computational efficiency. For example, a scalable caching architecture can be used to store the identification information of each host and the corresponding host machine score.
[0056] The deployment method for security network elements provided in this application embodiment obtains the characteristic information of each host cluster in the host resource pool. The characteristic information of the host cluster includes: the cloud platform information to which the host cluster belongs and the capacity and allocation of various resources of the host cluster. Various resources include at least one of the following: CPU, memory, and disk. Based on the characteristic information of each host cluster, the target host cluster is determined from the multiple host clusters included in the host resource pool. Real-time load data of each host within the target host cluster is obtained. Based on the real-time load data of each host machine within the target host machine cluster, the target host machine is identified from among the hosts within the target host machine cluster, and security network elements are deployed on the target host machine. This achieves "two-stage anchoring": firstly, the target host machine cluster is anchored from within the host machine resource pool based on the host machine cluster's characteristic information, and then the target host machine is anchored within the anchored target host machine cluster based on the real-time load data of the host machine. This effectively prevents host machine overload, extends the host machine's lifespan through reasonable allocation, enhances the robustness of the multi-cloud host machine cluster, reduces human intervention, improves the automation level of the security network element deployment process, shortens the deployment cycle of security network elements, and reduces the maintenance cost of deploying network elements in the multi-cloud host machine cluster.
[0057] This application also provides an electronic device, including a processor, a memory, and a communication bus, wherein the processor and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, when executing a program stored in memory, implements any of the methods provided in any of the above embodiments.
[0058] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements any of the methods provided in any embodiment.
[0059] It will be understood by those skilled in the art that all or some of the steps, systems, or apparatuses disclosed above, and their functional modules / units, can be implemented as software, firmware, hardware, or suitable combinations thereof. In hardware implementations, the division between functional modules / units mentioned above does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed collaboratively by several physical components. Some or all components may be implemented as software executed by a processor, such as a digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit (ASIC). Such software may be distributed on a computer-readable medium, which may include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term "computer storage medium" includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically contain computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.
[0060] Furthermore, the terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined with "first," "second," etc., may explicitly or implicitly include at least one of those features.
[0061] In the description of this application, "multiple" means at least two, such as two, three, etc., unless otherwise expressly and specifically limited.
[0062] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0063] Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of this application.
Claims
1. A method for deploying a security network element, characterized in that, include: Obtain characteristic information of each host cluster within the host resource pool; The characteristic information of the host cluster includes: the cloud platform information to which the host cluster belongs and the capacity and allocation of various resources of the host cluster; the various resources include at least one of the following: CPU, memory, and disk; Based on the characteristic information of each host cluster, the target host cluster is determined from the multiple host clusters included in the host resource pool; Obtain real-time load data of each host machine within the target host machine cluster; Based on the real-time load data of each host machine within the target host machine cluster, the target host machine is identified from among the host machines within the target host machine cluster, and a security network element is deployed on the target host machine.
2. The method according to claim 1, characterized in that, The step of determining the target host cluster from the multiple host clusters included in the host resource pool based on the characteristic information of each of the host clusters includes: Based on the preset weighting coefficients and the feature information of each host cluster, the cluster score corresponding to each host cluster is determined, and the host cluster with the smallest cluster score is determined as the target host cluster.
3. The method according to claim 2, characterized in that, The various resources include: CPU, memory, and disk; the determination of the cluster score corresponding to each host cluster based on preset weighting coefficients and the characteristic information of each host cluster in the host resource pool includes: The following expression is used for calculation: , in, This represents the cluster score corresponding to the host cluster. This indicates the amount of CPU allocated to the host cluster. This indicates the CPU capacity of the host cluster. This indicates the amount of memory allocated to the host cluster. This indicates the memory capacity of the host cluster. This indicates the memory allocation rate weight corresponding to the host cluster. This indicates the disk allocation amount of the host cluster. This indicates the disk capacity of the host cluster. This indicates the disk allocation weight corresponding to the host cluster. This indicates the cloud platform weight corresponding to the cloud platform to which the host cluster belongs.
4. The method according to any one of claims 1-3, characterized in that, The real-time load data includes at least one of the following: actual CPU load, actual disk read load, and actual disk write load. The step of determining the target host from among the host machines within the target host cluster based on the real-time load data of each host machine within the target host cluster includes: Based on the real-time load data of each host machine within the target host machine cluster, determine the baseline values for each real-time load data item corresponding to the target host machine cluster; Based on the real-time load data of each host machine within the target host machine cluster and the baseline values of each real-time load data, the host machine score corresponding to each host machine within the target host machine cluster is determined, and the host machine with the smallest host machine score is determined as the target host machine.
5. The method according to claim 4, characterized in that, The step of determining the host score corresponding to each host in the target host cluster based on the real-time load data of each host within the target host cluster and the baseline values of each real-time load data includes: The following expression is used for calculation: , in, This represents the host machine's host machine score. Represents any real-time load data of the host machine, RV represents the baseline value of the real-time load data V of the host machine, and e represents the natural constant.
6. The method according to claim 4, characterized in that, The step of determining the baseline values for various real-time load data corresponding to the target host cluster based on the real-time load data of each host within the target host cluster includes: Remove the extreme values from the real-time load data of all hosts within the target host cluster to obtain the optimized data corresponding to each real-time load data. The average value of the optimized data corresponding to each real-time load data is determined as the baseline value corresponding to the real-time load data.
7. The method according to any one of claims 1-3, characterized in that, The acquisition of characteristic data of each host cluster within the host resource pool includes: Obtain the operating data of each host machine within each host machine cluster corresponding to each cloud platform. The operating data includes at least one of the following: CPU load rate, memory usage rate, and disk read / write speed. Based on the operating data of each host machine within each host machine cluster, the characteristic information of each host machine cluster is determined.
8. The method according to claim 2 or 3, characterized in that, After determining the cluster score corresponding to each of the host clusters, the method further includes: A scalable caching architecture is adopted to store the identification information of each host cluster and the cluster score corresponding to each host cluster; When a new host cluster is added to the host resource pool, the method further includes: Obtain the characteristic information of the new host cluster; Based on the preset weighting coefficients and the feature information of the new host cluster, the cluster score corresponding to the new host cluster is determined; The host cluster with the lowest cluster score among the stored host clusters and the new host cluster is re-determined as the target host cluster.
9. An electronic device, characterized in that, include: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors perform the method as described in any one of claims 1-8.
10. A computer storage medium, characterized in that, The storage medium stores a computer program, wherein the computer program is configured to execute the method as described in any one of claims 1-8 when it is run.
Citation Information
Patent Citations
Method and device for deploying security network element based on hyper-converged system
CN114006764A
A VNF device distributed deployment method and device
CN115412440B
Security service chain arrangement method and device, electronic equipment and medium
CN119814419A
