CN-122019138-A - Service processing method, device, electronic equipment and storage medium
Abstract
The application relates to a service processing method, a device, electronic equipment and a storage medium, which are used for responding to a service request, determining the regulation priority of each service plug-in unit under the condition that the current load state meets the set regulation trigger condition, determining a target regulation strategy according to the current load state, executing regulation operation on a selected service plug-in unit according to the target regulation strategy, executing resource capacity expansion according to the load change condition of a service system, adjusting the target regulation strategy based on the system load state after the resource capacity expansion, and processing the service request by utilizing the adjusted system resource. By executing precise and intelligent regulation and control operation and collaborative optimization processing of resource capacity expansion on a service system, stable operation of core service is ensured, efficient utilization of resources and elastic adaptation of system resources are realized, and therefore triple targets of ensuring extremely user experience, maximizing resource utilization and reducing operation and maintenance complexity are synchronously achieved under high fluctuation and high real-time scenes of financial quotations and the like.
Inventors
- GUO GUOFENG
- CHEN JIARUI
Assignees
- 深圳华云信息系统科技股份有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20251229
Claims (10)
- 1. A method of service processing, the method comprising: responding to the service request, and detecting the current load state of the system; under the condition that the current load state meets the set regulation trigger condition, determining the regulation priority of each service plug-in based on the metadata of each service plug-in the service system, and determining a target regulation strategy according to the current load state; According to the target regulation strategy and the regulation priority of each service plug-in, executing regulation operation on the selected service plug-in, wherein the regulation operation is used for regulating the resource consumption of the service plug-in; after the regulation and control operation is executed, monitoring the load change condition of the service system, and executing resource capacity expansion according to the load change condition; and adjusting the target regulation strategy based on the system load state after the capacity expansion of the resources, and processing the service request by utilizing the adjusted system resources.
- 2. The method according to claim 1, wherein the method further comprises: Responding to a registration request of a service plugin, and acquiring metadata of the service plugin; Verifying the validity of the metadata, and detecting whether the metadata conflicts with the metadata registered in the service plug-in registry; And registering the service plugin and the metadata thereof to the service plugin registry under the condition that the metadata is confirmed to pass the validity verification and no conflict is detected.
- 3. The method of claim 1, wherein determining the regulatory priority of each service plugin based on metadata of each service plugin in a service system comprises: The following processing is executed for each service plug-in the service system: Acquiring service priority, resource consumption level and historical regulation effect data in metadata of the service plug-in; And carrying out weighted operation on the service priority, the resource consumption level and the historical regulation effect data based on the weight coefficient associated with the current load state to obtain the regulation priority of the service plug-in.
- 4. The method of claim 1, wherein said determining a target regulation strategy based on said current load state comprises: acquiring a system load index representing the current load state; comparing the system load index with a plurality of preset regulation and control grade thresholds; determining a target regulation and control grade according to a comparison result, wherein the target regulation and control grade corresponds to the target regulation and control strategy; wherein the target regulation level comprises at least: The first regulation and control level, its correspondent regulation and control policy is to carry out the function simplification or result multiplexing to the selected business plug-in components; The second degradation level, its corresponding regulation strategy is to execute the function to forbid or algorithm simplify to the selected business plug-in components; and a third degradation level corresponding to a regulation strategy of only reserving core service plugins and disabling a plurality of non-core service plugins.
- 5. The method of claim 1, wherein performing a tuning operation on the selected service plugin according to the target tuning policy and tuning priorities of the service plugins, comprises: Determining a target regulation priority range according to the target regulation strategy; And determining the service plug-in with the regulation priority falling within the target regulation priority range as a selected first service plug-in, and executing degradation regulation operation on the selected first service plug-in according to the target regulation strategy, wherein the degradation regulation operation is used for limiting the resource consumption of the service plug-in.
- 6. The method of claim 1, wherein the performing a tuning operation on the selected service plugin according to the target tuning policy and tuning priorities of the service plugins, further comprises: Determining a target regulation priority range according to the target regulation strategy; And determining the service plug-in with the regulation priority falling out of the target regulation priority range as a selected second service plug-in, and executing recovery regulation operation on the selected second service plug-in according to the target regulation strategy, wherein the recovery regulation operation is used for recovering the resource consumption of the service plug-in.
- 7. The method of claim 1, wherein performing resource expansion based on the load change condition comprises: Determining a target resource capacity expansion strategy according to the load change condition; executing resource capacity expansion according to the target resource capacity expansion strategy; Under the condition that the load change condition indicates that the system load state meets a first change trend, determining a set first resource capacity expansion strategy as the target resource capacity expansion strategy, wherein the first resource capacity expansion strategy indicates that a first-level resource pool is started; under the condition that the load change condition shows that the system load state meets a second change trend, determining a set second resource capacity expansion strategy as the target resource capacity expansion strategy, wherein the second resource capacity expansion strategy indicates that a second-level resource pool is started; Under the condition that the load change condition shows that the system load state meets a third change trend, determining a set third resource capacity expansion strategy as the target resource capacity expansion strategy, wherein the third resource capacity expansion strategy indicates that a third level resource pool is started; The capacity of the first-level resource pool is larger than that of the second-level resource pool, and the resource capacity of the second-level resource pool is larger than that of the third-level resource pool.
- 8. A service processing apparatus, the apparatus comprising: The load state detection module is used for responding to the service request and detecting the current load state of the system; the target regulation strategy determining module is used for determining the regulation priority of each service plug-in based on the metadata of each service plug-in the service system under the condition that the current load state meets the set regulation triggering condition, and determining a target regulation strategy according to the current load state; The regulation and control operation execution module is used for executing regulation and control operation on the selected service plug-ins according to the target regulation and control strategy and the regulation and control priority of each service plug-in, and the regulation and control operation is used for regulating and controlling the resource consumption of the service plug-ins; the resource capacity expansion module is used for monitoring the load change condition of the service system after the regulation and control operation is executed, and executing resource capacity expansion according to the load change condition; And the service request processing module is used for adjusting the target regulation strategy based on the system load state after the capacity expansion of the resources and processing the service request by utilizing the adjusted system resources.
- 9. An electronic device comprising a processor and a memory, the processor configured to execute a service processing program stored in the memory to implement the service processing method of any one of claims 1-7.
- 10. A storage medium, characterized in that the storage medium stores one or more programs, the one or more programs are executable by one or more processors to implement the service processing method of any of claims 1-7.
Description
Service processing method, device, electronic equipment and storage medium Technical Field The present application relates to the field of computer technologies, and in particular, to a service processing method, a device, an electronic apparatus, and a storage medium. Background With the development of the internet, a financial quotation system is used as a core infrastructure of financial transaction, massive data are required to be processed in real time and complex calculation is required, the existing financial quotation service system generally adopts a plug-in architecture to split functions, different service logics are packaged into independent service plug-ins, and therefore flexibility and expandability of the system are improved. However, in the prior art, when the load is too high, all the plug-ins are directly limited or degraded in a one-cut mode, so that the core service plug-ins and the non-core service plug-ins are regulated and controlled simultaneously, the normal operation of the core service is damaged, and serious service loss is caused. In addition, in the prior art, when the regulation plug-in is selected, experience judgment of operation and maintenance personnel is often relied on, misjudgment is easy to occur, and the system operation risk is further increased. Disclosure of Invention The application provides a service processing method, a device, electronic equipment and a storage medium, which are used for solving the technical problems that the operation of regulating and controlling a service plug-in the prior art is blindness, the operation and maintenance efficiency is low, the condition of load change cannot be dynamically adapted, the service stability is poor and the resource utilization rate is low. In a first aspect, the present application provides a service processing method, the method comprising: responding to the service request, and detecting the current load state of the system; under the condition that the current load state meets the set regulation trigger condition, determining the regulation priority of each service plug-in based on the metadata of each service plug-in the service system, and determining a target regulation strategy according to the current load state; According to the target regulation strategy and the regulation priority of each service plug-in, executing regulation operation on the selected service plug-in, wherein the regulation operation is used for regulating the resource consumption of the service plug-in; after the regulation and control operation is executed, monitoring the load change condition of the service system, and executing resource capacity expansion according to the load change condition; and adjusting the target regulation strategy based on the system load state after the capacity expansion of the resources, and processing the service request by utilizing the adjusted system resources. In a possible embodiment, the method further comprises: Responding to a registration request of a service plugin, and acquiring metadata of the service plugin; Verifying the validity of the metadata, and detecting whether the metadata conflicts with the metadata registered in the service plug-in registry; And registering the service plugin and the metadata thereof to the service plugin registry under the condition that the metadata is confirmed to pass the validity verification and no conflict is detected. In a possible implementation manner, the determining the regulation priority of each service plugin based on the metadata of each service plugin in the service system includes: The following processing is executed for each service plug-in the service system: Acquiring service priority, resource consumption level and historical regulation effect data in metadata of the service plug-in; And carrying out weighted operation on the service priority, the resource consumption level and the historical regulation effect data based on the weight coefficient associated with the current load state to obtain the regulation priority of the service plug-in. In a possible implementation manner, the determining a target regulation strategy according to the current load state includes: acquiring a system load index representing the current load state; comparing the system load index with a plurality of preset regulation and control grade thresholds; determining a target regulation and control grade according to a comparison result, wherein the target regulation and control grade corresponds to the target regulation and control strategy; wherein the target regulation level comprises at least: The first regulation and control level, its correspondent regulation and control policy is to carry out the function simplification or result multiplexing to the selected business plug-in components; The second degradation level, its corresponding regulation strategy is to execute the function to forbid or algorithm simplify to the selected business plug-in components;