Business processing method, device, equipment and storage medium

By monitoring the processing performance data of business applications and dynamically adjusting business instances, the problem of not being able to perceive load changes in real time and supporting dynamic scaling in the existing technology is solved, and business load balancing and effective resource utilization is achieved, and production failures and resource waste are avoided. .

CN114897503BActive Publication Date: 2025-02-14CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210542236.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-18
Publication Date
2025-02-14
Estimated Expiration
2042-05-18

AI Technical Summary

Technical Problem

The existing technology cannot sense the load changes of business processing in real time and cannot support the dynamic expansion of business instances, resulting in business alarms, backlogs and production failures, resource waste and load imbalance.

Method used

By obtaining the processing performance data of multiple business applications in the process of processing the business, we can determine whether each business application meets the business instance expansion conditions. If it is met, determine the idle business instance and switch it from the original business application to the business application that meets the expansion conditions. .

Benefits of technology

It realizes dynamic business shunt and convergence, improves resource utilization rate of idle business applications, reduces the load pressure of busy business applications, slows down business backlog, avoids system crashes and downtime, and realizes load balancing and effective resource utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114897503B_ABST
    Figure CN114897503B_ABST
Patent Text Reader

Abstract

The present application provides a business processing method, device, equipment and storage medium, the method comprising: obtaining processing performance data of multiple business applications in the process of processing business; judging whether each business application meets the business instance expansion conditions according to the processing performance data; if it is determined that the business instance expansion conditions are met, then determining an idle business instance, so that the business application system switches the idle business instance from the original business application to the first purpose business application, the first purpose business application is a business application that meets the business instance expansion conditions. The method of the present application alleviates the business alarm and backlog problems caused by unbalanced business load and unbalanced resource utilization, and can effectively prevent production failures.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of data processing technology, and in particular, to a business processing method, device, equipment and storage medium. Background Art

[0002] In the era of intelligence, people have more and more requirements for telecommunication services, which leads to a wide variety of telecommunication services and a huge number of users. Each type of service has different characteristics, so the service triggering time is also different. It is possible that the triggering volume of a certain service suddenly increases at the same time. Therefore, it is difficult to predict the user scale and triggering frequency of a certain service.

[0003] When a business emergency causes a business alarm, backlog, or even a production failure, the existing technology can only rely on manually modifying the business instance quantity configuration parameters and restarting all business instances, and re-reading the business instance quantity configuration parameters to control the expansion and reduction of business instances.

[0004] The defect of the existing technology is that it is unable to collect business processing data, resulting in the inability to perceive changes in business processing load. In addition, the existing technology cannot support the dynamic expansion and contraction of business instances, thereby avoiding business sudden risks in advance. Therefore, it is easy to cause business alarms, backlogs, or even downtime, business application crashes and other production failures; resulting in resource waste and unbalanced business load. When the business load is unbalanced, some business applications are running at full load, but some business applications are relatively idle, resulting in unbalanced resource utilization; and frequent switching of parameters and restarting of business applications will cause the business processing process to roll back, affecting the progress of business processing. Summary of the invention

[0005] The present application provides a business processing method, apparatus, device and storage medium to solve the technical problems in the prior art of relying on manual modification of parameters and restarting all instances to control instance expansion and reduction, which causes business processing flow rollback, affects business processing progress, and cannot avoid business emergency risks in advance, easily leading to business alarms, backlogs and even production failures, waste of resources, and unbalanced business load.

[0006] In a first aspect, the present application provides a business processing method, including:

[0007] Obtain processing performance data of various business applications during business processing;

[0008] Determining whether each business application meets the business instance expansion conditions according to the processing performance data;

[0009] If it is determined that the service instance expansion condition is met, an idle service instance is determined so that the service application system switches the idle service instance from the original service application to a first destination service application, where the first destination service application is a service application that meets the service instance expansion condition.

[0010] Optionally, the obtaining of processing performance data of multiple business applications in the process of processing business includes:

[0011] According to the business application type, the original business operation data of each business application is stored in a preset database;

[0012] Acquire the original business operation data from the preset database;

[0013] For each business application, corresponding processing performance data is determined according to the original business operation data.

[0014] Optionally, the processing performance data includes any one or more of the following data: network time consumption for processing a single batch of services, processing service load ratio, and processing time of a single batch of services;

[0015] The determining, based on the processing performance data, whether each business application meets the business instance expansion condition includes:

[0016] Determine whether any processing performance data reaches the corresponding preset performance threshold multiple times in a row;

[0017] If it is determined that any type of processing performance data reaches the corresponding preset performance threshold for multiple consecutive times, it is determined that the business instance expansion condition is met;

[0018] If it is determined that any type of processing performance data does not reach the corresponding preset performance threshold for multiple consecutive times, it is determined that the business instance expansion condition is not met.

[0019] Optionally, if it is determined that the service instance expansion condition is met, determining an idle service instance includes:

[0020] If it is determined that the service instance expansion condition is met, obtaining service applications other than the first purpose service application;

[0021] According to the processing performance data, obtaining a business application that meets the business instance reduction condition from the business applications other than the first destination business application;

[0022] Obtain idle service instances from the service applications that meet the service instance reduction condition.

[0023] Optionally, after determining the idle service instance, the method further includes:

[0024] Acquire the original service application identification information, the first destination service application identification information, and the service channel identification information corresponding to the idle service instance;

[0025] Generate a corresponding switching instruction according to the original service application identification information, the first destination service application identification information and the service channel identification information corresponding to the idle service instance;

[0026] The switching instruction is stored in the message queue of the preset database so that the business application system

[0027] The switching instruction in the message queue is processed to switch the idle service instance from the original service application to the first destination service application.

[0028] Optionally, the method further comprises:

[0029] Acquire at least one second purpose business application that has a periodic peak period and meets the business instance expansion conditions;

[0030] At a preset time point before the peak period arrives, an idle service instance is obtained, so that the service application system switches the idle service instance from the original service application to the second destination service application.

[0031] Optionally, the method further comprises:

[0032] Determine the real-time processing status data of the service according to the original service operation data;

[0033] The real-time business processing status data is displayed so that the user can determine whether to adjust the number of business instances of the corresponding business application according to the real-time business processing status data.

[0034] In a second aspect, the present application provides a service processing device, including:

[0035] The acquisition module is used to obtain the processing performance data of various business applications in the process of processing business;

[0036] A judgment module, used to judge whether each business application meets the business instance expansion condition according to the processing performance data;

[0037] The determination module is used to determine an idle business instance if it is determined that the business instance expansion conditions are met, so that the business application system switches the idle business instance from the original business application to the first destination business application, where the first destination business application is a business application that meets the business instance expansion conditions.

[0038] In a third aspect, the present application provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor;

[0039] The memory stores computer-executable instructions;

[0040] The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of the first aspects.

[0041] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement any one of the methods in the first aspect.

[0042] The present application provides a business processing method, device, equipment and storage medium, which obtains the processing performance data of multiple business applications in the process of processing business. According to the processing performance data, it is judged whether each business application meets the business instance expansion conditions. If it is determined that the business instance expansion conditions are met, an idle business instance is determined. The idle business instance is switched from the original business application to the first purpose business application, and the first purpose business application is a business application that meets the business instance expansion conditions. Due to different business characteristics, the load conditions, business backlog conditions and resource utilization conditions of different business instances are different. The present application monitors the processing performance data of different businesses to determine whether each business application meets the business instance expansion conditions. When it is determined that the business instance expansion conditions are met, by determining the idle instance, the idle instance is switched from the original business application to the first purpose business application, so that the business can be dynamically divided and merged, the resource utilization rate of the idle business application is improved, and the load pressure of the busy business application is reduced, thereby effectively alleviating the business backlog, effectively avoiding system crashes and downtimes caused by untimely business processing or excessive business loads, and performing load balancing in the business instance, realizing effective resource utilization, and speeding up the processing progress of the business. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0044] Figure 1 An application scenario diagram of the business processing method provided in an embodiment of the present application;

[0045] Figure 2 A method flow chart of a business processing method provided in Example 1 of the present application;

[0046] Figure 3 A method flow chart of a business processing method provided in Embodiment 2 of the present application;

[0047] Figure 4 A method flow chart of a business processing method provided in Embodiment 3 of the present application;

[0048] Figure 5 A method flow chart of a business processing method provided in Embodiment 4 of the present application;

[0049] Figure 6 A method flow chart of a business processing method provided in Embodiment 5 of the present application;

[0050] Figure 7 A method flow chart of a business processing method provided in Embodiment 6 of the present application;

[0051] Figure 8 A method flow chart of a service processing method provided in Embodiment 7 of the present application;

[0052] Fig. 9 A schematic diagram of the structure of a service processing device provided in Embodiment 1 of the present application;

[0053] Fig.10 A schematic diagram of the structure of an electronic device provided in Example 1 of the present application. DETAILED DESCRIPTION

[0054] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0055] In order to clearly understand the technical solution of the present application, the solution of the prior art is first introduced in detail.

[0056] When a business emergency causes business alarms, backlogs, or even production failures, the existing technology can only rely on manual modification of the business instance quantity configuration parameters and restarting all business instances to re-read the business instance quantity configuration parameters to control the expansion and reduction of business instances. Restarting business applications will cause the business processing process to roll back, affecting the progress of business processing. However, manual work cannot perceive the business processing situation in real time, and cannot modify the business instance quantity configuration parameters in time, so it is impossible to expand the number of business instances in time, which is easy to cause business alarms, backlogs, and even production failures such as business application crashes and equipment downtime. In addition, different business trigger times are different, resulting in unbalanced business loads. Some business applications are overloaded, while some business applications are relatively idle, resulting in unbalanced resource utilization and resource waste.

[0057] Based on the problems of low business processing efficiency caused by unbalanced business load and waste of resources in the prior art, which are prone to business alarms, backlogs and production failures, the inventor of this application has found through creative research that although the business scale and business triggering frequency are difficult to predict, the business processing performance data is closely related to the business backlog trend. As long as the relevant business processing performance data is obtained, it can be determined whether there is a business application that needs to be expanded based on the business processing performance data. If there is a business application that needs to be expanded, the idle business instance at the current time is determined, and the idle business instance is switched from the original business application to the first purpose business application. It can realize dynamic business diversion and confluence, load balancing and reasonable use of resources, thereby achieving the purpose of alleviating business alarms, backlogs and preventing production failures.

[0058] The following is an introduction to the network architecture and application scenarios of the business processing method provided by this application.

[0059] Figure 1 The application scenario diagram of the business processing method provided in the present application. The network structure corresponding to the business processing method provided in the embodiment of the present application may include: database 1, electronic device cluster 2, and electronic device 3. Electronic device cluster 2 may be a server cluster. Electronic device 3 may be a server. The business application system runs on the electronic device cluster 2, and the business application system contains a variety of business applications, and different business applications continuously store various original business operation data in the database 1. The business monitoring system runs on the electronic device 3. The original business operation data in the database 1 can be obtained in batches by the business monitoring system running on the electronic device 3 at regular intervals, and the corresponding processing performance data can be determined according to the original business operation data to obtain the processing performance data of various business applications in the process of processing the business. According to the business processing method in the embodiment, it is determined whether each business application meets the expansion conditions. If so, a switching instruction is generated and stored in the database 1. The business application system regularly obtains the switching instruction of the corresponding business application from the database 1, and switches the idle business instance from the original business application to the first purpose business application according to the instruction requirements.

[0060] The service processing method provided in the present application can be specifically applied to various telecommunications services. For example, the service application includes a payment and power-on service. After the user pays the phone bill, the service application system receives the payment and power-on request and processes it. The service monitoring system periodically obtains the original service data of the payment and power-on service and other services in batches, and generates the processing performance data of the service. When the processing performance data of the payment and power-on service application continues to be substandard, the service monitoring system determines that the payment and power-on service needs to expand the service instance. At this time, the system will determine an idle service instance based on the processing performance data of the service, and generate a switching instruction, which will be stored in the database 1. The service application system will periodically obtain the switching instruction and switch the idle service instance from the original service application to the payment and power-on service application according to the instruction requirements.

[0061] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0062] Embodiment 1

[0063] Figure 2 A method flow chart of a service processing method provided in Embodiment 1 of the present application. This embodiment provides a service processing method for the problem of service alarm backlog and even production failure caused by service load imbalance and resource waste. The method in this embodiment is applied to a service processing device, and the service processing device can be located in an electronic device. The electronic device can be a digital computer in various forms, such as a cellular phone, a smart phone, a laptop computer, a desktop computer, a workbench, a personal digital assistant, a server, a blade server, a mainframe computer, and other suitable computers.

[0064] like Figure 2 As shown, the service processing method of the embodiment of the present application includes the following steps:

[0065] Step S101: Acquire processing performance data of various business applications in the process of processing business.

[0066] Among them, business applications refer to application programs used to process business. Different business applications process data of different business types. A business application may include at least one business instance of a corresponding business type.

[0067] Among them, processing performance data refers to data that can represent the efficiency of business processing, such as the processing time of a single batch of business, the network time consumed by a single batch of business processing, the proportion of business load, the actual efficiency of business processing, etc. Processing performance data can reflect the trend of business backlog to a certain extent. When the processing performance data exceeds the preset performance threshold data for multiple consecutive times, it indicates that the business is at risk of backlog.

[0068] During the business processing, various business applications will continuously store the original data of business operation into the preset database. The business monitoring system obtains the original data of business operation from the preset database in batches at regular intervals. And for each business application, the corresponding processing performance data of each business application is determined based on the original data of business operation.

[0069] Step S102: Determine whether each business application meets the business instance expansion condition based on the processing performance data.

[0070] The business instance expansion condition refers to the necessary conditions for expanding the business instance.

[0071] Specifically, for each business application, based on at least one processing performance data, it is determined whether the business instance expansion condition is met. When based on at least one processing performance data, it is determined whether the business instance expansion condition is met, it can be:

[0072] Determine whether the average network time consumption for processing a single batch of services for all service instances corresponding to the service application has reached or exceeded the corresponding preset performance threshold for multiple times in a row. The preset performance threshold is the empirical value of the network time consumption when a single batch of services is processed normally when the network is smooth. When the average network time consumption for processing a single batch of services for all service instances corresponding to the service application has reached or exceeded the preset performance threshold for multiple times in a row, it indicates that the network is congested and there is a risk of backlog of services.

[0073] Optionally, it is determined whether the average value of the processing business load ratio of all business instances corresponding to the business application reaches or exceeds the corresponding preset performance threshold for multiple consecutive times. The preset performance threshold is [0,1]. Exemplarily, it can be greater than 0.95 or 1. When the average value of the processing business load ratio of all business instances corresponding to the business application reaches or exceeds the preset performance threshold for multiple consecutive times, it indicates that the business load is in a full load state and there is a risk of business backlog.

[0074] Optionally, determine whether the average single-batch business processing time of all business instances corresponding to the business application reaches or exceeds the corresponding preset performance threshold for multiple consecutive times. The preset performance threshold is the empirical value of the single-batch business processing time under normal load. When the average single-batch business processing time of all business instances corresponding to the business application reaches or exceeds the preset performance threshold for multiple consecutive times, it indicates that the business processing is delayed and there is a risk of business backlog. Optionally, determine whether the average actual business processing efficiency of all business instances corresponding to the business application reaches the corresponding preset performance threshold for multiple consecutive times. The preset performance threshold is the maximum empirical value that can be achieved for the actual efficiency of single-batch business processing under normal load. When the average actual single-batch business processing efficiency of all business instances corresponding to the business application reaches the preset performance threshold for multiple consecutive times, it indicates that the actual business processing efficiency has reached the maximum processing efficiency and there may be a risk of business backlog.

[0075] The specific calculation method of the single batch service processing network time consumption, service load processing ratio, single batch service processing time and actual service processing efficiency of the service instance is as described in step S203 of embodiment 2 and step S402 of embodiment 4.

[0076] Step S103: If it is determined that the service instance expansion condition is met, an idle service instance is determined so that the service application system switches the idle service instance from the original service application to the first destination service application, where the first destination service application is a service application that meets the service instance expansion condition.

[0077] An idle business instance refers to a business instance with low business resource utilization. For example, if a business application is processing business for less than half of the time and the rest of the time is in a resource idle state, the instance corresponding to the business application can be considered an idle business instance. An original business application refers to an application of an idle business instance that is running.

[0078] Specifically, if the service instance expansion conditions are met, one or more idle service instances are determined from other service applications. The specific determination method is not limited. For example, a most idle service instance can be determined, or one or more idle service instances can be randomly determined. After the idle service instance is determined, the service monitoring system can generate a switching instruction and send the switching instruction to the service application system. The service application system switches the idle service instance from the original service application to the corresponding first-purpose service application according to the content of the switching instruction.

[0079] In the embodiment of the present application, the processing performance data of various business applications in the process of processing business are obtained. It is judged whether each business application meets the business instance expansion conditions according to the processing performance data. If it is determined that the business instance expansion conditions are met, the idle business instance is determined so that the business application system switches the idle business instance from the original business application to the first purpose business application, and the first purpose business application is a business application that meets the business instance expansion conditions. Due to different business characteristics, the load conditions, business backlog conditions and resource utilization conditions of different business instances are different. The present application judges whether each business application meets the business instance expansion conditions by monitoring the processing performance data of different businesses. When it is determined that the business instance expansion conditions are met, by determining the idle instance, the idle instance is switched from the original business application to the first purpose business application, so that the business can be dynamically divided and merged, the resource utilization rate of the idle business application is improved, and the load pressure of the busy business application is reduced, thereby effectively alleviating the business backlog, effectively avoiding system crashes and downtimes caused by untimely business processing or excessive business load, and performing load balancing in the business instance, realizing effective resource utilization, and accelerating the processing progress of the business.

[0080] Embodiment 2

[0081] Figure 3 The flowchart of the business processing method provided in the second embodiment of the present application is as follows: Figure 3As shown, based on the above embodiments, the embodiments of the present application involve a specific implementation method of step S101 obtaining processing performance data of multiple business applications in the process of processing business, and obtaining processing performance data of multiple business applications in the process of processing business includes the following steps:

[0082] Step S201: store original business operation data of each business application into a preset database according to the business application type.

[0083] Among them, the original business operation data refers to the original data of business operation. It includes business work order acquisition operation data and business work order attribute data. Among them, the business work order acquisition operation data includes: business application identification, business channel identification, preset single batch business work order acquisition quantity, actual single batch business work order acquisition quantity, starting business work order number, acquisition time, etc. Business work order attribute data includes: business application type, business work order number, operation duration, network time consumption, etc.

[0084] Specifically, according to different business application types, the corresponding business instances store the acquisition operation data of each batch of business work orders and the business work order attribute data of the corresponding batch in the preset database. Among them, the corresponding batch is determined based on the actual single batch business work order acquisition quantity and the starting business work order number. That is, the starting business work order number is the first business work order number of this batch, and the starting business work order number + the actual single batch business work order acquisition quantity - 1 is the last business work order number of this batch. The business work orders in this interval are the business work orders actually acquired in this batch.

[0085] The type of the preset database is not limited, and may be a Redis database, or other types of databases.

[0086] Step S202: Acquire original business operation data from a preset database.

[0087] Specifically, according to the type of business application, the business monitoring system obtains the original business operation data of each business application, including the acquisition operation data of each batch of business work orders and the attribute data of the corresponding batch of business work orders.

[0088] Step S203: For each business application, determine corresponding processing performance data according to the original business operation data.

[0089] Exemplarily, the processing performance data may include: the network time consumption of processing a single batch of services, the processing service load ratio, and the processing time of a single batch of services.

[0090] The network time consumption for processing a single batch of business refers to the total network time consumption for business work orders in a single batch. The processing business load ratio refers to the ratio of the actual number of business work orders obtained in a single batch to the preset number of business work orders obtained in a single batch. The processing time for a single batch of business refers to the total processing time for business work orders in a single batch.

[0091] Then for each business application, when determining the corresponding processing performance data based on the original business operation data, it can be specifically:

[0092] The network time consumption of single-batch business processing is obtained by obtaining the operation data and business work order attribute data in the original business operation data. Among them, the business work order corresponding to the starting business work order number is the starting business work order, and the business work order corresponding to the starting business work order number + the actual single-batch business work order acquisition quantity - 1 is the last business work order in the batch. The network time consumption of all business work orders in the batch is counted to obtain the network time consumption of single-batch business processing.

[0093] The processing business load ratio is obtained according to the business work order acquisition operation data in the original business operation data. Specifically, the actual single batch business work order acquisition amount / preset single batch business work order acquisition amount is used to obtain the processing business load ratio.

[0094] The single-batch business processing time is obtained based on the business work order acquisition operation data and business work order attribute data in the original business operation data. Among them, the business work order corresponding to the starting business work order number is the starting business work order, and the business work order corresponding to the starting business work order number + the actual single-batch business work order acquisition quantity - 1 is the last business work order in the batch. The processing time of all business work orders in the batch is counted to obtain the single-batch business processing time.

[0095] In the embodiment of the present application, the original business operation data of each business application is stored in a preset database according to the business application type. The original business operation data is obtained from the preset database. For each business application, the corresponding processing performance data is determined according to the original business operation data. Various original business operation data can be stored in the preset database, so the original business operation data can be obtained from the preset database according to the needs, and then the processing performance data corresponding to each business application can be determined in a targeted manner.

[0096] Embodiment 3

[0097] Figure 4 The flowchart of the business processing method provided in the third embodiment of the present application is as follows: Figure 4 As shown, based on the content of embodiment one or embodiment two, the embodiment of the present application involves a specific implementable method of step S102 to determine whether each business application meets the business instance expansion conditions according to the processing performance data.

[0098] The processing performance data includes any one or more of the following data: network time consumption for processing a single batch of services, processing service load ratio, and processing time for a single batch of services.

[0099] Specifically, judging whether each business application meets the business instance expansion condition according to the processing performance data includes the following steps:

[0100] Step S301: Determine whether any type of processing performance data reaches a corresponding preset performance threshold for multiple consecutive times.

[0101] Optionally, determine whether the network time consumption of a single batch of business processing of a business instance reaches or exceeds the corresponding preset performance threshold for multiple times in a row. The preset performance threshold is the empirical value of the network time consumption when a single batch of business is processed normally when the network is smooth. When the network time consumption of a single batch of business processing of a business instance reaches or exceeds the preset performance threshold for multiple times in a row, it indicates that the network is congested and there is a risk of business backlog.

[0102] Optionally, it is determined whether the proportion of the business load processed by the business instance reaches or exceeds the corresponding preset performance threshold for multiple consecutive times. The preset performance threshold is [0,1]. Exemplarily, it can be greater than 0.95 or 1. When the proportion of the business load processed reaches or exceeds the preset performance threshold for multiple consecutive times, it indicates that the business load is in a full load state and there is a risk of business backlog.

[0103] Optionally, determine whether the processing time of a single batch of business instances reaches or exceeds the corresponding preset performance threshold for multiple times in a row. The preset performance threshold is the empirical value of the processing time of a single batch of business under normal load. When the processing time of a single batch of business reaches or exceeds the preset performance threshold for multiple times in a row, it indicates that the business processing is delayed and there is a risk of business backlog.

[0104] The number of consecutive multiple times is not specifically limited. For example, it can be three or more consecutive times.

[0105] In this embodiment, after executing step S301, if yes, execute step S302, otherwise execute step S303.

[0106] Step S302: If it is determined that any type of processing performance data reaches the corresponding preset performance threshold for multiple consecutive times, it is determined that the service instance expansion condition is met.

[0107] Specifically, continuing the above steps, if it is determined that any type of processing performance data reaches the corresponding preset performance threshold for multiple consecutive times, it is determined that there is a risk of business backlog, so it is determined that the business instance expansion condition is met.

[0108] Step S303: If it is determined that any type of processing performance data does not reach the corresponding preset performance threshold for multiple consecutive times, it is determined that the service instance expansion condition is not met.

[0109] Specifically, continuing the above steps, if it is determined that any processing performance data of the business instance has not reached the corresponding preset performance threshold for multiple consecutive times, it is determined that there is no business backlog risk, so it is determined that the business instance expansion condition is not met.

[0110] In an embodiment of the present application, it is determined whether any kind of processing performance data reaches the corresponding preset performance threshold for multiple consecutive times. If it is determined that any kind of processing performance data reaches the corresponding preset performance threshold for multiple consecutive times, it is determined that the business instance expansion condition is met. If it is determined that any kind of processing performance data does not reach the corresponding preset performance threshold for multiple consecutive times, it is determined that the business instance expansion condition is not met. By repeatedly judging the relationship between any kind of processing performance data and the corresponding preset performance threshold, it is determined whether the business instance expansion condition is met, which can further ensure that business applications with a risk of business backlog can be expanded in a timely manner.

[0111] Embodiment 4

[0112] Figure 5 A flowchart of a business processing method provided in Embodiment 4 of the present application is shown in FIG. Figure 5 As shown, based on the content of the third embodiment, the embodiment of the present application involves a specific implementable method of determining an idle service instance if it is determined that the service instance expansion condition is met in step S103. If it is determined that the service instance expansion condition is met, determining an idle service instance includes the following steps:

[0113] Step S401: If it is determined that the service instance expansion condition is met, obtain service applications other than the first destination service application.

[0114] The first-purpose business application refers to a business application that meets the business instance expansion conditions.

[0115] Step S402: According to the processing performance data, obtain a business application that meets the business instance reduction condition from business applications other than the first destination business application.

[0116] The business instance reduction condition is not specifically limited here. Optionally, the business instance reduction condition may be that the actual business processing efficiency of the business application or the business load processing ratio of the business application fails to reach the corresponding preset value for multiple consecutive times.

[0117] The actual efficiency of business processing refers to the number of business work orders actually processed by the business application per unit time.

[0118] Specifically, for each service application other than the first purpose service application, the original service operation data is obtained, and the processing performance data of each service application other than the first purpose service application is determined according to the original service operation data, including the network time consumption of single batch service processing, the proportion of service load processing, and the processing time of single batch service.

[0119] Exemplarily, when the business instance reduction condition is that the actual business processing efficiency of the business application has not reached the corresponding preset value for multiple consecutive times, the actual business processing efficiency of the corresponding batch of business work orders is obtained according to the single batch business processing time and the actual single batch business work order acquisition amount in the original business operation data. Suppose the actual business processing efficiency when the business processing is without delay and the business application is fully loaded is P, then the preset value is greater than or equal to 0 and less than P. Exemplarily, the preset value can be 50% or less of P.

[0120] The preset value corresponding to the processing business load ratio has a value range of [0,1] and can be 50% or less.

[0121] After the service instance reduction condition is determined, a corresponding service application satisfying the service instance reduction condition is selected from various service applications.

[0122] Step S403: Obtain idle service instances from service applications that meet the service instance reduction condition.

[0123] Specifically, from the corresponding business applications that meet the business instance reduction condition, the business application with the smallest average business load ratio or the smallest average business processing actual efficiency for multiple consecutive times can be selected as the idle business instance.

[0124] In the embodiment of the present application, if it is determined that the business instance expansion condition is met, then business applications other than the first purpose business application are obtained. Based on the processing performance data, business applications that meet the business instance reduction condition are obtained from business applications other than the first purpose business application. Idle business instances are obtained from business applications that meet the business instance reduction condition. Since the business applications that meet the business instance reduction condition are determined based on the processing performance data, they are more accurate, and the idle business instances are determined from the business applications that meet the business instance reduction condition, and thus the determined idle business instances are also more accurate.

[0125] Embodiment 5

[0126] Figure 6 The flowchart of the business processing method provided in the fifth embodiment of the present application is as follows: Figure 6 As shown, based on the content of any one of the first to fourth embodiments, after determining the idle service instance, the embodiment of the present application further includes the following steps:

[0127] Step S501: Acquire original service application identification information, first destination service application identification information, and service channel identification information corresponding to an idle service instance.

[0128] The original business application identification information refers to the business application identification information of the idle business instance that is running. The business application identification information refers to the information representing a unique business application, such as the serial number and name of the business application. The first-purpose business application identification information refers to the identification information of the business application that meets the business instance expansion conditions. The first-purpose business application is also the business application to which the idle business instance switches. The business channel identification information refers to the identification information of the thread where the idle business instance is running.

[0129] Specifically, the service monitoring system may obtain original service application identification information of the idle instance to be switched, corresponding service channel identification information, and first purpose service application identification information that meets the service instance expansion condition from the original service operation data.

[0130] Step S502: Generate a corresponding switching instruction according to the original service application identification information, the first destination service application identification information and the idle service instance service channel identification information.

[0131] Specifically, the service monitoring system generates a corresponding switching instruction, and the switching instruction content includes original service application identification information, corresponding service channel identification information and first destination service application identification information, and these information may exist in the switching instruction in the form of fields.

[0132] Step S503: store the switching instruction in a message queue of a preset database, so that the service application system processes the switching instruction in the message queue to switch the idle service instance from the original service application to the first destination service application.

[0133] Specifically, the service monitoring system stores the generated switching instruction in a message queue of a preset database. Then, multiple switching instructions can be stored in the message queue in sequence.

[0134] The business application system can regularly obtain the corresponding switching instructions from the message queue in a first-in-first-out order, parse the switching instructions, obtain the original business application identification information, the business channel identification information corresponding to the idle business instance, and the first-purpose business application identification information, and then switch the idle business instance from the original business application to the first-purpose business application.

[0135] In an embodiment of the present application, the original business application identification information, the first-purpose business application identification information, and the business channel identification information are obtained. A corresponding switching instruction is generated based on the original business application identification information, the first-purpose business application identification information, and the business channel identification information. The switching instruction is stored in a message queue of a preset database. The business application system processes the switching instruction in the message queue to switch the idle business instance from the original business application to the first-purpose business application. By obtaining the original business application identification information, the first-purpose business application identification information, and the business channel identification information and generating a switching instruction, and storing it in the message queue, the business application system processes the switching instruction in the message queue, and when multiple business applications need to expand business instances in a short period of time, the switching instruction can be cached, thereby effectively reducing the memory resources occupied when the business instance is expanded.

[0136] Embodiment 6

[0137] Figure 7 A flowchart of a business processing method provided in Example 6 of the present application is shown in FIG. Figure 7 As shown, based on the content of any one of Embodiments 1 to 5, the service processing method provided in the embodiment of the present application further includes the following steps:

[0138] Step S601: Acquire at least one second purpose business application that has a periodic peak period and meets the business instance expansion condition.

[0139] The second purpose business application is a business application that has periodic peak hours and meets the business instance expansion conditions.

[0140] Specifically, for each business application type, multiple time nodes are taken within a preset time period, and the business work orders of the corresponding business application type generated at each time node are counted to determine whether there is a business processing peak. If there is a business processing peak, it is determined whether each preset time period has a business processing peak within multiple cycles. If each preset time period has a business peak within multiple cycles, it is determined that the business is a second purpose business application with a periodic business peak period.

[0141] Exemplarily, the preset time period is 24 hours, and the time nodes are the hourly moments from 7:00 to 22:00. The business processing volume at each hourly moment is counted to determine whether there is a business processing volume peak. If there is a business processing peak, then within multiple consecutive 24 hours, determine whether each cycle has a business processing peak. If there is a business peak, then determine that the business is a second purpose business application with a periodic business peak period.

[0142] Step S602: At a preset time point before the peak period arrives, an idle service instance is obtained so that the service application system switches the idle service instance from the original service application to the second destination service application.

[0143] Specifically, obtain the peak time node of the peak period, and obtain the idle service instance at a preset time point before the arrival of the peak time node. Then, the service monitoring system generates a switching instruction, which includes the original service application identification information of the idle instance, the second destination service application, and the service channel identification information corresponding to the idle service instance. The switching instruction is stored in a preset database, and the service application system periodically obtains the corresponding switching instruction from the preset database, parses the switching instruction, and switches the idle service instance from the original service application to the second destination service application.

[0144] The method for obtaining an idle service instance is as described in Embodiment 1 or Embodiment 5, and will not be described in detail here.

[0145] The preset time point is not specifically limited. For example, it can be a time point one hour or half an hour ahead of the business peak time node. Exemplarily, if the business peak time is 9 o'clock, the preset time point can be 8 o'clock or 8:30.

[0146] In an embodiment of the present application, at least one second purpose business application that has a periodic peak period and meets the business instance expansion conditions is obtained. At a preset time point before the peak period arrives, an idle business instance is obtained. So that the business application system switches the idle business instance from the original business application to the second purpose business application. By obtaining a business application with a business peak period, obtaining an idle business instance at a preset time point, and switching it to the second purpose business application, it is possible to predict risks in advance, expand business instances in advance, effectively balance business loads, avoid the risk of business backlogs during business peaks, and help prevent production accidents.

[0147] Embodiment 7

[0148] Figure 8 The flowchart of the service processing method provided in the seventh embodiment of the present application is as follows: Figure 8 As shown, based on the content of any one of Embodiments 1 to 6, the service processing method provided in the embodiment of the present application further includes the following steps:

[0149] Step S701: Determine the real-time business processing status data according to the original business operation data.

[0150] Business real-time processing status data is the real-time processing status statistics of business processing, which may include the overall processing efficiency of various business applications, the waveform chart of the real-time business processing volume changing over time, the waveform chart of the real-time business net increment changing over time, etc.

[0151] Specifically, the overall processing efficiency of business applications refers to the average actual processing efficiency of all business instances corresponding to each business application. The real-time business processing volume of business applications refers to the sum of the business processing volumes of all business instances corresponding to each business application at the same time. The net increase in real-time business refers to the difference between the number of business work orders of the corresponding business application type generated at the same time for each business application and the real-time business processing volume of the business application.

[0152] The overall processing efficiency of a business application is obtained by the actual business processing volume per unit time of all business instances corresponding to the business application. The total business processing volume of all business instances corresponding to the business application within a preset time period is counted, and the ratio of the total business processing volume to the preset time period is calculated to obtain the overall processing efficiency of the business application. There is no limit on the range of the preset time period, which can be 1s, 5s, etc. For example, within 5s, the four business instances A1, A2, A3, and A4 of business application A processed a total of 25,000 business data, then the overall processing efficiency of business application A is 5,000 / second.

[0153] The real-time business processing volume of a business application is obtained by summing up the business processing volumes of all business instances corresponding to the business application at the same time. The total business processing volume of all business instances corresponding to the business application at the same time is counted to obtain the real-time business processing volume of the business application.

[0154] The net increase in real-time business is obtained by the difference between the number of business work orders of the business application type generated at the same time and the real-time business processing volume of the corresponding business application. The number of business work orders of the business application type generated at the same time and the sum of the real-time business processing volume of all business instances corresponding to the business application at the same time are counted, and the net increase in real-time business is obtained based on the difference between the two.

[0155] Step S702: Display the business real-time processing status data so that the user can determine whether to adjust the number of business instances of the corresponding business application according to the business real-time processing status data.

[0156] Specifically, the service monitoring system sends the service real-time processing status data to the user terminal for visual display, and the user determines whether to adjust the number of service instances of the corresponding service application based on the displayed service real-time processing status data.

[0157] In the embodiment of the present application, the real-time business processing status data is determined based on the original business operation data. The real-time business processing status data is displayed so that the user can judge whether to adjust the number of business instances of the corresponding business application based on the real-time business processing status data. By determining and displaying the real-time business processing status data, the user can timely grasp the real-time business processing situation and judge whether the number of business instances needs to be adjusted based on the real-time business processing situation.

[0158] Embodiment 8

[0159] The service processing device 80 provided in this embodiment includes: an acquisition module 81 , a judgment module 82 , and a determination module 83 .

[0160] The acquisition module 81 is used to acquire processing performance data of various business applications during the business processing process.

[0161] The judgment module 82 is used to judge whether each business application meets the business instance expansion condition according to the processing performance data.

[0162] The determination module 83 is used to determine an idle business instance if it is determined that the business instance expansion condition is met, so that the business application system switches the idle business instance from the original business application to the first destination business application, which is a business application that meets the business instance expansion condition.

[0163] Optionally, the acquisition module 81, in acquiring the processing performance data of various business applications in the process of processing business, is specifically used to:

[0164] According to the business application type, the original business operation data of each business application is stored in a preset database. The original business operation data is obtained from the preset database. For each business application, the corresponding processing performance data is determined according to the original business operation data.

[0165] Optionally, the judgment module 82, in judging whether each business application meets the business instance expansion condition according to the processing performance data, is specifically configured to:

[0166] Determine whether any processing performance data reaches the corresponding preset performance threshold for multiple consecutive times. If it is determined that any processing performance data reaches the corresponding preset performance threshold for multiple consecutive times, it is determined that the business instance expansion condition is met. If it is determined that any processing performance data does not reach the corresponding preset performance threshold for multiple consecutive times, it is determined that the business instance expansion condition is not met.

[0167] The processing performance data includes any one or more of the following data: network time consumption for processing a single batch of services, processing service load ratio, and processing time for a single batch of services.

[0168] Optionally, the determination module 83, in determining an idle service instance if it is determined that the service instance expansion condition is met, is specifically configured to:

[0169] If it is determined that the service instance expansion condition is met, then obtain service applications other than the first purpose service application. According to the processing performance data, obtain service applications that meet the service instance reduction condition from service applications other than the first purpose service application. Obtain idle service instances from service applications that meet the service instance reduction condition.

[0170] Optionally, the embodiment of the present application also includes an instruction generation module.

[0171] The acquisition module 81 is further used to acquire original service application identification information, first purpose service application identification information and idle service instance identification information.

[0172] The instruction generation module is used to generate a corresponding switching instruction according to the original business application identification information, the first destination business application identification information and the idle application instance identification information. The switching instruction is stored in a message queue of a preset database so that the business application system processes the switching instruction in the message queue to switch the idle business instance from the original business application to the first destination business application.

[0173] Optionally, the acquisition module 81 is further configured to acquire at least one second purpose business application having a periodic peak period and satisfying a business instance expansion condition.

[0174] The determination module 83 is further configured to obtain an idle service instance at a preset time point before the peak period arrives, so that the service application system switches the idle service instance from the original service application to the second destination service application.

[0175] Optionally, the embodiment of the present application further includes a display module:

[0176] The determination module 83 is further used to determine the real-time business processing status data according to the original business operation data. The display module is used to display the real-time business processing status data so that the user can determine whether to adjust the number of business instances of the corresponding business application according to the real-time business processing status data.

[0177] Embodiment 9

[0178] An electronic device provided in an embodiment of the present application includes an electronic device 90 including a processor 91 and a memory 92 communicatively connected to the processor.

[0179] Memory 92 stores computer executable instructions.

[0180] The processor 91 executes the computer-executable instructions stored in the memory 92 to implement the method of any of the above method embodiments.

[0181] The processor 91 and the memory 92 are connected via a bus 93 .

[0182] An embodiment of the present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, the method provided by any of the above method embodiments is implemented.

[0183] An embodiment of the present application also provides a computer program product, including a computer program, which implements the method provided in any embodiment of the present application when the computer program is executed by a processor.

[0184] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.

[0185] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0186] In addition, each functional module in each embodiment of the present application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or in the form of hardware plus software functional modules.

[0187] The program code for implementing the method of the present application can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable compliance detection device, so that the program code, when executed by the processor or controller, implements the functions / operations specified in the flow chart and / or block diagram. The program code can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.

[0188] In the context of the present application, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0189] In addition, although each operation is described in a specific order, this should be understood as requiring such operation to be performed in the specific order shown or in a sequential order, or requiring that all illustrated operations should be performed to obtain desired results. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the application. Some features described in the context of a separate embodiment can also be implemented in a single implementation in combination. On the contrary, the various features described in the context of a single implementation can also be implemented in multiple implementations individually or in any suitable sub-combination mode.

[0190] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0191] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A business processing method, characterized in that: include: Obtaining processing performance data of various business applications in the process of processing business; the processing performance data includes any one or more of the following data: network time consumption for processing a single batch of business, processing business load ratio, and single batch business processing time; Determining whether each business application meets the business instance expansion conditions according to the processing performance data; If it is determined that the business instance expansion condition is met, an idle business instance is determined, so that the business application system switches the idle business instance from the original business application to the first purpose business application, wherein the first purpose business application is a business application that meets the business instance expansion condition; the idle business instance is a business instance in a business application that meets the business instance reduction condition; the business instance reduction condition is that the actual business processing efficiency of the business application or the proportion of the business load processed by the business application fails to reach the corresponding preset value for multiple consecutive times; The determining whether each business application meets the business instance expansion condition according to the processing performance data includes: determining whether any kind of processing performance data reaches a corresponding preset performance threshold for multiple consecutive times; If it is determined that any type of processing performance data reaches the corresponding preset performance threshold for multiple consecutive times, it is determined that the business instance expansion condition is met.

2. The method according to claim 1, characterized in that The obtaining of processing performance data of various business applications in the process of processing business includes: According to the business application type, the original business operation data of each business application is stored in a preset database; Acquire the original business operation data from the preset database; For each business application, corresponding processing performance data is determined according to the original business operation data.

3. The method according to claim 1, characterized in that Also includes: If it is determined that any type of processing performance data does not reach the corresponding preset performance threshold for multiple consecutive times, it is determined that the business instance expansion condition is not met.

4. The method according to claim 3, characterized in that If it is determined that the service instance expansion condition is met, determining an idle service instance includes: If it is determined that the service instance expansion condition is met, obtaining service applications other than the first purpose service application; According to the processing performance data, obtaining a business application that meets the business instance reduction condition from the business applications other than the first destination business application; Obtain idle service instances from the service applications that meet the service instance reduction condition.

5. The method according to claim 1, characterized in that After determining the idle service instance, the method further includes: Acquire the original service application identification information, the first destination service application identification information, and the service channel identification information corresponding to the idle service instance; Generate a corresponding switching instruction according to the original service application identification information, the first destination service application identification information and the service channel identification information corresponding to the idle service instance; The switching instruction is stored in a message queue of a preset database, so that the service application system processes the switching instruction in the message queue to switch the idle service instance from the original service application to the first destination service application.

6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: Acquire at least one second purpose business application that has a periodic peak period and meets the business instance expansion conditions; At a preset time point before the peak period arrives, an idle service instance is obtained, so that the service application system switches the idle service instance from the original service application to the second destination service application.

7. The method according to any one of claims 2 to 5, characterized in that: The method further comprises: Determine the real-time processing status data of the service according to the original service operation data; The real-time business processing status data is displayed so that the user can determine whether to adjust the number of business instances of the corresponding business application according to the real-time business processing status data.

8. A service processing device, characterized in that: include: An acquisition module is used to acquire processing performance data of various business applications in the process of processing business; the processing performance data includes any one or more of the following data: network time consumption for processing a single batch of business, processing business load ratio, and single batch business processing time; A judgment module, used to judge whether each business application meets the business instance expansion condition according to the processing performance data; A determination module, configured to determine an idle business instance if it is determined that the business instance expansion condition is met, so that the business application system switches the idle business instance from the original business application to a first destination business application, wherein the first destination business application is a business application that meets the business instance expansion condition; the idle business instance is a business instance in a business application that meets the business instance reduction condition; the business instance reduction condition is that the actual business processing efficiency of the business application or the proportion of the business load processed by the business application fails to reach a corresponding preset value for multiple consecutive times; The judgment module is specifically used to judge whether any type of processing performance data reaches the corresponding preset performance threshold for multiple consecutive times; if it is determined that any type of processing performance data reaches the corresponding preset performance threshold for multiple consecutive times, it is determined that the business instance expansion condition is met.

9. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 7 when executed by a processor.

11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Resource pool management system and management method

    CN105357251A