A cryptographic service cluster scheduling management system, method, device and storage medium

Through the service scheduling gateway, the temporary password service cluster is managed, and the problems of insufficient utilization of password service resources and inaccurate expansion and capacity decisions are solved, efficient resource allocation and system stability are achieved, and request response capabilities are improved.

CN119299177BActive Publication Date: 2025-08-22GUANGDONG ELECTRONIC CERTIFICATION AUTHORITY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411417673.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-11
Publication Date
2025-08-22
Estimated Expiration
2044-10-11

AI Technical Summary

Technical Problem

In the prior art, password services are inadequately utilizing server resources, inaccurate scaling decisions, and fail to respond to requests when the service crashes, so they cannot efficiently manage password service clusters.

Method used

The service scheduling gateway is used to manage the temporary password service cluster, and through load balancing and failover, combined with P90, P95, P99 percentile analysis and EWMA algorithm to evaluate the load, dynamically adjust resource allocation, and build a multi-level fault tolerance mechanism.

Benefits of technology

Optimize resource utilization, improve system stability and request accessibility, achieve efficient expansion and capacity decisions, and ensure a balance between service performance and cost-effectiveness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119299177B_ABST
    Figure CN119299177B_ABST
Patent Text Reader

Abstract

The present invention discloses a cryptographic service cluster scheduling management system and method. The system includes a service scheduling gateway, a temporary cryptographic service cluster, and a temporary cryptographic service. The service scheduling gateway is deployed in a cluster manner and is used for creating, deleting, and checking the status of temporary cryptographic services, while forwarding requests from application clients to the corresponding cryptographic service cluster. The temporary cryptographic service cluster is composed of at least two temporary cryptographic services. The temporary cryptographic service is used to provide cryptographic computing capabilities for clients, including hash operations, symmetric key encryption and decryption operations, and asymmetric key cryptographic operations. When the cryptographic service cluster is unavailable, the service scheduling gateway can perform load balancing and failover, temporarily acting as a cryptographic service to perform cryptographic operations for the client. The present invention optimizes the overall resource utilization and efficiency of cryptographic services and promotes the rational allocation and use of resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of distributed system coordination services, and in particular to a cryptographic service cluster scheduling management system, method, device and storage medium. Background Art

[0002] Currently, in the field of distributed systems and coordination services, a fixed number of cryptographic services are mostly pre-deployed on the server, and then the decision on whether to scale up or down is made based on the memory and CPU conditions of the server during operation.

[0003] First, the disadvantage of this type of device is that after the cryptographic service is started, it will continue to occupy server resources regardless of whether the service has client calls. Second, once a request flows into a cryptographic service, if the service crashes before processing the request, the request will fail to respond. Finally, the scaling of the cryptographic service generally only relies on the CPU and memory indicators to decide whether it needs to be scaled up or down, and these two indicators are generally difficult to fully reflect whether the current service needs to be scaled up or down.

[0004] To this end, this application specifically proposes a cryptographic service cluster scheduling management system and method to solve the above technical problems. Summary of the Invention

[0005] The main purpose of the present invention is to provide a cryptographic service cluster scheduling management system and method to solve the technical problems raised in the background technology.

[0006] The present invention adopts the following technical solutions to solve the above technical problems:

[0007] A cryptographic service cluster scheduling and management system includes a service scheduling gateway, a temporary cryptographic service cluster, and a temporary cryptographic service, wherein:

[0008] The service dispatch gateway is deployed in a cluster and is primarily responsible for creating, deleting, and checking the status of temporary password services. It is also responsible for forwarding application client requests to the corresponding temporary password service cluster. Furthermore, the service dispatch gateway should also have service orchestration capabilities to manage and organize the clustering of temporary password services, ensuring that each temporary password service can work together efficiently.

[0009] A temporary password service cluster, consisting of at least two temporary password services;

[0010] Temporary password service is used to provide cryptographic computing capabilities to clients, including hash operations, symmetric key encryption and decryption operations, and asymmetric key cryptographic operations.

[0011] Preferably, the service scheduling gateway can perform load balancing and failover when the cryptographic service cluster is unavailable, temporarily acting as a cryptographic service to perform cryptographic operations for the client, and perform load balancing and failover.

[0012] A cryptographic service cluster scheduling management method performs scheduling management operations based on the cryptographic service cluster scheduling management system described above. The specific operation steps include:

[0013] Step S01: The client establishes a connection with the service scheduling gateway. The service scheduling gateway uses the client's IP as the key to create a temporary password service cluster and at least two temporary password services. After the creation is completed, the request path of the temporary password service cluster is stored as the value in the temporary cluster list of the service scheduling gateway.

[0014] Step S02: After the temporary password service is created, the client's key data is synchronized to the temporary password service;

[0015] Step S03: After the temporary password service cluster is created, preparations for interaction with the client are completed;

[0016] Step S04: The service scheduling gateway continuously monitors the status of each temporary password service in the temporary cluster list. If the client connection is not disconnected and it is found that a temporary password service cannot communicate normally, it will be offline and a new temporary password service will be created to replace it;

[0017] Step S05: The service scheduling gateway monitors the request response time of each temporary password service cluster in real time and calculates the P90, P95, and P99 percentiles respectively. By combining the P90, P95, and P99 percentile analysis, the EWMA algorithm, and the dynamic weight distribution of the total number of requests within the time range, the load of the current temporary password service cluster is evaluated;

[0018] Step S06: When the client disconnects from the service scheduling gateway, the service scheduling gateway will use the client's IP as the key to delete all temporary password services in the corresponding temporary password service cluster one by one. After the deletion is completed, the service scheduling gateway will also delete the records in the temporary cluster list with the client IP as the key (including the corresponding request path VALUE).

[0019] Preferably, the service scheduling gateway in step S03 synchronizes the key data in the temporary password service in the form of a snapshot to ensure that the temporary password service has the latest key data.

[0020] Preferably, in step S02, if a key change occurs during the operation of the temporary password service, the service scheduling gateway promptly updates the key change data in the form of incremental data to ensure that the temporary password service can respond in time and use the latest key.

[0021] Preferably, the processing operation of the business request is performed after the interaction with the client is completed in step S03, and the specific steps include:

[0022] Step S31: The client initiates a service request after successfully establishing a connection;

[0023] Step S32: After the request arrives at the service scheduling gateway, the request is temporarily recorded and forwarded to the temporary password service in the corresponding temporary password service cluster for processing;

[0024] Step S33: When the request is processed and responded normally, the service scheduling gateway deletes the request record;

[0025] Step S34: If it is found that the temporary password service processing the request crashes or the request times out, the service scheduling gateway forwards the request to other temporary password services in the temporary password service cluster for processing;

[0026] Step S35: If all temporary password services in the entire temporary password service cluster are found to be malfunctioning, causing the cluster to become unavailable, the service dispatch gateway triggers a downgrade strategy and temporarily assumes the role of a password service to process the current client's service request. The service dispatch gateway continues processing requests until the temporary password service cluster resumes normal functionality, at which point it switches the service request back to the original cluster for processing.

[0027] Preferably, the specific operation process of evaluating the load of the current temporary password service cluster in step S05 includes:

[0028] Step S51: The calculation formula of the preset EWMA algorithm is

[0029] EWMA(t)=λ*X(t)+(1-λ)*EWMA(t-1)

[0030] Where λ is the smoothing coefficient, which affects the weight of the previous data, (0, 1), X(t) is the observation value at time t, that is, the request response time per time unit in the temporary password service cluster, and EWMA(t-1) is the EWMA value at the previous moment;

[0031] Step S52: Considering that the amount of observation data may be insufficient when the temporary password service cluster first starts processing services, resulting in a large deviation, in order to correct the deviation, the EWMA value of P90, the EWMA value of P95, and the EWMA value of P99 are calculated according to the request response time, and are recorded as EWMA_P90, EWMA_P95, and EWMA_P99 respectively. At this time, the evaluation function expression is: performace = EWMA_P90 + EWMA_P95 + EWMA_P99;

[0032] Step S53: In addition, considering that there may be a large deviation in the total number of requests within the time range when calculating the evaluation value, a weighted average method is adopted to assign different weights to each percentile and change the weight according to the total number of requests r within the time range. The evaluation function expression is:

[0033]

[0034] Step S54: using the above evaluation function expression formula, when performace is greater than the upper threshold, it indicates that the current temporary password service cluster needs to perform capacity expansion operation;

[0035] Step S55: When performace is less than the lower limit threshold, it indicates that the current temporary password service cluster needs to perform a scaling operation.

[0036] In another aspect, the present invention further discloses a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor executes the steps of the above method.

[0037] On the other hand, the present invention further discloses a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the above method.

[0038] As can be seen from the above technical solutions, the present invention provides a cryptographic service cluster scheduling management system and method. Compared with the existing technology, the present invention has the following advantages:

[0039] 1. The present invention can fully utilize resources on clients with business needs, optimize the overall resource utilization and efficiency of cryptographic services, and promote the rational allocation and use of resources.

[0040] 2. The present invention builds a multi-level fault tolerance mechanism. Even when the entire temporary cryptographic service cluster fails to work properly, the service call gateway can temporarily act as a cryptographic service to provide computing power, thereby greatly improving the client request accessibility rate and system stability.

[0041] 3. The present invention can more accurately assess the load of the temporary cryptographic service cluster and whether there is a need for expansion or contraction, drive efficient and timely expansion or contraction decisions, effectively avoid resource surplus or shortage, and ensure the optimal balance between service performance and cost-effectiveness.

[0042] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present invention, nor is it intended to limit the scope of the present invention. Other features of the present invention will become easy to understand through the following description. Of course, it is not necessary to achieve all of the above-mentioned advantages simultaneously in order to implement any product of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] The accompanying drawings, which constitute part of this application, are intended to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are intended to explain the present invention and do not constitute an undue limitation of the present invention. In the accompanying drawings:

[0044] Figure 1 It is a system structure block diagram of the present invention;

[0045] Figure 2 Schematic diagram of the method of the present invention. DETAILED DESCRIPTION

[0046] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. In the absence of conflict, the embodiments in this application and the features in the embodiments can be combined with each other. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0047] In the embodiment, see Figures 1 to 2 .

[0048] like Figure 1 As shown, a cryptographic service cluster scheduling and management system proposed in an embodiment of the present invention includes a service scheduling gateway, a temporary cryptographic service cluster, and a temporary cryptographic service, wherein:

[0049] The service dispatch gateway is deployed in a cluster and is primarily responsible for creating, deleting, and checking the status of temporary password services. It is also responsible for forwarding application client requests to the corresponding password service cluster. Finally, it can perform load balancing and failover when the password service cluster is unavailable, acting as a temporary password service to perform cryptographic operations for clients, and perform load balancing and failover.

[0050] A temporary password service cluster, consisting of at least two temporary password services;

[0051] Temporary password service is used to provide cryptographic computing capabilities to clients, including hash operations, symmetric key encryption and decryption operations, and asymmetric key cryptographic operations.

[0052] At this time, by binding the life cycle of the temporary password service to the client session, resources can be fully utilized on clients with business needs, optimizing the overall resource utilization and efficiency of the password service, and promoting the rational allocation and use of resources.

[0053] On the other hand, Figure 2 As shown, the present invention also discloses a cryptographic service cluster scheduling management method, which performs scheduling management operations based on the above-mentioned cryptographic service cluster scheduling management system. The specific operation steps include:

[0054] Step S01: The client establishes a connection with the service scheduling gateway. The service scheduling gateway uses the client's IP as the key to create a temporary password service cluster and at least two temporary password services. After the creation is completed, the request path of the temporary password service cluster is stored as the value in the temporary cluster list of the service scheduling gateway.

[0055] Step S02: After the temporary password service is created, the key data is synchronized to each temporary password service;

[0056] At this time, after the temporary password service is started, the service scheduling gateway synchronizes the key data in the temporary password service in the form of a snapshot to ensure that the temporary password service has the latest key data;

[0057] In addition, if a key change occurs during the operation of the temporary password service, the service scheduling gateway will promptly update the key change data in the form of incremental data to ensure that the temporary password service can respond in time and use the latest key, thereby maintaining the security and reliability of cryptographic operations;

[0058] Step S03: After the temporary password service cluster is created, preparations for interaction with the client are completed, and then the service request processing operation is performed. The specific steps include:

[0059] Step S31: The client initiates a service request after successfully establishing a connection;

[0060] Step S32: After the request information arrives at the service scheduling gateway, the request is temporarily recorded and forwarded to a temporary password service in the corresponding temporary password service cluster for processing;

[0061] Step S33: When the request is processed and responded normally, the service scheduling gateway deletes the request record;

[0062] Step S34: If it is found that the temporary password service processing the request crashes or the request times out, the service scheduling gateway forwards the request to other temporary password services in the temporary password service cluster for processing until the request is processed;

[0063] Step S35: If all temporary password services in the entire temporary password service cluster are found to be malfunctioning, resulting in the cluster being unavailable, the service dispatch gateway will trigger a downgrade strategy and temporarily act as a password service to process the current client's service request. The service dispatch gateway will continue to process requests until the temporary password service cluster is restored to normal function, and then switch the service request back to the original cluster for processing;

[0064] Step S04: When the client connection is not disconnected, the service scheduling gateway continuously monitors the status of each temporary password service in the temporary cluster list, such as continuously monitoring the health status of the temporary password service cluster and continuously monitoring whether there is a need to expand or shrink the cluster during operation. If it is found that a temporary password service cannot communicate normally, it will be taken offline and a new temporary password service will be created to replace it;

[0065] Step S05: The service scheduling gateway monitors the request response time of each temporary password service cluster in real time and calculates the P90, P95, and P99 percentiles respectively. By combining the P90, P95, and P99 percentile analysis, the EWMA algorithm, and the dynamic weight distribution of the total number of requests within the time range, the load of the current temporary password service cluster is evaluated;

[0066] The specific operation process for evaluating the current load of the temporary password service cluster includes:

[0067] Step S51: The calculation formula of the preset EWMA algorithm is

[0068] EWMA(t)=λ*X(t)+(1-λ)*EWMA(t-1)

[0069] Where λ is the smoothing coefficient, which affects the weight of previous data and is usually in the range of (0, 1). X(t) is the observation value at time t, that is, the request response time per time unit in the temporary password service cluster. EWMA(t-1) is the EWMA value at the previous moment.

[0070] Step S52: Considering that the amount of observation data may be insufficient when the temporary password service cluster first starts processing services, resulting in a large deviation, in order to correct the deviation, the EWMA value of P90, the EWMA value of P95, and the EWMA value of P99 are calculated according to the request response time, and are recorded as EWMA_P90, EWMA_P95, and EWMA_P99 respectively. At this time, the evaluation function expression is: performace = EWMA_P90 + EWMA_P95 + EWMA_P99;

[0071] Step S53: In addition, considering that there may be a large deviation in the total number of requests within the time range when calculating the evaluation value, a weighted average method is adopted to assign different weights to each percentile and change the weight according to the total number of requests r within the time range. The evaluation function expression is:

[0072]

[0073] Step S54: using the above evaluation function expression formula, when performace is greater than the upper threshold, it indicates that the current temporary password service cluster needs to perform capacity expansion operations, such as adding temporary password services or increasing the number of CPU cores available to the current temporary password service cluster;

[0074] Step S55: When performace is less than the lower threshold, it indicates that the current temporary password service cluster needs to perform a scaling operation, such as reducing the temporary password service or reducing the number of CPU cores available to the current temporary password service cluster;

[0075] This evaluation method combines P90, P95, and P99 percentile analysis with the EWMA algorithm, and dynamically adjusts weights based on real-time request volume to perform load assessment. This can more accurately assess the load of the temporary password service cluster and whether there is a need for scaling, drive efficient and timely scaling decisions, effectively avoid resource surpluses or shortages, and ensure the optimal balance between service performance and cost-effectiveness.

[0076] Step S06: When the client disconnects from the service scheduling gateway, the service scheduling gateway will use the client's IP as the key to delete all temporary password services in the corresponding temporary password service cluster one by one. After the deletion is completed, the service scheduling gateway will also delete the record with the client's IP as the key in the temporary cluster list. The deletion record includes the corresponding request path VALUE;

[0077] At this time, you should cache for a while before executing the deletion command, because the hotspot client may connect multiple times in a short period of time.

[0078] In summary, this method temporarily stores client requests through the service scheduling gateway and ensures automatic intervention and processing when the temporary password service cluster is abnormal until the corresponding temporary password service completes the processing, building a multi-level fault tolerance mechanism. Even when the entire temporary password service cluster cannot work normally, the service call gateway can temporarily act as a password service to provide computing power, thereby greatly improving the client request reachability and system stability.

[0079] In a specific embodiment, in an actual environment A, the cluster processed a total of 60,000 cryptographic operation requests in the past hour. The request response time distribution is as follows:

[0080] Calculate the response time for different request ranges:

[0081] For 0 <r≤10000:

[0082] EWMA_P90=3.75

[0083] EWMA_P95=3.39

[0084] EWMA_P99=4.90

[0085] Weighted calculation of response time: 0.40*3.75+0.35*3.39+0.25*4.90=3.91 for 10,000 <r≤100000:

[0086] EWMA_P90=190

[0087] EWMA_P95=195

[0088] EWMA_P99=199

[0089] Weighted calculation of response time: 0.35*160+0.40*165+0.25*169=164.25

[0090] Within different request volume ranges, the cluster's response time showed a significant increase, and the expansion mechanism was triggered after the average response time rose to more than 150 milliseconds and lasted for 3 minutes.

[0091] After the expansion, we continued to observe and found

[0092] EWMA_P90=96.5

[0093] EWMA_P95=110

[0094] EWMA_P99=173

[0095] Weighted calculation of response time: 0.35*96.5+0.40*110+0.25*173=121.025

[0096] It can be seen that after triggering the expansion, the system performance can be effectively improved to cope with the current huge business volume.

[0097] In another aspect, the present invention further discloses a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor executes the steps of the above method.

[0098] On the other hand, the present invention further discloses a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the above method.

[0099] In another embodiment provided in the present application, a computer program product containing instructions is also provided. When the computer is run on a computer, the computer executes any of the cryptographic service cluster scheduling management methods in the above embodiments based on the constructed cryptographic service cluster scheduling management system.

[0100] It is understandable that the system provided by the embodiment of the present invention corresponds to the method provided by the embodiment of the present invention, and the explanation, examples and beneficial effects of the relevant contents can refer to the corresponding parts of the above method.

[0101] The embodiment of the present application further provides an electronic device, comprising a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus.

[0102] Memory for storing computer programs;

[0103] The processor is used to implement the above-mentioned cryptographic service cluster scheduling management method based on the constructed cryptographic service cluster scheduling management system when executing the program stored in the memory.

[0104] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus can be divided into an address bus, a data bus, a control bus, etc.

[0105] The communication interface is used for communication between the above electronic device and other devices.

[0106] The memory may include random access memory (RAM) or non-volatile memory (NVM), such as at least one disk storage. Alternatively, the memory may be at least one storage device located remote from the processor.

[0107] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0108] It should also be noted that electronic devices also include terminal devices, which can also be called terminals, user equipment (UE), mobile stations (MS), mobile terminals (MT), etc. Terminal devices can be mobile phones, smart TVs, wearable devices, tablet computers (Pads), computers with wireless transceiver functions, virtual reality (VR) terminal devices, augmented reality (AR) terminal devices, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical surgery, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, etc. The embodiments of the present application do not limit the specific technology and specific device form adopted by the terminal devices.

[0109] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website, computer, server or data center to another website, computer, server or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)).

[0110] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

[0111] In addition, it should be noted that if the embodiments of the present invention involve directional indications (such as up, down, left, right, front, back, etc.), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture. If the specific posture changes, the directional indications will also change accordingly.

[0112] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present invention, the descriptions of "first", "second", etc. are only for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of such features. In addition, the meaning of "and / or" appearing throughout the text includes three parallel schemes. Taking "A and / or B" as an example, it includes scheme A, or scheme B, or schemes in which A and B are satisfied at the same time. In addition, in the embodiments of the present invention, "multiple" refers to more than two. In addition, the technical solutions between the various embodiments can be combined with each other, but it must be based on the ability of ordinary technicians in this field to implement. When the combination of technical solutions is mutually contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

Claims

1. A cryptographic service cluster scheduling and management system, characterized in that: Includes service scheduling gateway, temporary password service cluster and temporary password service, including: The service scheduling gateway is deployed in a cluster mode and is mainly used for the creation, deletion and status check operations of temporary password services. The service scheduling gateway is used to forward the application client's request to the corresponding temporary password service cluster. The service scheduling gateway has a service orchestration function and is used to manage and organize the cluster formation of temporary password services to ensure that each temporary password service can work together efficiently. A temporary password service cluster, consisting of at least two temporary password services; Temporary password service, used to provide cryptographic computing capabilities to clients, including hashing, symmetric key encryption and decryption, and asymmetric key cryptographic operations; When it is found that all temporary password services in the entire temporary password service cluster cannot work properly, causing the cluster to be unavailable, the service scheduling gateway triggers the degradation strategy and temporarily acts as a password service to process the current client's business request.

2. The cryptographic service cluster scheduling and management system according to claim 1, wherein: When the cryptographic service cluster is unavailable, the service scheduling gateway can perform load balancing and failover, temporarily acting as a cryptographic service to perform cryptographic operations for the client, and perform load balancing and failover.

3. A cryptographic service cluster scheduling management method, characterized in that: The cryptographic service cluster scheduling and management system according to claim 2 performs scheduling and management operations, and the specific operation steps include: Step S01: The client establishes a connection with the service scheduling gateway. The service scheduling gateway uses the client's IP as the key to create a temporary password service cluster and at least two temporary password services. After the creation is completed, the request path of the temporary password service cluster is stored as the value in the temporary cluster list of the service scheduling gateway. Step S02: After the temporary password service is created, the client's key data is synchronized to the temporary password service; Step S03: After the temporary password service cluster is created, preparations for interaction with the client are completed; Step S04: The service scheduling gateway continuously monitors the status of each temporary password service in the temporary cluster list. If the client connection is not disconnected and it is found that a temporary password service cannot communicate normally, it will be offline and a new temporary password service will be created to replace it; Step S05: The service scheduling gateway monitors the request response time of each temporary password service cluster in real time and calculates the P90, P95, and P99 percentiles respectively. By combining the P90, P95, and P99 percentile analysis, the EWMA algorithm, and the dynamic weight distribution of the total number of requests within the time range, the load of the current temporary password service cluster is evaluated; Step S06: When the client disconnects from the service scheduling gateway, the service scheduling gateway will use the client's IP as the key to delete all temporary password services in the corresponding temporary password service cluster one by one. After the deletion is completed, the service scheduling gateway will also delete the records in the temporary cluster list with the client IP as the key (including the corresponding request path VALUE).

4. The cryptographic service cluster scheduling management method according to claim 3, wherein: The service scheduling gateway in step S03 synchronizes the key data in the temporary password service in the form of a snapshot to ensure that the temporary password service has the latest key data.

5. The cryptographic service cluster scheduling management method according to claim 3, wherein: In step S02, if a key change occurs during the operation of the temporary password service, the service scheduling gateway promptly updates the key change data in the form of incremental data to ensure that the temporary password service can respond immediately and use the latest key.

6. The cryptographic service cluster scheduling management method according to claim 3, wherein: After completing the interaction with the client in step S03, the business request processing operation is performed, and the specific steps include: Step S31: The client initiates a service request after successfully establishing a connection; Step S32: After the request arrives at the service scheduling gateway, the request is temporarily recorded and forwarded to the temporary password service in the corresponding temporary password service cluster for processing; Step S33: When the request is processed and responded normally, the service scheduling gateway deletes the request record; Step S34: If it is found that the temporary password service processing the request crashes or the request times out, the service scheduling gateway forwards the request to other temporary password services in the temporary password service cluster for processing; Step S35: When it is found that all temporary password services in the entire temporary password service cluster cannot work normally, causing the cluster to be unavailable, the service scheduling gateway will trigger the degradation strategy and temporarily act as a password service to process the current client's business request. The service scheduling gateway will continue to process the request until the temporary password service cluster resumes normal function, and then switch the business request back to the original cluster for processing.

7. The cryptographic service cluster scheduling management method according to claim 3, wherein: The specific operation process of evaluating the load of the current temporary password service cluster in step S05 includes: Step S51: The calculation formula of the preset EWMA algorithm is EWMA(t)=λ*X(t)+(1-λ)*EWMA(r-1) Where λ is the smoothing coefficient, which affects the weight of previous data and is usually in the range of (0, 1). X(t) is the observation value at time t, that is, the request response time per time unit in the temporary password service cluster. EWMA(t-1) is the EWMA value at the previous moment. Step S52: Considering that the amount of observation data may be insufficient when the temporary password service cluster first starts processing services, resulting in a large deviation, in order to correct the deviation, the EWMA value of P90, the EWMA value of P95, and the EWMA value of P99 are calculated according to the request response time, and are recorded as EWMA_P90, EWMA_P95, and EWMA_P99 respectively. At this time, the evaluation function expression is: preformace = EWMA_P90 + EWMA_P95 + EWMA_P99; Step S53: In addition, considering that there may be a large deviation in the total number of requests within the time range when calculating the evaluation value, a weighted average method is adopted to assign different weights to each percentile and change the weight according to the total number of requests r within the time range. The evaluation function expression is: Step S54: using the above evaluation function expression formula, when performace is greater than the upper threshold, it indicates that the current temporary password service cluster needs to perform capacity expansion operation; Step S55: When performace is less than the lower limit threshold, it indicates that the current temporary password service cluster needs to perform a scaling operation.

8. A computer-readable storage medium, characterized in that A computer program is stored, and when the computer program is executed by a processor, the processor is caused to perform the steps of the method according to any one of claims 3 to 7.

9. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the method according to any one of claims 3 to 7.

Citation Information

Patent Citations

  • Cloud password service method and system

    CN117527220A

  • Detecting attacks on data centers

    US20160036837A1