A security resource pool security service matching method, device and storage medium
By counting and sorting the real-time performance indicators of containers in the secure resource pool in the cloud environment, the problem of poor matching caused by the rapid resource change speed and large difference in demand consumption in the cloud environment is solved, and the best matching and efficiency improvement of security resources is achieved .
Patent Information
- Application Number
- CN202210824160.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-14
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2042-07-14
AI Technical Summary
The existing security resource pool matching solution in the cloud environment has a problem of poor matching due to the rapid resource change speed and the large consumption of security resources in different needs.
By periodically counting the real-time performance indicators of each container in the security resource pool, calculating the real-time capability value, and sorting the containers according to the target security service needs, selecting the container with the largest real-time capability value to provide security services.
The best matching of resources in a cloud environment is achieved, the problem of affecting security efficiency due to the excessive concurrency of the same security module is reduced, and the efficiency of security resource utilization is improved.
Smart Images

Figure CN115113982B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of network technology, and in particular to a security resource pool security service matching method, device and storage medium. Background Art
[0002] Traditional security measures are not suitable for boundary protection of cloud environments. Therefore, virtualization technology is used to run security product capabilities in a pooled virtual environment. However, since the cloud environment changes frequently, it is difficult to ensure that the most appropriate security resources are accessed when new security service requirements arise.
[0003] Existing matching solutions usually poll each container resource to ensure that the number of accesses to each security resource is roughly the same. However, this solution does not take into account the rapid change of resources in the cloud environment and the large differences in the consumption of security resources for different demands. It is easy for the connected security resources to be destroyed quickly and no longer occupy security resources, or for some demands to consume security resources far more than other demands, resulting in a large change in the actual load of security resources, leading to poor matching. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a security resource pool security service matching method, device and storage medium in response to the above-mentioned deficiencies in the prior art, so as to at least solve the problem that the existing matching scheme is usually a polling scheme for each container resource, which does not take into account the rapid change speed of resources in the cloud environment and the large differences in the consumption of security resources for different demands, resulting in poor matching.
[0005] In a first aspect, the present invention provides a security service matching method for a security resource pool, the method comprising:
[0006] Periodically collect statistics on the real-time performance indicators of each container corresponding to the target security module in the security resource pool;
[0007] Obtaining a real-time capability value of each container according to the real-time performance indicator of each container;
[0008] Obtaining a target security service requirement of a target platform for the target security module, and sorting each container according to the real-time capability value according to the target security service requirement;
[0009] A container with the largest real-time capability value is selected from the sorted containers to provide a target security service for the target platform.
[0010] Furthermore, the real-time performance index includes: a CPU real-time index, a bandwidth real-time index, and a memory real-time index. The real-time capability value of each container is obtained according to the real-time performance index of each container, specifically including:
[0011] Calculate the CPU ratio value, bandwidth ratio value and memory ratio value of all containers according to the CPU real-time index, bandwidth real-time index and memory real-time index of each container;
[0012] Normalizing the CPU ratio value, bandwidth ratio value, and memory ratio value respectively;
[0013] Calculate the load score of each container according to the normalized CPU ratio value, bandwidth ratio value, and memory ratio value;
[0014] Obtaining a list of remaining load scores of each container under the target security module according to the load score;
[0015] The real-time capacity value of each container is calculated according to the remaining load score of each container in the remaining load score list.
[0016] Furthermore, the CPU ratio value, bandwidth ratio value and memory ratio value of all containers are calculated according to the CPU real-time index, bandwidth real-time index and memory real-time index of each container, specifically including:
[0017] Divide the sum of the CPU maximum performance indicators of all containers corresponding to the target security module by the sum of the CPU real-time indicators of all containers corresponding to the target security module to obtain the CPU ratio values of all containers;
[0018] The sum of the bandwidth maximum performance indicators of all containers corresponding to the target security module is divided by the sum of the bandwidth real-time indicators of all containers corresponding to the target security module to obtain the bandwidth ratio value of all containers;
[0019] The sum of the maximum memory performance indicators of all containers corresponding to the target security module is divided by the sum of the memory real-time indicators of all containers corresponding to the target security module to obtain the memory ratio values of all containers.
[0020] Furthermore, the normalization of the CPU ratio value, the bandwidth ratio value, and the memory ratio value respectively includes:
[0021] Dividing the CPU ratio value by the sum of all ratio values to obtain a normalized CPU ratio value;
[0022] Dividing the bandwidth ratio value by the sum of all ratio values to obtain a normalized bandwidth ratio value;
[0023] The memory ratio value is divided by the sum of all ratio values to obtain a normalized memory ratio value.
[0024] Furthermore, the load score of each container is calculated according to the normalized CPU ratio value, bandwidth ratio value, and memory ratio value, specifically including:
[0025] The load score for each container is calculated according to the following formula:
[0026] S x =W C *X C +W B *X B +W M *X M
[0027] In the formula, S x represents the load score of the xth container, W C Indicates the normalized CPU ratio value, W B Represents the bandwidth ratio value after normalization, W M Indicates the normalized memory ratio value, X C represents the average CPU load of the xth container, X B represents the average bandwidth load of the xth container, X M represents the average memory load of the xth container, where W C , W B , W M The value range is 0 to 100%.
[0028] Further, obtaining a list of remaining load scores of each container under the target security module according to the load score specifically includes:
[0029] Subtract the load score of each container from 1 to obtain the residual load score of each container;
[0030] The remaining load score list is constructed according to the remaining load score of each container.
[0031] Further, the calculating the real-time capacity value of each container according to the remaining load score of each container in the remaining load score list specifically includes:
[0032] The real-time capability value of each container is calculated according to the following formula:
[0033]
[0034] In the formula, R(S x ) represents the real-time capability value of the xth container, S x Indicates the load score of the xth container, 1-S x represents the remaining load score of the x-th container, Represents the sum of the remaining load scores of all containers.
[0035] In a second aspect, the present invention provides a security resource pool security service matching device, comprising:
[0036] The indicator statistics module is used to periodically collect statistics on the real-time performance indicators of each container corresponding to the target security module in the security resource pool;
[0037] A capability value acquisition module, connected to the indicator statistics module, for obtaining a real-time capability value of each container according to the real-time performance indicator of each container;
[0038] A capability value sorting module, connected to the capability value acquisition module, is used to obtain the target security service requirements of the target platform for the target security module, and sort each container according to the real-time capability value according to the target security service requirements;
[0039] The security service matching module is connected to the capability value sorting module and is used to select a container with the largest real-time capability value from the sorted containers to provide the target security service for the target platform.
[0040] In a third aspect, the present invention provides a security resource pool security service matching device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to implement the security resource pool security service matching method described in the first aspect above.
[0041] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the security resource pool security service matching method described in the first aspect is implemented.
[0042] The security service matching method, device and storage medium of the security resource pool provided by the present invention take into account the situation that resources change quickly and the consumption of security resources for different demands varies greatly in a cloud environment. First, the real-time performance index of each container corresponding to the target security module in the security resource pool is periodically counted, and then the real-time capability value of each container is obtained according to the real-time performance index of each container. When the target security service demand of the target platform for the target security module is obtained, each container is sorted according to the real-time capability value according to the target security service demand, and the container with the largest real-time capability value is selected from the sorted containers to provide the target security service for the target platform. Since the container with the largest real-time capability value also has the best performance, it is possible to achieve the best matching of security resources under limited resources. At the same time, it is possible to reduce the problem of affecting security efficiency due to the excessive concurrent number of the same security module, and solve the problem that the existing matching scheme is usually a scheme for polling each container resource, which does not take into account the situation that resources change quickly and the consumption of security resources for different demands varies greatly in a cloud environment, resulting in poor matching. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 This is a flow chart of a security service matching method for a security resource pool according to Embodiment 1 of the present invention;
[0044] Figure 2 This is a schematic diagram of the structure of a security service matching device for a security resource pool according to Embodiment 2 of the present invention;
[0045] Figure 3 This is a structural diagram of a security service matching device for a security resource pool according to Embodiment 3 of the present invention. DETAILED DESCRIPTION
[0046] In order to enable those skilled in the art to better understand the technical solution of the present invention, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
[0047] It should be understood that the specific embodiments and drawings described herein are only used to explain the present invention rather than to limit the present invention.
[0048] It can be understood that, in the absence of conflict, the various embodiments of the present invention and the various features in the embodiments can be combined with each other.
[0049] It can be understood that, for the convenience of description, the drawings of the present invention only show the parts related to the present invention, while the parts irrelevant to the present invention are not shown in the drawings.
[0050] It can be understood that each unit and module involved in the embodiments of the present invention may correspond to only one physical structure, or may be composed of multiple physical structures, or multiple units and modules may be integrated into one physical structure.
[0051] It can be understood that, without conflict, the functions and steps marked in the flowcharts and block diagrams of the present invention may occur in an order different from that marked in the drawings.
[0052] It is understood that the flowcharts and block diagrams of the present invention illustrate the possible architectures, functions, and operations of the systems, devices, equipment, and methods according to the embodiments of the present invention. Each box in the flowchart or block diagram may represent a unit, module, program segment, or code, which contains executable instructions for implementing the specified functions. Moreover, each box or combination of boxes in the block diagram and flowchart may be implemented by a hardware-based system that implements the specified functions, or by a combination of hardware and computer instructions.
[0053] It can be understood that the units and modules involved in the embodiments of the present invention can be implemented by software or hardware. For example, the units and modules can be located in a processor.
[0054] Embodiment 1:
[0055] This embodiment provides a security resource pool security service matching method, such as Figure 1 As shown, the method includes:
[0056] Step S101: periodically collecting statistics on the real-time performance indicators of each container corresponding to the target security module in the security resource pool.
[0057] In this embodiment, the security resource pool is a collection of resources that provide security services in the cloud computing platform. In the security resource pool, security resources are provided to the outside in the form of services, and the functions of the original physical security devices are realized in the form of containers. Security module refers to a collection of containers that provide the same security functions. Each security module corresponds to a security capability, such as firewall, virus detection, intrusion prevention, SSL / IPSECVPN, database audit, WEB protection, log audit, host antivirus, bastion host, baseline verification, etc. The target security module can be any of all the security modules in the security resource pool.
[0058] Specifically, the management system can count the real-time performance indicators of all containers in the security resource pool at a fixed period and classify them according to the security capabilities provided. The management system can also count the real-time performance indicators of each container corresponding to a security module in the security resource pool at a fixed period. The performance indicators are used to characterize the performance of the containers that provide the corresponding security capabilities. The real-time performance indicators may include: CPU real-time indicators, bandwidth real-time indicators, and memory real-time indicators.
[0059] Step S102: obtaining a real-time capability value of each container according to the real-time performance index of each container.
[0060] Optionally, obtaining the real-time capability value of each container according to the real-time performance indicator of each container specifically includes:
[0061] Calculate the CPU ratio value, bandwidth ratio value and memory ratio value of all containers according to the CPU real-time index, bandwidth real-time index and memory real-time index of each container;
[0062] Normalizing the CPU ratio value, bandwidth ratio value, and memory ratio value respectively;
[0063] Calculate the load score of each container according to the normalized CPU ratio value, bandwidth ratio value, and memory ratio value;
[0064] Obtaining a list of remaining load scores of each container under the target security module according to the load score;
[0065] The real-time capacity value of each container is calculated according to the remaining load score of each container in the remaining load score list.
[0066] In this embodiment, since different performance indicators have different impacts on business performance, it is considered to set different ratios for the three real-time performance indicators to calculate the load scores of different security modules. The higher the utilization rate of a certain performance, the more scarce the resource is, so the average utilization rate of the three performances of all containers in the entire security module is calculated as the ratio value of the three performance indicators.
[0067] The CPU ratio value, bandwidth ratio value and memory ratio value of all containers are calculated according to the CPU real-time index, bandwidth real-time index and memory real-time index of each container, specifically including:
[0068] Divide the sum of the CPU maximum performance indicators of all containers corresponding to the target security module by the sum of the CPU real-time indicators of all containers corresponding to the target security module to obtain the CPU ratio values of all containers;
[0069] The sum of the bandwidth maximum performance indicators of all containers corresponding to the target security module is divided by the sum of the bandwidth real-time indicators of all containers corresponding to the target security module to obtain the bandwidth ratio value of all containers;
[0070] The sum of the maximum memory performance indicators of all containers corresponding to the target security module is divided by the sum of the memory real-time indicators of all containers corresponding to the target security module to obtain the memory ratio values of all containers.
[0071] In this embodiment, taking CPU as an example, the calculation formula of the CPU ratio value of all containers of the target security module is as follows:
[0072]
[0073] In the formula, w C Indicates the CPU ratio value. Indicates the sum of the maximum CPU performance indicators of all containers of the target security module. It indicates the sum of the CPU real-time indicators of all containers of the target security module. n is the total number of all containers of the target security module. The maximum performance indicator refers to the maximum performance indicator that can be supported by the corresponding container.
[0074] Optionally, the normalizing the CPU ratio value, the bandwidth ratio value, and the memory ratio value respectively includes:
[0075] Dividing the CPU ratio value by the sum of all ratio values to obtain a normalized CPU ratio value;
[0076] Dividing the bandwidth ratio value by the sum of all ratio values to obtain a normalized bandwidth ratio value;
[0077] The memory ratio value is divided by the sum of all ratio values to obtain a normalized memory ratio value.
[0078] In this embodiment, the sum of all the ratio values is the sum of the CPU ratio value, the bandwidth ratio value, and the memory ratio value. Taking the CPU as an example, the formula for normalizing the CPU ratio value is as follows:
[0079]
[0080] Where W C Indicates the normalized CPU ratio value, w C Indicates the CPU ratio, w B Indicates the bandwidth ratio, w M Indicates the memory ratio.
[0081] Optionally, calculating the load score of each container according to the normalized CPU ratio value, bandwidth ratio value, and memory ratio value specifically includes:
[0082] The load score for each container is calculated according to the following formula:
[0083] S x =W C *X C +W B *X B +W M *X M
[0084] In the formula, S x represents the load score of the xth container, W C Indicates the normalized CPU ratio value, W B Represents the bandwidth ratio value after normalization, W M Indicates the normalized memory ratio value, X C represents the average CPU load of the xth container, X B represents the average bandwidth load of the xth container, X M represents the average memory load of the xth container, where W C , W B , W M The value range is 0 to 100%.
[0085] In this embodiment, after obtaining the normalized ratio value, the management system sequentially calculates the load score of each container under the target security module, where the value range of x is 1 to n, and n is the total number of all containers of the target security module.
[0086] Optionally, obtaining a list of remaining load scores of each container under the target security module according to the load score specifically includes:
[0087] Subtract the load score of each container from 1 to obtain the residual load score of each container;
[0088] The remaining load score list is constructed according to the remaining load score of each container.
[0089] In this embodiment, assuming that the target security module is the first security module in the security resource pool and the number of containers is n, the constructed remaining load score list is as follows:
[0090]
[0091] In the formula, Indicates the load score of the first container under the first security module. Indicates the remaining load score of the first container in the first security module.
[0092] Optionally, calculating the real-time capacity value of each container according to the remaining load score of each container in the remaining load score list specifically includes:
[0093] The real-time capability value of each container is calculated according to the following formula:
[0094]
[0095] In the formula, R(S x ) represents the real-time capability value of the xth container, S x Indicates the load score of the xth container, 1-S x represents the remaining load score of the x-th container, Represents the sum of the remaining load scores of all containers.
[0096] In this embodiment, the real-time capability value of each container is calculated according to the remaining load score of each container. Taking the target security module as the first security module in the security resource pool as an example, the real-time capability value of the first container in the first security module is:
[0097]
[0098] in, It represents the sum of the remaining load scores of all containers in the first security module. Indicates the remaining load score of the first container in the first security module.
[0099] Step S103: obtaining a target security service requirement of a target platform for the target security module, and sorting each container according to the real-time capability value according to the target security service requirement;
[0100] Step S104: Select a container with the largest real-time capability value from the sorted containers to provide a target security service for the target platform.
[0101] In this embodiment, when the target platform needs to use a certain security capability of the security resource pool, it will apply to the management system for a container with the corresponding security capability to provide security services for it. Specifically, when the target platform needs to use the security capability corresponding to the target security module in the security resource pool, it sends a target security service demand to the management system, and the management system sorts all containers under the target security module according to the real-time capability value based on the demand. Since the container with the largest real-time capability value also has the best performance, the container with the largest real-time capability value is selected to provide the target security service for the target platform.
[0102] The security service matching method for a security resource pool provided by an embodiment of the present invention takes into account the situation that resources change quickly in a cloud environment and that the consumption of security resources by different demands varies greatly. First, the real-time performance index of each container corresponding to a target security module in a security resource pool is periodically counted, and then the real-time capability value of each container is obtained according to the real-time performance index of each container. When the target security service demand of the target platform for the target security module is obtained, each container is sorted according to the real-time capability value according to the target security service demand, and a container with the largest real-time capability value is selected from the sorted containers to provide the target security service for the target platform. Since the container with the largest real-time capability value also has the best performance, it is possible to achieve the best matching of security resources under limited resources. At the same time, it is possible to reduce the problem that the security efficiency is affected by the excessive number of concurrent users of the same security module, and solves the problem that the existing matching scheme is usually a scheme for polling each container resource, which does not consider the situation that resources change quickly in a cloud environment and that the consumption of security resources by different demands varies greatly, resulting in poor matching.
[0103] Embodiment 2:
[0104] like Figure 2 As shown, this embodiment provides a security resource pool security service matching device, which is used to execute the above-mentioned security resource pool security service matching method, including:
[0105] The indicator statistics module 11 is used to periodically count the real-time performance indicators of each container corresponding to the target security module in the security resource pool;
[0106] A capability value acquisition module 12, connected to the indicator statistics module 11, for obtaining a real-time capability value of each container according to the real-time performance indicator of each container;
[0107] A capability value sorting module 13, connected to the capability value acquisition module 12, is used to obtain the target security service requirements of the target platform for the target security module, and sort each container according to the real-time capability value according to the target security service requirements;
[0108] The security service matching module 14 is connected to the capability value sorting module 13 and is used to select a container with the largest real-time capability value from the sorted containers to provide the target security service for the target platform.
[0109] Optionally, the real-time performance index includes: a CPU real-time index, a bandwidth real-time index and a memory real-time index, and the capability value acquisition module 12 specifically includes:
[0110] A ratio value acquisition unit, used to calculate the CPU ratio value, bandwidth ratio value and memory ratio value of all containers according to the CPU real-time index, bandwidth real-time index and memory real-time index of each container;
[0111] A normalization processing unit, used to perform normalization processing on the CPU ratio value, the bandwidth ratio value and the memory ratio value respectively;
[0112] A load score unit, used to calculate the load score of each container according to the normalized CPU ratio value, bandwidth ratio value and memory ratio value;
[0113] A score list unit, used to obtain a remaining load score list of each container under the target security module according to the load score;
[0114] The capacity value calculation unit is used to calculate the real-time capacity value of each container according to the remaining load score of each container in the remaining load score list.
[0115] Optionally, the ratio value acquiring unit specifically includes:
[0116] A first calculation unit, configured to divide the sum of the CPU maximum performance indicators of all containers corresponding to the target security module by the sum of the CPU real-time indicators of all containers corresponding to the target security module to obtain CPU ratio values of all containers;
[0117] A second calculation unit, configured to divide the sum of the bandwidth maximum performance indicators of all containers corresponding to the target security module by the sum of the bandwidth real-time indicators of all containers corresponding to the target security module to obtain bandwidth ratio values of all containers;
[0118] The third calculation unit is used to divide the sum of the maximum memory performance indicators of all containers corresponding to the target security module by the sum of the memory real-time indicators of all containers corresponding to the target security module to obtain the memory ratio values of all containers.
[0119] Optionally, the normalization processing unit specifically includes:
[0120] a fourth calculation unit, configured to divide the CPU ratio value by the sum of all ratio values to obtain a normalized CPU ratio value;
[0121] a fifth calculation unit, configured to divide the bandwidth ratio value by the sum of all ratio values to obtain a normalized bandwidth ratio value;
[0122] The sixth calculation unit is used to divide the memory ratio value by the sum of all ratio values to obtain a normalized memory ratio value.
[0123] Optionally, the load scoring unit is specifically configured to calculate the load score of each container according to the following formula:
[0124] S x =W C *X C +W B *X B +W M *X M
[0125] In the formula, S x represents the load score of the xth container, W C Indicates the normalized CPU ratio value, W B Represents the bandwidth ratio value after normalization, W M Indicates the normalized memory ratio value, X C represents the average CPU load of the xth container, X B represents the average bandwidth load of the xth container, X M represents the average memory load of the xth container, where W C , W B , W M The value range is 0 to 100%.
[0126] Optionally, the score list unit specifically includes:
[0127] a seventh calculation unit, configured to respectively subtract the load score of each container from 1 to obtain a residual load score of each container;
[0128] A construction unit is used to construct the remaining load score list according to the remaining load score of each container.
[0129] Optionally, the capability value calculation unit is specifically used to calculate the real-time capability value of each container according to the following formula:
[0130]
[0131] In the formula, R(S x ) represents the real-time capability value of the xth container, S x Indicates the load score of the xth container, 1-S x represents the remaining load score of the x-th container, Represents the sum of the remaining load scores of all containers.
[0132] Embodiment 3:
[0133] refer to Figure 3This embodiment provides a security resource pool security service matching device, including a memory 21 and a processor 22, the memory 21 stores a computer program, and the processor 22 is configured to run the computer program to execute the security resource pool security service matching method in Example 1.
[0134] The memory 21 is connected to the processor 22. The memory 21 may be a flash memory, a read-only memory or other memory. The processor 22 may be a central processing unit or a single-chip microcomputer.
[0135] Embodiment 4:
[0136] This embodiment provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the security service matching method for a security resource pool in the above-mentioned embodiment 1 is implemented.
[0137] The computer-readable storage medium includes volatile or non-volatile, removable or non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, computer program modules or other data). Computer-readable storage media include, but are not limited to, RAM (Random Access Memory), ROM (Read-Only Memory), EEPROM (Electrically Erasable Programmable read only memory), flash memory or other memory technology, CD-ROM (Compact Disc Read-Only Memory), digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer.
[0138] The security service matching device and storage medium of the security resource pool provided in Examples 2 to 4 take into account the situation that resources change quickly in a cloud environment and the consumption of security resources for different demands varies greatly. First, the real-time performance indicators of each container corresponding to the target security module in the security resource pool are periodically counted, and then the real-time capability value of each container is obtained according to the real-time performance indicators of each container. When the target security service demand of the target platform for the target security module is obtained, each container is sorted according to the real-time capability value according to the target security service demand, and the container with the largest real-time capability value is selected from the sorted containers to provide the target security service for the target platform. Since the container with the largest real-time capability value also has the best performance, it is possible to achieve the best matching of security resources under limited resources. At the same time, it can reduce the problem of affecting security efficiency due to the excessive concurrent number of the same security module, and solve the problem that the existing matching scheme is usually a scheme for polling each container resource, which does not take into account the situation that resources change quickly in a cloud environment and the consumption of security resources for different demands vary greatly, resulting in poor matching.
[0139] It is to be understood that the above embodiments are merely exemplary embodiments used to illustrate the principles of the present invention, but the present invention is not limited thereto. For those of ordinary skill in the art, various modifications and improvements can be made without departing from the spirit and essence of the present invention, and these modifications and improvements are also considered to be within the scope of protection of the present invention.
Claims
1. A security resource pool security service matching method, characterized in that: include: Periodically collect statistics on the real-time performance indicators of each container corresponding to the target security module in the security resource pool, where the real-time performance indicators include: CPU real-time indicators, bandwidth real-time indicators, and memory real-time indicators; Obtaining a real-time capability value of each container according to the real-time performance indicator of each container; Obtaining a target security service requirement of a target platform for the target security module, and sorting each container according to the real-time capability value according to the target security service requirement; Selecting a container with the largest real-time capability value from the sorted containers to provide a target security service for the target platform; The obtaining the real-time capability value of each container according to the real-time performance indicator of each container specifically includes: Calculate the CPU ratio value, bandwidth ratio value and memory ratio value of all containers according to the CPU real-time index, bandwidth real-time index and memory real-time index of each container; Normalizing the CPU ratio value, bandwidth ratio value, and memory ratio value respectively; Calculate the load score of each container according to the normalized CPU ratio value, bandwidth ratio value, and memory ratio value; Obtaining a list of remaining load scores of each container under the target security module according to the load score; Calculate the real-time capacity value of each container according to the remaining load score of each container in the remaining load score list; The CPU ratio value, bandwidth ratio value and memory ratio value of all containers are calculated according to the CPU real-time index, bandwidth real-time index and memory real-time index of each container, specifically including: Divide the sum of the CPU maximum performance indicators of all containers corresponding to the target security module by the sum of the CPU real-time indicators of all containers corresponding to the target security module to obtain the CPU ratio values of all containers; The sum of the bandwidth maximum performance indicators of all containers corresponding to the target security module is divided by the sum of the bandwidth real-time indicators of all containers corresponding to the target security module to obtain the bandwidth ratio value of all containers; The sum of the maximum memory performance indicators of all containers corresponding to the target security module is divided by the sum of the memory real-time indicators of all containers corresponding to the target security module to obtain the memory ratio values of all containers.
2. The security service matching method of the security resource pool according to claim 1, characterized in that: The normalizing of the CPU ratio value, the bandwidth ratio value, and the memory ratio value respectively includes: Dividing the CPU ratio value by the sum of all ratio values to obtain a normalized CPU ratio value; Dividing the bandwidth ratio value by the sum of all ratio values to obtain a normalized bandwidth ratio value; The memory ratio value is divided by the sum of all ratio values to obtain a normalized memory ratio value.
3. The security resource pool security service matching method according to claim 1, characterized in that: The calculating of the load score of each container according to the normalized CPU ratio value, bandwidth ratio value, and memory ratio value specifically includes: The load score for each container is calculated according to the following formula: S x =W C *X C +W B *X B +W M *X M In the formula, S x represents the load score of the xth container, W C Indicates the normalized CPU ratio value, W B Represents the bandwidth ratio value after normalization, W M Indicates the normalized memory ratio value, X C represents the average CPU load of the xth container, X B represents the average bandwidth load of the xth container, X M represents the average memory load of the xth container, where W C , W B , W M The value range is 0 to 100%.
4. The security resource pool security service matching method according to claim 1, characterized in that: The obtaining, according to the load score, a list of remaining load scores of each container under the target security module specifically includes: Subtract the load score of each container from 1 to obtain the residual load score of each container; The remaining load score list is constructed according to the remaining load score of each container.
5. The security resource pool security service matching method according to claim 1, characterized in that: The calculating the real-time capacity value of each container according to the remaining load score of each container in the remaining load score list specifically includes: The real-time capability value of each container is calculated according to the following formula: In the formula, R(S x ) represents the real-time capability value of the xth container, S x Indicates the load score of the xth container, 1-S x represents the remaining load score of the x-th container, Represents the sum of the remaining load scores of all containers.
6. A security resource pool security service matching device, characterized in that: include: An indicator statistics module is used to periodically count the real-time performance indicators of each container corresponding to the target security module in the security resource pool, and the real-time performance indicators include: CPU real-time indicators, bandwidth real-time indicators and memory real-time indicators; A capability value acquisition module, connected to the indicator statistics module, for obtaining a real-time capability value of each container according to the real-time performance indicator of each container; A capability value sorting module, connected to the capability value acquisition module, is used to obtain the target security service requirements of the target platform for the target security module, and sort each container according to the real-time capability value according to the target security service requirements; A security service matching module, connected to the capability value sorting module, for selecting a container with the largest real-time capability value from the sorted containers to provide a target security service for the target platform; The capability value acquisition module specifically includes: A ratio value acquisition unit, used to calculate the CPU ratio value, bandwidth ratio value and memory ratio value of all containers according to the CPU real-time index, bandwidth real-time index and memory real-time index of each container; A normalization processing unit, used for normalizing the CPU ratio value, the bandwidth ratio value and the memory ratio value respectively; A load score unit, used to calculate the load score of each container according to the normalized CPU ratio value, bandwidth ratio value and memory ratio value; A score list unit, used to obtain a remaining load score list of each container under the target security module according to the load score; a capacity value calculation unit, configured to calculate a real-time capacity value of each container according to the remaining load score of each container in the remaining load score list; The ratio value acquisition unit specifically includes: A first calculation unit, configured to divide the sum of the CPU maximum performance indicators of all containers corresponding to the target security module by the sum of the CPU real-time indicators of all containers corresponding to the target security module to obtain CPU ratio values of all containers; A second calculation unit, configured to divide the sum of the bandwidth maximum performance indicators of all containers corresponding to the target security module by the sum of the bandwidth real-time indicators of all containers corresponding to the target security module to obtain bandwidth ratio values of all containers; The third calculation unit is used to divide the sum of the maximum memory performance indicators of all containers corresponding to the target security module by the sum of the memory real-time indicators of all containers corresponding to the target security module to obtain the memory ratio values of all containers.
7. A security resource pool security service matching device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to implement the security resource pool security service matching method according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the security service matching method for a security resource pool according to any one of claims 1 to 5 is implemented.
