CN118282956A - System service processing method and device, storage medium and electronic equipment - Google Patents

System service processing method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN118282956A
CN118282956A CN202410379898.1A CN202410379898A CN118282956A CN 118282956 A CN118282956 A CN 118282956A CN 202410379898 A CN202410379898 A CN 202410379898A CN 118282956 A CN118282956 A CN 118282956A
Authority
CN
China
Prior art keywords
service
current limiting
target
current
processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410379898.1A
Other languages
Chinese (zh)
Inventor
郑海青
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202410379898.1A priority Critical patent/CN118282956A/en
Publication of CN118282956A publication Critical patent/CN118282956A/en
Pending legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application discloses a processing method and device of system service, a storage medium and electronic equipment, and relates to the technical field of artificial intelligence, the financial science and technology field or other related fields. The method comprises the following steps: when a service system receives a service request sent by a target object, acquiring current time information of the received service request; inputting current time information into a target prediction model for prediction processing, and outputting a current limiting threshold value for limiting the current of system services in a business system in a current time period, wherein the target prediction model is constructed according to a time sequence analysis algorithm and historical operation data of the business system; and determining a current limiting result of the target system service according to the current limiting threshold value. The application solves the problem of poor current limiting effect caused by current limiting of the system service in the business system according to the preset fixed threshold in the related art.

Description

System service processing method and device, storage medium and electronic equipment
Technical Field
The present application relates to the field of artificial intelligence, financial technology, or other related fields, and in particular, to a method and apparatus for processing a system service, a storage medium, and an electronic device.
Background
With the development of cloud computing and distributed technology, service stability and fault tolerance are gradually emphasized while the performance of an IT (Information Technology ) system is more and more powerful, and the concept and method of service current limitation are endless. In the related art, system services in a business system are generally limited based on a specified service limiting rule, for example, a concurrency threshold or a TPS (Transactions Per Second transaction number per second) threshold is used to limit the service by a fixed threshold, and a request exceeding the threshold is discarded or degraded, so that an excessive flow exceeding the system capacity can be avoided, and a system crash is caused.
However, the current limiting method in the related art has some drawbacks, for example, the fixed threshold current limiting is often not effective for the service with time and season fluctuation attribute. For example, a threshold setting that is too large may lose current limiting significance, and a threshold setting that is too small may result in insufficient system performance.
Aiming at the problem that the current limiting effect is poor because the current limiting is performed on the system service in the business system according to the preset fixed threshold in the related art, no effective solution is proposed at present.
Disclosure of Invention
The application mainly aims to provide a processing method and device of system service, a storage medium and electronic equipment, so as to solve the problem that in the related art, the current limiting effect is poor because the system service in a business system is limited according to a preset fixed threshold value.
In order to achieve the above object, according to one aspect of the present application, there is provided a processing method of a system service. The method comprises the following steps: when a business system receives a business request sent by a target object, acquiring current time information for receiving the business request, wherein the business request is used for requesting to process target system services in the business system; inputting the current time information into a target prediction model for prediction processing, and outputting a current limiting threshold value for limiting the current time period of the system service in the business system, wherein the current time period is a time period determined based on the current time information, and the target prediction model is a model constructed according to a time sequence analysis algorithm and historical operation data of the business system; and determining a current limiting result of the target system service according to the current limiting threshold, wherein the current limiting result is used for indicating whether current limiting processing is carried out on the target system service or not.
Further, inputting the current time information into a target prediction model for prediction processing, and outputting a current limiting threshold value for limiting the current time period to the system service in the business system comprises: inputting the current time information into a target prediction model for prediction processing, and outputting performance data required by the normal operation of the service system in the current time period; and determining the current limiting threshold for limiting the system service in the business system in the current time period according to the performance data required by the business system in normal operation in the current time period.
Further, the target prediction model is obtained by: acquiring N pieces of historical operation data of the service system, wherein each piece of historical operation data is operation data of the service system operated in each historical time period, and N is a positive integer; determining performance data of the service system when the service system operates in each historical time period based on N historical operation data of the service system, and constructing a training set for training a model based on the performance data of the service system when the service system operates in each historical time period; and learning and training an original prediction model by adopting the training set to obtain the target prediction model, wherein the original prediction model is a model constructed based on a time sequence analysis algorithm.
Further, determining a current limit result for the target system service according to the current limit threshold includes: determining a current limiting rule for limiting the system service in the business system in the current time period according to the current limiting threshold; and determining a current limiting result of the target system service based on the current limiting rule.
Further, determining, based on the throttling rules, a throttling result for the target system service includes: judging whether the number of running system services in the business system is smaller than the current limiting threshold value or not based on the current limiting rule; if the number of the running system services in the business system is not smaller than the current limiting threshold, determining that the current limiting result is to perform current limiting processing on the target system services; and if the number of the running system services in the business system is smaller than the current limiting threshold value, determining that the current limiting result is that the current limiting processing of the target system service is forbidden.
Further, after determining a current limit result for the target system service according to the current limit threshold, the method further includes: if the current limiting result is that the current limiting process is carried out on the target system service, intercepting the target system service, and returning prompt information for refusing to process the service request to the target object; if the current limiting result is that the current limiting processing is forbidden to be carried out on the target system service, processing the target system service to obtain a processing result, wherein the processing result is used for indicating whether the processing on the target system service is successful or not; and determining a response result to the service request based on the processing result, and returning the response result to the target object, wherein the response result is used for indicating whether to respond normally to the service request.
Further, determining a response result to the service request based on the processing result includes: if the processing result shows that the service processing of the target system is successful, determining that the response result is a normal response to the service request; and if the processing result indicates that the processing of the target system service fails, determining that the response result is an abnormal response to the service request.
In order to achieve the above object, according to another aspect of the present application, there is provided a processing apparatus of a system service. The device comprises: the first acquisition unit is used for acquiring current time information for receiving a service request sent by a target object when the service system receives the service request, wherein the service request is used for requesting to process target system services in the service system; the first processing unit is used for inputting the current time information into a target prediction model for prediction processing and outputting a current limiting threshold value for limiting the current time period of the system service in the business system, wherein the current time period is a time period determined based on the current time information, and the target prediction model is a model constructed according to a time sequence analysis algorithm and historical operation data of the business system; and the first determining unit is used for determining a current limiting result of the target system service according to the current limiting threshold, wherein the current limiting result is used for indicating whether current limiting processing is carried out on the target system service or not.
Further, the first processing unit includes: the first processing module is used for inputting the current time information into a target prediction model for prediction processing and outputting performance data required by the normal operation of the service system in the current time period; and the first determining module is used for determining the current limiting threshold value for limiting the current of the system service in the business system in the current time period according to the performance data required by the normal operation of the business system in the current time period.
Further, the target prediction model is obtained by: the second acquisition unit is used for acquiring N pieces of historical operation data of the service system, wherein each piece of historical operation data is operation data of the service system operated in each historical time period, and N is a positive integer; the second processing unit is used for determining performance data of the service system when the service system operates in each historical time period based on N pieces of historical operation data of the service system, and constructing a training set for training a model based on the performance data of the service system when the service system operates in each historical time period; the first training unit is used for learning and training an original prediction model by adopting the training set to obtain the target prediction model, wherein the original prediction model is a model constructed based on a time sequence analysis algorithm.
Further, the first determination unit includes: the second determining module is used for determining a current limiting rule for limiting the system service in the business system in the current time period according to the current limiting threshold; and the third determining module is used for determining a current limiting result of the target system service based on the current limiting rule.
Further, the third determining module includes: the first judging submodule is used for judging whether the number of running system services in the business system is smaller than the current limiting threshold value or not based on the current limiting rule; a first determining submodule, configured to determine that the current limiting result is to perform current limiting processing on the target system service if the number of system services running in the service system is not less than the current limiting threshold; and the second determining submodule is used for determining that the current limiting result is to prohibit the current limiting processing of the target system service if the number of the running system services in the business system is smaller than the current limiting threshold value.
Further, the apparatus further comprises: the third processing unit is used for intercepting the target system service and returning prompt information for refusing to process the service request to the target object if the current limiting result is that the current limiting process is performed on the target system service after the current limiting result of the target system service is determined according to the current limiting threshold; a fourth processing unit, configured to process the target system service to obtain a processing result if the current limiting result is that current limiting processing is prohibited for the target system service, where the processing result is used to indicate whether processing of the target system service is successful; and the fifth processing unit is used for determining a response result to the service request based on the processing result and returning the response result to the target object, wherein the response result is used for indicating whether the service request is normally responded or not.
Further, the fifth processing unit includes: a fourth determining module, configured to determine that the response result is a normal response to the service request if the processing result indicates that the processing of the target system service is successful; and a fifth determining module, configured to determine that the response result is an abnormal response to the service request if the processing result indicates that the processing of the service of the target system fails.
In order to achieve the above object, according to another aspect of the present application, there is provided a computer-readable storage medium storing a program, wherein the program performs the processing method of the system service of any one of the above.
In order to achieve the above object, according to another aspect of the present application, there is provided an electronic device including one or more processors and a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the processing method of the system service of any one of the above.
According to the application, the following steps are adopted: when a business system receives a business request sent by a target object, acquiring current time information of the received business request, wherein the business request is used for requesting to process target system services in the business system; inputting current time information into a target prediction model for prediction processing, and outputting a current limiting threshold value for limiting the current of system services in a business system in a current time period, wherein the current time period is a time period determined based on the current time information, and the target prediction model is a model constructed according to a time sequence analysis algorithm and historical operation data of the business system; and determining a current limiting result of the target system service according to the current limiting threshold, wherein the current limiting result is used for indicating whether to perform current limiting processing on the target system service, and the problem that current limiting effect is poor due to the fact that the current limiting is performed on the system service in the business system according to the preset fixed threshold in the related art is solved. Modeling and analyzing the operation performance data of the service system for a period of time through a time sequence analysis technology, and predicting the possible performance capacity required by the system for a period of time in the future; and then dynamically setting a current limiting threshold according to the predicted performance capacity, and then determining whether to perform current limiting processing on the system service in the business system according to the dynamically set current limiting threshold, so that the situation that the current limiting meaning is possibly lost due to overlarge preset fixed threshold or enough system performance cannot be provided due to overlarge fixed threshold, the current limiting threshold can be adaptively adjusted according to the scene model with fluctuation of the demand, intelligent current limiting is realized, and the current limiting effect on the system service in the business system is further improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application. In the drawings:
FIG. 1 is a flowchart of a method for processing a system service according to an embodiment of the present application;
FIG. 2 is a second flowchart of a method for processing a system service according to an embodiment of the present application;
FIG. 3 is a flowchart III of a method of processing system services provided in accordance with an embodiment of the present application;
FIG. 4 is a schematic diagram of a processing device for system services provided in accordance with an embodiment of the present application;
Fig. 5 is a schematic diagram of an electronic device according to an embodiment of the present application.
Detailed Description
It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other. The application will be described in detail below with reference to the drawings in connection with embodiments.
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe the embodiments of the application herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that, related information (including, but not limited to, user equipment information, user personal information, etc.) and data (including, but not limited to, data for presentation, analyzed data, etc.) related to the present disclosure are information and data authorized by a user or sufficiently authorized by each party. For example, an interface is provided between the system and the relevant user or institution, before acquiring the relevant information, the system needs to send an acquisition request to the user or institution through the interface, and acquire the relevant information after receiving the consent information fed back by the user or institution.
The present application will be described with reference to preferred implementation steps, and fig. 1 is a flowchart of a method for processing a system service provided according to an embodiment of the present application, as shown in fig. 1, where the method includes the following steps:
Step S101, when the business system receives a business request sent by a target object, current time information of the received business request is obtained, wherein the business request is used for requesting to process a target system service in the business system.
For example, the business system may be a banking system, the target object may be a user who uses the banking system (corresponding to the business system), and the business request may be a transfer request or a request for inquiring data sent from the user (corresponding to the target object) to the banking system (corresponding to the business system). For example, when the service request is a transfer request sent by a user (corresponding to the target object) to a banking system (corresponding to the service system), the target system service may be a transfer service; when the service request is a request for inquiring data sent by a user (corresponding to the target object) to a banking system (corresponding to the service system), the target system service may be an inquiring service.
Step S102, inputting current time information into a target prediction model for prediction processing, and outputting a current limiting threshold value for limiting the current of system services in the business system in a current time period, wherein the current time period is a time period determined based on the current time information, and the target prediction model is a model constructed according to a time sequence analysis algorithm and historical operation data of the business system.
For example, the target prediction model may be a threshold prediction model obtained by modeling and analyzing operation performance data (corresponding to the historical operation data) of a banking system (corresponding to the business system) for a past period of time by a time series analysis technique (corresponding to the time series analysis algorithm), and the threshold prediction model (corresponding to the target prediction model) may be used to predict a current limit threshold for limiting a service (corresponding to the system service) in the banking system (corresponding to the business system) for a certain period of time in the future.
For example, if the banking system (corresponding to the above-mentioned business system) receives a transfer request (corresponding to the above-mentioned business request) sent by the user (corresponding to the above-mentioned target object) at two pm hours of a certain day, the above-mentioned current time information may be two pm hours of a certain day, the two pm hours of a certain day (corresponding to the above-mentioned current time information) may be input as a threshold prediction model (corresponding to the above-mentioned target prediction model), and then the threshold prediction model (corresponding to the above-mentioned target prediction model) may output a predicted current limit threshold for limiting the system services in the banking system (corresponding to the above-mentioned business system) in a time period from one pm to two pm hours (corresponding to the above-mentioned current time period) or from two o 'clock to three o' clock of a certain day. In addition, if it is assumed that the current time information indicates that the current time is two afternoon of a certain day, the current time period may include at least two afternoon of the certain day, that is, the current time period may be a time period from one afternoon to two afternoon or from two to three afternoon of the certain day.
Step S103, determining a current limiting result of the target system service according to the current limiting threshold, wherein the current limiting result is used for indicating whether to perform current limiting processing on the target system service.
For example, it may be determined whether or not the transfer service (corresponding to the target system service) corresponding to the transfer request (corresponding to the service request) sent by the user (corresponding to the target object) to the banking system (corresponding to the service system) needs to be limited according to the current limit threshold. For example, the current limit threshold is 10, and if the banking system (corresponding to the above-mentioned business system) has received 10 requests before receiving the transfer request (corresponding to the above-mentioned business request) sent by the user (corresponding to the above-mentioned target object), that is, the transfer request (corresponding to the above-mentioned business request) sent by the user (corresponding to the above-mentioned target object) to the banking system (corresponding to the above-mentioned business system) is the 11 th request received by the banking system (corresponding to the above-mentioned business system), it means that the transfer request (corresponding to the above-mentioned business request) is a request exceeding the current limit threshold, and the transfer service (corresponding to the above-mentioned target system service) corresponding to the transfer request (corresponding to the above-mentioned business request) may be limited; if the banking system (corresponding to the above-mentioned business system) receives only 5 requests before receiving the transfer request (corresponding to the above-mentioned business request) sent by the user (corresponding to the above-mentioned target object), that is, the transfer request (corresponding to the above-mentioned business request) sent by the user (corresponding to the above-mentioned target object) to the banking system (corresponding to the above-mentioned business system) is the 6 th request received by the banking system (corresponding to the above-mentioned business system), it means that the transfer request (corresponding to the above-mentioned business request) is a request not exceeding the restriction threshold, and it is not necessary to restrict the transfer service (corresponding to the above-mentioned target system service) corresponding to the transfer request (corresponding to the above-mentioned business request).
It should be noted that the processing method of the system service provided by the embodiment of the application can be applied to financial scenes.
Through the steps S101 to S103, modeling analysis is performed on the operation performance data of the service system in the past period of time through a time sequence analysis technology, and possible performance capacities required by the system in the future period of time are predicted; and then dynamically setting a current limiting threshold according to the predicted performance capacity, and then determining whether to perform current limiting processing on the system service in the business system according to the dynamically set current limiting threshold, so that the situation that the current limiting meaning is possibly lost due to overlarge preset fixed threshold or enough system performance cannot be provided due to overlarge fixed threshold, the current limiting threshold can be adaptively adjusted according to the scene model with fluctuation of the demand, intelligent current limiting is realized, and the current limiting effect on the system service in the business system is further improved.
Fig. 2 is a flowchart of a second method for processing a system service according to an embodiment of the present application, as shown in fig. 2, in the method for processing a system service according to an embodiment of the present application, current time information is input into a target prediction model to perform prediction processing, and outputting a current limit threshold for limiting a current limit of a system service in a business system in a current time period includes:
Step S201, inputting current time information into a target prediction model for prediction processing, and outputting performance data required by normal operation of a service system in a current time period;
Step S202, determining a current limit threshold for limiting the system service in the business system in the current time period according to the performance data required by the business system in normal operation in the current time period.
For example, if the banking system (corresponding to the above-mentioned banking system) receives a transfer request (corresponding to the above-mentioned target object) sent by the user (corresponding to the above-mentioned target object) at two pm hours of a certain day, the above-mentioned current time information may be two pm hours of a certain day, the two pm hours of a certain day (corresponding to the above-mentioned current time information) may be input as a threshold prediction model (corresponding to the above-mentioned target prediction model), and then the threshold prediction model (corresponding to the above-mentioned target prediction model) may output a predicted possible performance capacity (performance data required when the banking system (corresponding to the above-mentioned banking system) is operating normally in a period of one pm to two pm hours (corresponding to the above-mentioned current period) or two to three pm hours (corresponding to the above-mentioned current period) of a certain day; the threshold prediction model (corresponding to the target prediction model) may then dynamically set a current limit threshold according to the predicted performance capacity (corresponding to the performance data required by the service system in normal operation), and the current limit threshold dynamically set by the threshold prediction model (corresponding to the target prediction model) may be a current limit threshold for limiting current to system services in the banking system (corresponding to the service system) for a predicted time period of one to two o 'clock afternoon (corresponding to the current time period) or two to three o' clock (corresponding to the current time period) of the day.
In summary, the current limiting threshold value of the banking system for limiting the system service in the banking system in a future period of time can be rapidly and accurately predicted by using the generated threshold value prediction model.
Optionally, in the method for processing a system service provided by the embodiment of the present application, the target prediction model is obtained by: acquiring N pieces of historical operation data of a service system, wherein each piece of historical operation data is operation data of the service system operated in each historical time period, and N is a positive integer; based on N pieces of historical operation data of the service system, determining performance data of the service system when the service system operates in each historical time period, and constructing a training set for training a model based on the performance data of the service system when the service system operates in each historical time period; and learning and training the original prediction model by adopting a training set to obtain a target prediction model, wherein the original prediction model is a model constructed based on a time sequence analysis algorithm.
For example, the threshold prediction model (corresponding to the target prediction model described above) may be generated based on a time series analysis algorithm and based on an existing record of operation of the service (corresponding to the business system described above). Specifically, the operation performance data (corresponding to the historical operation data) of the banking system (corresponding to the above-mentioned business system) in the past period (corresponding to the above-mentioned historical period) may be acquired first, an original threshold prediction model (corresponding to the above-mentioned original prediction model) may be constructed based on a time sequence analysis algorithm, and then the acquired operation performance data (corresponding to the above-mentioned historical operation data) of the banking system (corresponding to the above-mentioned business system) in the past period (corresponding to the above-mentioned historical period) may be used to perform learning training on the constructed original threshold prediction model (corresponding to the above-mentioned original prediction model) and obtain a trained threshold prediction model (corresponding to the above-mentioned target prediction model).
Through the scheme, the threshold prediction model can be conveniently generated according to the time sequence analysis algorithm.
Optionally, in the method for processing a system service provided by the embodiment of the present application, determining, according to a current limit threshold, a current limit result for a target system service includes: determining a current limiting rule for limiting the system service in the business system in the current time period according to the current limiting threshold; based on the throttling rules, a throttling result for the target system service is determined.
For example, according to the current limit threshold value for limiting the system service in the banking system (corresponding to the above-mentioned business system) in the time period from one afternoon to two o ' clock (corresponding to the above-mentioned current time period) or from two o ' clock to three o ' clock (corresponding to the above-mentioned current time period) predicted by the threshold value prediction model (corresponding to the above-mentioned target prediction model), the banking system (corresponding to the above-mentioned business system) may be configured on the service (corresponding to the above-mentioned business system) node where the current limit is required, and then whether the transfer of the banking request (corresponding to the above-mentioned target) to the banking system (corresponding to the above-mentioned target system) is required to be performed for the current limit rule for limiting the system service in the system (corresponding to the above-mentioned business system) in the time period from one o ' clock to two o ' clock (corresponding to the above-mentioned current time period) or from two o ' clock to three o ' clock (corresponding to the above-mentioned current time period) of the day may be determined according to the configured current limit rule.
Through the scheme, the current limiting rule can be rapidly and accurately configured.
Optionally, in the method for processing a system service provided by the embodiment of the present application, determining, based on a current limiting rule, a current limiting result for a target system service includes: judging whether the number of running system services in the business system is smaller than a current limiting threshold value or not based on a current limiting rule; if the number of the running system services in the business system is not less than the current limiting threshold, determining that the current limiting result is to perform current limiting processing on the target system services; if the number of the running system services in the business system is smaller than the current limiting threshold value, determining that the current limiting result is that the current limiting processing of the target system service is forbidden.
For example, the restriction threshold in the restriction rule may be set to 10, and if the banking system (corresponding to the above-mentioned business system) has received 10 requests before receiving the transfer request (corresponding to the above-mentioned business request) sent by the user (corresponding to the above-mentioned target object), that is, the transfer request (corresponding to the above-mentioned business request) sent by the user (corresponding to the above-mentioned target object) to the banking system (corresponding to the above-mentioned business system) is the 11 th request received by the banking system (corresponding to the above-mentioned business system), that is, the number of system services being operated in the banking system (corresponding to the above-mentioned business system) is 10, and the number of system services being operated in the banking system (corresponding to the above-mentioned business system) is equal to the restriction threshold 10, it means that the transfer request (corresponding to the above-mentioned business request) is a request exceeding the restriction threshold, and the transfer request (corresponding to the above-mentioned target system service) may be restricted; if the banking system (corresponding to the above-mentioned business system) receives only 5 requests before receiving the transfer request (corresponding to the above-mentioned business request) sent by the user (corresponding to the above-mentioned target object), that is, the transfer request (corresponding to the above-mentioned business request) sent by the user (corresponding to the above-mentioned target object) to the banking system (corresponding to the above-mentioned business system) is the 6 th request received by the banking system (corresponding to the above-mentioned business system), that is, the number of system services running in the banking system (corresponding to the above-mentioned business system) is 6, and the number of system services running in the banking system (corresponding to the above-mentioned business system) is less than the restriction threshold 10, it means that the transfer request (corresponding to the above-mentioned business request) is a request which does not exceed the restriction threshold, and it is not necessary to restrict the transfer service (corresponding to the above-mentioned target system service) corresponding to the request (corresponding to the above-mentioned business request).
Through the scheme, the service in the service system can be rapidly and accurately subjected to the flow limiting treatment according to the flow limiting rule, so that excessive flow can be prevented from exceeding the system capacity, and the stability of the service system is further ensured.
Optionally, in the method for processing a system service provided by the embodiment of the present application, after determining a current limiting result for a target system service according to a current limiting threshold, the method further includes: if the current limiting result is that the current limiting process is carried out on the target system service, the target system service is intercepted, and prompt information for refusing to process the service request is returned to the target object; if the current limiting result is that the current limiting processing is forbidden to be carried out on the target system service, the target system service is processed to obtain a processing result, wherein the processing result is used for indicating whether the processing on the target system service is successful or not; and determining a response result to the service request based on the processing result, and returning the response result to the target object, wherein the response result is used for indicating whether the service request is normally responded or not.
For example, a current limiting module is introduced into a node needing service current limiting, a prediction model (corresponding to the target prediction model) is called to generate a current limiting threshold, and whether a transfer request (corresponding to the service request) sent by a user (corresponding to the target object) to a banking system (corresponding to the service system) exceeds the current limiting threshold is judged according to the generated current limiting threshold; if the transfer request (corresponding to the service request) sent by the user (corresponding to the target object) to the banking system (corresponding to the service system) exceeds the current limit threshold, the transfer service (corresponding to the target system service) corresponding to the transfer request (corresponding to the service request) can be intercepted, and the transfer request (corresponding to the service request) exceeding the current limit threshold can be refused or directly discarded; conversely, if the transfer request (corresponding to the service request) sent by the user (corresponding to the target object) to the banking system (corresponding to the service system) does not exceed the current limit threshold, the transfer service (corresponding to the target system service) corresponding to the transfer request (corresponding to the service request) can be normally processed, the transfer request (corresponding to the service request) is responded, a response result is obtained, and then the response result of the transfer request (corresponding to the service request) is sent to the user (corresponding to the target object).
By the scheme, the response result to the service request can be rapidly and accurately determined.
Optionally, in the method for processing a system service provided by the embodiment of the present application, determining, based on a processing result, a response result to a service request includes: if the processing result shows that the service processing of the target system is successful, determining that the response result is a normal response to the service request; if the processing result indicates that the processing of the service of the target system fails, determining that the response result is abnormal response to the service request.
For example, if the transfer service (corresponding to the above-described target system service) corresponding to the transfer request (corresponding to the above-described target object) transmitted to the user (corresponding to the above-described target object) by the banking system (corresponding to the above-described target system) is successfully processed, the response result of the normal response of the transfer request (corresponding to the above-described target object) may be transmitted to the user (corresponding to the above-described target object); if the transfer service (corresponding to the target system service) corresponding to the transfer request (corresponding to the target object) transmitted to the user (corresponding to the target object) through the banking system (corresponding to the target object) fails to be processed, a response result of the transfer request (corresponding to the target object) abnormal response may be transmitted to the user (corresponding to the target object).
By the scheme, the response result to the service request can be quickly and accurately sent to the user.
In this embodiment, a time-series analysis technique is provided to predict the required performance of the system, so as to dynamically set the current limiting threshold, thereby realizing adaptive intelligent current limiting.
In addition, the purpose of this embodiment is to provide a method for predicting the performance required by a system based on time series analysis, and dynamically set a current limiting threshold according to the predicted performance, so as to realize adaptive intelligent current limiting. And the specific process can be as follows:
(1) In this embodiment, modeling analysis is performed on the running performance data of the system for a period of time in the past through a time series analysis technology, and possible performance capacities required by the system for a period of time in the future are predicted;
(2) According to the embodiment, the current limiting threshold value is dynamically set according to the predicted performance capacity, so that intelligent current limiting is realized.
Moreover, in this embodiment, the concept of a resource may be used to refer to a service that may be current limited, and a resource may be identified by a globally unique resource name.
In addition, in this embodiment, the time series analysis algorithm may be used as a quantitative prediction method, and based on the existing operation records of the system, a mathematical model is established that reflects the dynamic dependency relationship contained in the sequence. The core of the algorithm (time sequence analysis algorithm) is to model the resource behavior based on the historical operation data of the system, namely, a mapping from time to TPS (Transactions Per Second, transaction number per second) is established, and prediction is carried out according to the mapping from the TPS (Transactions Per Second, transaction number per second) of the resource at a certain time in the future, so that the resource is used as the basis for generating the current limiting rule. And TPS (Transactions Per Second transactions per second) in this embodiment may be a streaming TPS threshold, according to which the entire service may be streaming.
Also, in this embodiment, the throttling rules define the threshold for resources to be throttled.
In addition, in this embodiment, the downgrade module may be an SDK (Software Development Kit ) based on Java (a programming language) bytecode technology, after the application uses the module, the module will intercept normal running of the application, call the prediction model (corresponding to the target prediction model in the foregoing embodiment) to generate a dynamic current limit threshold, exceed the rule configuration threshold, and the request will be directly discarded or rejected, otherwise, the normal response is requested.
For example, fig. 3 is a flowchart III of a method for processing a system service according to an embodiment of the present application, and as shown in fig. 3, the method for processing a system service according to an embodiment of the present application includes the following steps:
(1) Generating a predictive model
According to the time series analysis algorithm, a threshold prediction model (corresponding to the target prediction model in the foregoing embodiment) is generated based on the running record existing in the service.
(2) Load current limiting rule
The current limiting rule is configured on the node needing current limiting, and a threshold prediction model (corresponding to the target prediction model in the previous embodiment) is loaded.
(3) Intercepting services for throttling
Introducing a current limiting module (corresponding to the degradation module in the previous embodiment) at a node needing service current limiting, calling a prediction model (corresponding to the target prediction model in the previous embodiment) to generate a current limiting threshold, and intercepting according to the generated current limiting threshold; and requests exceeding the current limit threshold are denied or discarded directly.
Therefore, in this embodiment, by limiting the service, the guarantee work for the distributed service important node can be realized. In addition, the current limiting threshold value of the scene model with fluctuation of the demand can be adjusted in a self-adaptive mode, and intelligent current limiting is achieved.
In summary, according to the processing method of the system service provided by the embodiment of the application, when the business system receives the business request sent by the target object, the current time information of the received business request is obtained, wherein the business request is used for requesting to process the target system service in the business system; inputting current time information into a target prediction model for prediction processing, and outputting a current limiting threshold value for limiting the current of system services in a business system in a current time period, wherein the current time period is a time period determined based on the current time information, and the target prediction model is a model constructed according to a time sequence analysis algorithm and historical operation data of the business system; and determining a current limiting result of the target system service according to the current limiting threshold, wherein the current limiting result is used for indicating whether to perform current limiting processing on the target system service, and the problem that current limiting effect is poor due to the fact that the current limiting is performed on the system service in the business system according to the preset fixed threshold in the related art is solved. Modeling and analyzing the operation performance data of the service system for a period of time through a time sequence analysis technology, and predicting the possible performance capacity required by the system for a period of time in the future; and then dynamically setting a current limiting threshold according to the predicted performance capacity, and then determining whether to perform current limiting processing on the system service in the business system according to the dynamically set current limiting threshold, so that the situation that the current limiting meaning is possibly lost due to overlarge preset fixed threshold or enough system performance cannot be provided due to overlarge fixed threshold, the current limiting threshold can be adaptively adjusted according to the scene model with fluctuation of the demand, intelligent current limiting is realized, and the current limiting effect on the system service in the business system is further improved.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is illustrated in the flowcharts, in some cases the steps illustrated or described may be performed in an order other than that illustrated herein.
The embodiment of the application also provides a processing device of the system service, and the processing device of the system service in the embodiment of the application can be used for executing the processing method for the system service. The following describes a processing device for system services provided by an embodiment of the present application.
Fig. 4 is a schematic diagram of a processing device for system services according to an embodiment of the present application. As shown in fig. 4, the apparatus includes: a first acquisition unit 401, a first processing unit 402, and a first determination unit 403.
Specifically, the first obtaining unit 401 is configured to obtain, when the service system receives a service request sent by a target object, current time information of the received service request, where the service request is used to request to process a target system service in the service system;
The first processing unit 402 is configured to input current time information into a target prediction model for prediction processing, and output a current limiting threshold for limiting a current flow of system services in the service system in a current time period, where the current time period is a time period determined based on the current time information, and the target prediction model is a model constructed according to a time sequence analysis algorithm and historical operation data of the service system;
The first determining unit 403 is configured to determine a current limiting result of the target system service according to the current limiting threshold, where the current limiting result is used to indicate whether to perform a current limiting process on the target system service.
In summary, in the processing device for system service provided by the embodiment of the present application, when a service system receives a service request sent by a target object, the first obtaining unit 401 obtains current time information of the received service request, where the service request is used to request to process the target system service in the service system; the first processing unit 402 inputs current time information into a target prediction model for prediction processing, and outputs a current limiting threshold value for limiting current to system services in the service system in a current time period, wherein the current time period is a time period determined based on the current time information, and the target prediction model is a model constructed according to a time sequence analysis algorithm and historical operation data of the service system; the first determining unit 403 determines a current limiting result of the target system service according to the current limiting threshold, where the current limiting result is used to indicate whether to perform current limiting processing on the target system service, so as to solve the problem that in the related art, current limiting is performed on the system service in the service system according to the preset fixed threshold, resulting in poor current limiting effect. Modeling and analyzing the operation performance data of the service system for a period of time through a time sequence analysis technology, and predicting the possible performance capacity required by the system for a period of time in the future; and then dynamically setting a current limiting threshold according to the predicted performance capacity, and then determining whether to perform current limiting processing on the system service in the business system according to the dynamically set current limiting threshold, so that the situation that the current limiting meaning is possibly lost due to overlarge preset fixed threshold or enough system performance cannot be provided due to overlarge fixed threshold, the current limiting threshold can be adaptively adjusted according to the scene model with fluctuation of the demand, intelligent current limiting is realized, and the current limiting effect on the system service in the business system is further improved.
Optionally, in the processing device for system service provided by the embodiment of the present application, the first processing unit includes: the first processing module is used for inputting the current time information into the target prediction model to perform prediction processing and outputting performance data required by normal operation of the service system in the current time period; the first determining module is used for determining a current limiting threshold value for limiting the current of the system service in the business system in the current time period according to the performance data required by the normal operation of the business system in the current time period.
Optionally, in the processing device for system service provided by the embodiment of the present application, the target prediction model is obtained by: the second acquisition unit is used for acquiring N pieces of historical operation data of the service system, wherein each piece of historical operation data is operation data of the service system operated in each historical time period, and N is a positive integer; the second processing unit is used for determining performance data of the service system when the service system operates in each historical time period based on N historical operation data of the service system, and constructing a training set for training a model based on the performance data of the service system when the service system operates in each historical time period; the first training unit is used for learning and training an original prediction model by adopting a training set to obtain a target prediction model, wherein the original prediction model is a model constructed based on a time sequence analysis algorithm.
Optionally, in the processing device for system service provided by the embodiment of the present application, the first determining unit includes: the second determining module is used for determining a current limiting rule for limiting the current of the system service in the business system in the current time period according to the current limiting threshold; and the third determining module is used for determining the current limiting result of the service of the target system based on the current limiting rule.
Optionally, in the processing device for system service provided by the embodiment of the present application, the third determining module includes: the first judging submodule is used for judging whether the number of running system services in the business system is smaller than a current limiting threshold value or not based on the current limiting rule; the first determining submodule is used for determining that the current limiting result is to carry out current limiting processing on the target system service if the number of the running system services in the business system is not smaller than the current limiting threshold value; and the second determining submodule is used for determining that the current limiting result is to prohibit the current limiting processing of the target system service if the number of the running system services in the business system is smaller than the current limiting threshold value.
Optionally, in the processing device for system service provided by the embodiment of the present application, the device further includes: the third processing unit is used for intercepting the target system service and returning prompt information for refusing to process the service request to the target object if the current limiting result is that the target system service is subjected to current limiting processing after the current limiting result of the target system service is determined according to the current limiting threshold value; the fourth processing unit is used for processing the target system service to obtain a processing result if the current limiting result is that the current limiting processing is forbidden for the target system service, wherein the processing result is used for indicating whether the processing for the target system service is successful or not; and the fifth processing unit is used for determining a response result to the service request based on the processing result and returning the response result to the target object, wherein the response result is used for indicating whether the service request is normally responded or not.
Optionally, in the processing device for system service provided by the embodiment of the present application, the fifth processing unit includes: a fourth determining module, configured to determine that the response result is a normal response to the service request if the processing result indicates that the processing of the service to the target system is successful; and the fifth determining module is used for determining that the response result is abnormal response to the service request if the processing result indicates that the processing of the service of the target system fails.
The processing device of the system service includes a processor and a memory, where the first acquisition unit 401, the first processing unit 402, the first determination unit 403, and the like are stored as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel can be set with one or more than one, and the effect of limiting the system service in the business system is improved by adjusting the kernel parameters.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
The embodiment of the invention provides a computer readable storage medium, on which a program is stored, which when executed by a processor, implements a method for processing a system service.
The embodiment of the invention provides a processor which is used for running a program, wherein the program runs to execute a processing method of the system service.
As shown in fig. 5, an embodiment of the present invention provides an electronic device, where the device includes a processor, a memory, and a program stored in the memory and executable on the processor, and when the processor executes the program, the following steps are implemented: when a business system receives a business request sent by a target object, acquiring current time information for receiving the business request, wherein the business request is used for requesting to process target system services in the business system; inputting the current time information into a target prediction model for prediction processing, and outputting a current limiting threshold value for limiting the current time period of the system service in the business system, wherein the current time period is a time period determined based on the current time information, and the target prediction model is a model constructed according to a time sequence analysis algorithm and historical operation data of the business system; and determining a current limiting result of the target system service according to the current limiting threshold, wherein the current limiting result is used for indicating whether current limiting processing is carried out on the target system service or not.
The processor also realizes the following steps when executing the program: inputting the current time information into a target prediction model for prediction processing, and outputting a current limiting threshold value for limiting the current time period of the system service in the business system comprises the following steps: inputting the current time information into a target prediction model for prediction processing, and outputting performance data required by the normal operation of the service system in the current time period; and determining the current limiting threshold for limiting the system service in the business system in the current time period according to the performance data required by the business system in normal operation in the current time period.
The processor also realizes the following steps when executing the program: the target prediction model is obtained by the following steps: acquiring N pieces of historical operation data of the service system, wherein each piece of historical operation data is operation data of the service system operated in each historical time period, and N is a positive integer; determining performance data of the service system when the service system operates in each historical time period based on N historical operation data of the service system, and constructing a training set for training a model based on the performance data of the service system when the service system operates in each historical time period; and learning and training an original prediction model by adopting the training set to obtain the target prediction model, wherein the original prediction model is a model constructed based on a time sequence analysis algorithm.
The processor also realizes the following steps when executing the program: determining a current limit result for the target system service according to the current limit threshold comprises: determining a current limiting rule for limiting the system service in the business system in the current time period according to the current limiting threshold; and determining a current limiting result of the target system service based on the current limiting rule.
The processor also realizes the following steps when executing the program: determining, based on the throttling rules, a throttling result for the target system service includes: judging whether the number of running system services in the business system is smaller than the current limiting threshold value or not based on the current limiting rule; if the number of the running system services in the business system is not smaller than the current limiting threshold, determining that the current limiting result is to perform current limiting processing on the target system services; and if the number of the running system services in the business system is smaller than the current limiting threshold value, determining that the current limiting result is that the current limiting processing of the target system service is forbidden.
The processor also realizes the following steps when executing the program: after determining a current limit result for the target system service according to the current limit threshold, the method further comprises: if the current limiting result is that the current limiting process is carried out on the target system service, intercepting the target system service, and returning prompt information for refusing to process the service request to the target object; if the current limiting result is that the current limiting processing is forbidden to be carried out on the target system service, processing the target system service to obtain a processing result, wherein the processing result is used for indicating whether the processing on the target system service is successful or not; and determining a response result to the service request based on the processing result, and returning the response result to the target object, wherein the response result is used for indicating whether to respond normally to the service request.
The processor also realizes the following steps when executing the program: based on the processing result, determining a response result to the service request includes: if the processing result shows that the service processing of the target system is successful, determining that the response result is a normal response to the service request; and if the processing result indicates that the processing of the target system service fails, determining that the response result is an abnormal response to the service request.
The device herein may be a server, PC, PAD, cell phone, etc.
The application also provides a computer program product adapted to perform, when executed on a data processing device, a program initialized with the method steps of: when a business system receives a business request sent by a target object, acquiring current time information for receiving the business request, wherein the business request is used for requesting to process target system services in the business system; inputting the current time information into a target prediction model for prediction processing, and outputting a current limiting threshold value for limiting the current time period of the system service in the business system, wherein the current time period is a time period determined based on the current time information, and the target prediction model is a model constructed according to a time sequence analysis algorithm and historical operation data of the business system; and determining a current limiting result of the target system service according to the current limiting threshold, wherein the current limiting result is used for indicating whether current limiting processing is carried out on the target system service or not.
When executed on a data processing device, is further adapted to carry out a program initialized with the method steps of: inputting the current time information into a target prediction model for prediction processing, and outputting a current limiting threshold value for limiting the current time period of the system service in the business system comprises the following steps: inputting the current time information into a target prediction model for prediction processing, and outputting performance data required by the normal operation of the service system in the current time period; and determining the current limiting threshold for limiting the system service in the business system in the current time period according to the performance data required by the business system in normal operation in the current time period.
When executed on a data processing device, is further adapted to carry out a program initialized with the method steps of: the target prediction model is obtained by the following steps: acquiring N pieces of historical operation data of the service system, wherein each piece of historical operation data is operation data of the service system operated in each historical time period, and N is a positive integer; determining performance data of the service system when the service system operates in each historical time period based on N historical operation data of the service system, and constructing a training set for training a model based on the performance data of the service system when the service system operates in each historical time period; and learning and training an original prediction model by adopting the training set to obtain the target prediction model, wherein the original prediction model is a model constructed based on a time sequence analysis algorithm.
When executed on a data processing device, is further adapted to carry out a program initialized with the method steps of: determining a current limit result for the target system service according to the current limit threshold comprises: determining a current limiting rule for limiting the system service in the business system in the current time period according to the current limiting threshold; and determining a current limiting result of the target system service based on the current limiting rule.
When executed on a data processing device, is further adapted to carry out a program initialized with the method steps of: determining, based on the throttling rules, a throttling result for the target system service includes: judging whether the number of running system services in the business system is smaller than the current limiting threshold value or not based on the current limiting rule; if the number of the running system services in the business system is not smaller than the current limiting threshold, determining that the current limiting result is to perform current limiting processing on the target system services; and if the number of the running system services in the business system is smaller than the current limiting threshold value, determining that the current limiting result is that the current limiting processing of the target system service is forbidden.
When executed on a data processing device, is further adapted to carry out a program initialized with the method steps of: after determining a current limit result for the target system service according to the current limit threshold, the method further comprises: if the current limiting result is that the current limiting process is carried out on the target system service, intercepting the target system service, and returning prompt information for refusing to process the service request to the target object; if the current limiting result is that the current limiting processing is forbidden to be carried out on the target system service, processing the target system service to obtain a processing result, wherein the processing result is used for indicating whether the processing on the target system service is successful or not; and determining a response result to the service request based on the processing result, and returning the response result to the target object, wherein the response result is used for indicating whether to respond normally to the service request.
When executed on a data processing device, is further adapted to carry out a program initialized with the method steps of: based on the processing result, determining a response result to the service request includes: if the processing result shows that the service processing of the target system is successful, determining that the response result is a normal response to the service request; and if the processing result indicates that the processing of the target system service fails, determining that the response result is an abnormal response to the service request.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and variations of the present application will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the application are to be included in the scope of the claims of the present application.

Claims (10)

1. A method for processing a system service, comprising:
When a business system receives a business request sent by a target object, acquiring current time information for receiving the business request, wherein the business request is used for requesting to process target system services in the business system;
Inputting the current time information into a target prediction model for prediction processing, and outputting a current limiting threshold value for limiting the current time period of the system service in the business system, wherein the current time period is a time period determined based on the current time information, and the target prediction model is a model constructed according to a time sequence analysis algorithm and historical operation data of the business system;
and determining a current limiting result of the target system service according to the current limiting threshold, wherein the current limiting result is used for indicating whether current limiting processing is carried out on the target system service or not.
2. The method of claim 1, wherein inputting the current time information into a target prediction model for prediction processing, and outputting a current limit threshold for limiting a current time period for a system service in the business system comprises:
Inputting the current time information into a target prediction model for prediction processing, and outputting performance data required by the normal operation of the service system in the current time period;
And determining the current limiting threshold for limiting the system service in the business system in the current time period according to the performance data required by the business system in normal operation in the current time period.
3. The method of claim 1, wherein the target prediction model is obtained by:
Acquiring N pieces of historical operation data of the service system, wherein each piece of historical operation data is operation data of the service system operated in each historical time period, and N is a positive integer;
Determining performance data of the service system when the service system operates in each historical time period based on N historical operation data of the service system, and constructing a training set for training a model based on the performance data of the service system when the service system operates in each historical time period;
And learning and training an original prediction model by adopting the training set to obtain the target prediction model, wherein the original prediction model is a model constructed based on a time sequence analysis algorithm.
4. The method of claim 1, wherein determining a current limit result for the target system service in accordance with the current limit threshold comprises:
determining a current limiting rule for limiting the system service in the business system in the current time period according to the current limiting threshold;
and determining a current limiting result of the target system service based on the current limiting rule.
5. The method of claim 4, wherein determining a current limit result for the target system service based on the current limit rule comprises:
Judging whether the number of running system services in the business system is smaller than the current limiting threshold value or not based on the current limiting rule;
If the number of the running system services in the business system is not smaller than the current limiting threshold, determining that the current limiting result is to perform current limiting processing on the target system services;
And if the number of the running system services in the business system is smaller than the current limiting threshold value, determining that the current limiting result is that the current limiting processing of the target system service is forbidden.
6. The method of claim 1, wherein after determining a current limit result for the target system service in accordance with the current limit threshold, the method further comprises:
if the current limiting result is that the current limiting process is carried out on the target system service, intercepting the target system service, and returning prompt information for refusing to process the service request to the target object;
if the current limiting result is that the current limiting processing is forbidden to be carried out on the target system service, processing the target system service to obtain a processing result, wherein the processing result is used for indicating whether the processing on the target system service is successful or not;
And determining a response result to the service request based on the processing result, and returning the response result to the target object, wherein the response result is used for indicating whether to respond normally to the service request.
7. The method of claim 6, wherein determining a response result to the service request based on the processing result comprises:
If the processing result shows that the service processing of the target system is successful, determining that the response result is a normal response to the service request;
and if the processing result indicates that the processing of the target system service fails, determining that the response result is an abnormal response to the service request.
8. A processing apparatus for a system service, comprising:
The first acquisition unit is used for acquiring current time information for receiving a service request sent by a target object when the service system receives the service request, wherein the service request is used for requesting to process target system services in the service system;
The first processing unit is used for inputting the current time information into a target prediction model for prediction processing and outputting a current limiting threshold value for limiting the current time period of the system service in the business system, wherein the current time period is a time period determined based on the current time information, and the target prediction model is a model constructed according to a time sequence analysis algorithm and historical operation data of the business system;
And the first determining unit is used for determining a current limiting result of the target system service according to the current limiting threshold, wherein the current limiting result is used for indicating whether current limiting processing is carried out on the target system service or not.
9. A computer-readable storage medium storing a program, wherein the program executes the processing method of the system service according to any one of claims 1 to 7.
10. An electronic device comprising one or more processors and a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of processing the system service of any of claims 1-7.
CN202410379898.1A 2024-03-29 2024-03-29 System service processing method and device, storage medium and electronic equipment Pending CN118282956A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410379898.1A CN118282956A (en) 2024-03-29 2024-03-29 System service processing method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410379898.1A CN118282956A (en) 2024-03-29 2024-03-29 System service processing method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN118282956A true CN118282956A (en) 2024-07-02

Family

ID=91649274

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410379898.1A Pending CN118282956A (en) 2024-03-29 2024-03-29 System service processing method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN118282956A (en)

Similar Documents

Publication Publication Date Title
CN110768912B (en) API gateway current limiting method and device
CN109787908B (en) Server current limiting method, system, computer equipment and storage medium
CN115190078B (en) Access flow control method, device, equipment and storage medium
CN114416360A (en) Resource allocation method and device and Internet of things system
CN109639747B (en) Data request processing method, data request processing device, query message processing method, query message processing device and equipment
CN114091099A (en) Authority hierarchical control method, equipment and storage medium for business system
CN117972367B (en) Data storage prediction method, data storage subsystem and intelligent computing platform
CN108647102B (en) Service request processing method and device of heterogeneous system and electronic equipment
CN116204277A (en) Business container expansion and contraction capacity adjustment method and device, storage medium and electronic equipment
CN118282956A (en) System service processing method and device, storage medium and electronic equipment
CN114895851A (en) Data processing method, data processing device, storage medium and electronic equipment
CN111158940B (en) Method and device for docking and dynamically loading different devices in field of Internet of things
CN111143327B (en) Data processing method and device
CN114124838A (en) Data transmission method and device of big data platform and big data platform
CN109561123B (en) Token caching method and device
CN113687973B (en) Control method, equipment and medium for log dynamic output
CN111754332B (en) Service request processing method and device, storage medium and electronic equipment
CN118585402A (en) Sampling rate adjustment method, sampling rate adjustment device, nonvolatile storage medium and computer equipment
CN117011053A (en) Transaction decision processing method and device, storage medium and electronic equipment
CN116566918A (en) Traffic distribution method and device, storage medium and electronic equipment
CN116996556A (en) Data processing method and device
CN117579372A (en) Service request processing method and device, storage medium and electronic equipment
CN118214783A (en) Data processing method and device, storage medium and electronic equipment
CN116431797A (en) Service query method and device, storage medium and electronic equipment
CN117687811A (en) Service request execution method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination