CN115700483A - Timeout time information configuration method and device, storage medium and computer equipment - Google Patents

Timeout time information configuration method and device, storage medium and computer equipment Download PDF

Info

Publication number
CN115700483A
CN115700483A CN202211391526.8A CN202211391526A CN115700483A CN 115700483 A CN115700483 A CN 115700483A CN 202211391526 A CN202211391526 A CN 202211391526A CN 115700483 A CN115700483 A CN 115700483A
Authority
CN
China
Prior art keywords
task
node
time
target
target node
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
CN202211391526.8A
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.)
Ping An E Wallet Electronic Commerce Co Ltd
Original Assignee
Ping An E Wallet Electronic Commerce Co Ltd
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 Ping An E Wallet Electronic Commerce Co Ltd filed Critical Ping An E Wallet Electronic Commerce Co Ltd
Priority to CN202211391526.8A priority Critical patent/CN115700483A/en
Publication of CN115700483A publication Critical patent/CN115700483A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a timeout time information configuration method and device, a storage medium and computer equipment, relates to the technical field of information processing, and mainly aims to solve the problem of low accuracy of timeout time information configuration. The method mainly comprises the steps of responding to a node task completion instruction of an associated node, and obtaining residual task execution time and node information of a target calling node, wherein the associated node is any non-end node in the calling process of a plurality of medical service systems, and the node information comprises resource configuration information and a target node task; determining the expected target node task time consumption of the target calling node according to the resource configuration information and the target node task; and configuring the overtime time of the remaining task according to the comparison result of the expected target node task time consumption and the remaining task execution time and a preset overtime configuration strategy. The method is mainly used for configuring the timeout time of the multi-medical service system calling process.

Description

Timeout time information configuration method and device, storage medium and computer equipment
Technical Field
The present invention relates to the field of information processing, and in particular, to a method and an apparatus for configuring timeout information, a storage medium, and a computer device.
Background
With the development of internet technology, the connection between different business systems is more and more compact. In the execution process of a service, multi-level calling of a plurality of systems is often involved. For example, querying a supplier of a certain type of drug requires calling the drug administration system from the hospital administration system, and there are multiple levels of calls to call the drug procurement management system from the drug administration system. In order to ensure the timeliness of service processing and avoid the problem that in the process of multi-system calling, due to the fact that a certain link has a problem and is called indefinitely, an overtime is often set to limit the time length of task execution.
The configuration of the existing timeout information is usually to set a timeout time at a first node for task execution, and the first task execution node performs timing, and when the timing time is greater than the timeout time, the node for processing the first service interrupts execution of the service. However, in the whole service processing process, the processing speed of each node on the service is influenced by various factors, the fluctuation is large, and the condition that the service processing time exceeds the preset timeout time is easily generated, so that the service processing process is interrupted, the service related to multi-system calling is caused, and the success rate of service processing is low.
Disclosure of Invention
In view of the above, the present invention provides a timeout information configuration method and apparatus, a storage medium, and a computer device, and mainly aims to solve the problem that the success rate of service processing is low in the existing service related to multi-system call.
According to an aspect of the present invention, there is provided a timeout information configuring method, including:
responding to a node task completion instruction of an associated node, and acquiring the execution time of the remaining task and node information of a target calling node, wherein the associated node is any non-end node in the calling process of a plurality of medical service systems, and the node information comprises resource configuration information and a target node task;
determining the expected target node task time consumption of the target calling node according to the resource configuration information and the target node task;
and configuring the overtime time of the remaining task according to the comparison result of the expected target node task time consumption and the remaining task execution time and a preset overtime configuration strategy.
Further, the configuring the remaining task timeout time according to the comparison result between the expected target node task time consumption and the remaining task execution time and a preset timeout time configuration policy includes:
if the expected target node task time consumption is less than or equal to the residual task execution time, configuring residual task timeout time based on the residual task execution time;
if the expected target node task time consumption is larger than the residual task execution time, and the proportion of the difference value of the expected target node task time consumption and the residual task execution time to the residual task execution time is smaller than a preset proportion threshold value, configuring residual task overtime time based on the expected target node task time consumption;
and if the expected target node task time consumption is greater than the residual task execution time, and the proportion of the difference value between the expected target node task time consumption and the residual task execution time to the residual task execution time is greater than or equal to a preset proportion threshold value, interrupting the task calling of the target calling node, and generating overtime abnormal information.
Further, the resource configuration information includes hardware configuration information and network configuration information, and determining an expected target node task time consumption of the target call node according to the resource configuration information and the target node task includes:
calculating to obtain the time consumption of the first target node task according to the historical time consumption data corresponding to the target node task;
calculating to obtain task time consumption of a second target node according to the task content of the target node task, the hardware configuration information and the network configuration information;
and determining the larger time value of the first target node task time consumption and the second target node task time consumption as the expected target node task time consumption.
Further, the calculating the time consumed by the first target node task according to the historical time consumed data corresponding to the target node task includes:
acquiring historical time consumption data of the target calling node for executing the target node task in a preset historical time period, wherein the historical time consumption data comprises target node task completion time consumption and target node task failure time consumption;
and calculating to obtain distribution data between the task completion rate and the task consumed time according to the historical consumed time data, and determining the task consumed time corresponding to the maximum task completion rate in the distribution data as the task consumed time of the first target node.
Further, before the responding to the node task completion instruction of the associated node and acquiring the residual task execution time and the node information of the target call node, the method further includes:
responding to an initial task execution instruction, monitoring the execution process of the associated node executing the initial task execution instruction, and determining the time consumed by the node task and the target calling node, wherein the initial task execution instruction carries the initial task timeout time;
and calculating to obtain the execution time of the residual task according to the initial task timeout time and the task consumption time of the completed node.
Further, after calculating the remaining task execution time according to the initial task timeout time and the completed node task consumption time, the method further includes:
if the execution time of the residual task is less than a preset residual time threshold, generating overtime abnormal information for indicating the overtime execution of the global task;
and sending the overtime abnormal information to the last node of the associated node or the target terminal.
Further, after configuring the remaining task timeout time according to the comparison result between the expected target node task time consumption and the remaining task execution time and a preset timeout time configuration policy, the method further includes:
and sending the residual task timeout time to the associated node so that the associated node generates a target task execution instruction for sending to the target calling node according to the residual task timeout time and the target node task, wherein the execution process of the target task execution instruction comprises calling of at least one node.
According to another aspect of the present invention, there is provided a time information configuring apparatus including:
the acquisition module is used for responding to a node task completion instruction of an associated node, acquiring the execution time of the remaining task and node information of a target calling node, wherein the associated node is any non-end node in the calling process of a plurality of medical service systems, and the node information comprises resource configuration information and a target node task;
the determining module is used for determining the expected target node task time consumption of the target calling node according to the resource configuration information and the target node task;
and the configuration module is used for configuring the overtime time of the residual task according to the comparison result of the expected target node task time consumption and the residual task execution time and a preset overtime configuration strategy.
Further, the configuration module includes:
a first configuration unit, configured to configure a remaining task timeout time based on the remaining task execution time if the expected target node task time consumption is less than or equal to the remaining task execution time;
a second configuration unit, configured to configure a remaining task timeout time based on the expected target node task time consumption if the expected target node task time consumption is greater than the remaining task execution time, and a proportion of a difference between the expected target node task time consumption and the remaining task execution time to the remaining task execution time is less than a preset proportion threshold;
and the generating unit is used for interrupting the calling task of the target calling node and generating overtime abnormal information if the expected target node task time consumption is greater than the residual task execution time and the proportion of the difference value of the expected target node task time consumption and the residual task execution time in the residual task execution time is greater than or equal to a preset proportion threshold.
Further, the determining module includes:
the first calculating unit is used for calculating the time consumption of the first target node task according to the historical time consumption data corresponding to the target node task;
the second computing unit is used for computing the time consumption of a second target node task according to the task content of the target node task, the hardware configuration information and the network configuration information;
and the determining unit is used for determining the larger time value of the first target node task time consumption and the second target node task time consumption as the expected target node task time consumption.
Further, in a specific application scenario, the determining unit is specifically configured to obtain historical time-consuming data of the target calling node executing the target node task within a preset historical time period, where the historical time-consuming data includes time consumed for completing the target node task and time consumed for failing the target node task;
and calculating to obtain distribution data between the task completion rate and the task consumed time according to the historical consumed time data, and determining the task consumed time corresponding to the maximum task completion rate in the distribution data as the task consumed time of the first target node.
Further, the apparatus further comprises:
the monitoring module is used for responding to an initial task execution instruction, monitoring the execution process of the initial task execution instruction executed by the associated node, and determining the time consumed by the task of the completed node and the target calling node, wherein the initial task execution instruction carries the initial task timeout time;
and the computing module is also used for computing to obtain the residual task execution time according to the initial task timeout time and the completed node task time consumption.
Further, the apparatus further comprises:
the generating module is used for generating overtime abnormal information used for indicating the execution overtime of the global task if the execution time of the residual task is smaller than a preset residual time threshold;
and the first sending module is used for sending the overtime abnormal information to the last node of the associated node or the target terminal.
Further, the apparatus further comprises:
and the second sending module is used for sending the residual task timeout time to the associated node so that the associated node generates a target task execution instruction used for being sent to the target calling node according to the residual task timeout time and the target node task, and the execution process of the target task execution instruction comprises calling of at least one node.
According to another aspect of the present invention, there is provided a storage medium having at least one executable instruction stored therein, where the executable instruction causes a processor to perform operations corresponding to the timeout information configuring method.
According to still another aspect of the present invention, there is provided a computer apparatus including: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the operation corresponding to the timeout time information configuration method.
By the technical scheme, the technical scheme provided by the embodiment of the invention at least has the following advantages:
the invention provides a method and a device for configuring overtime time information, a storage medium and computer equipment, wherein the embodiment of the invention acquires the residual task execution time and the node information of a target calling node by responding to a node task completion instruction of a related node, wherein the related node is any non-end node in the calling process of a plurality of medical service systems, and the node information comprises resource configuration information and a target node task; determining the expected target node task time consumption of the target calling node according to the resource configuration information and the target node task; and configuring the remaining task timeout time according to the comparison result of the expected target node task time consumption and the remaining task execution time and a preset timeout time configuration strategy, so that the operating resource consumption is greatly reduced, the response capability of each called system is improved, the dynamic adjustment of the remaining task timeout time is realized, and the task execution efficiency is ensured while the success rate of the multi-system calling task is effectively improved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 shows a flowchart of a timeout information configuration method provided by an embodiment of the present invention;
fig. 2 is a flowchart illustrating another timeout information configuring method according to an embodiment of the present invention;
fig. 3 is a flowchart of another timeout information configuration method provided in an embodiment of the present invention;
fig. 4 shows a block diagram of a timeout information configuring apparatus according to an embodiment of the present invention;
fig. 5 shows a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The method aims at the technical problems of existing overtime information configuration and low success rate of service processing. An embodiment of the present invention provides a timeout information configuration method, as shown in fig. 1, the method includes:
101. and responding to the node task completion instruction of the associated node, and acquiring the residual task execution time and the node information of the target calling node.
In the embodiment of the invention, the tasks to be executed are tasks related to calling among multiple medical service systems. Each called system is a node, and the node task is a part of tasks which need to be executed by the current node in the tasks to be executed. Each system in the calling process is configured with a timeout information configuration plug-in. The timeout time information configuration plug-in is used for configuring the timeout time information of the subsequent node, namely the execution main body. And configuring the plug-in for the timeout time information, wherein the system where the plug-in is located is the associated node of the plug-in. The associated node may be any non-end node of a plurality of healthcare system call procedures. That is, the associated node may be an initial node or an intermediate node of a multi-system call procedure. The remaining task execution time is timeout time set based on the previous node, and time which can be used for executing the task remains after the current associated node completes the node task. The target calling node is the next system (node) which needs to be called by the current associated node in the process of executing the task. The node information of the target calling node comprises resource configuration information and a target node task.
It should be noted that, in the existing timeout time configuration method, only the task initiating node senses the timeout time information, but the candidate called node does not sense the timeout time information, so that when the task initiating node responds to the fact that the task processing time exceeds the timeout time and interrupts the task, the called node still executes the interrupted task, and unnecessary resource loss is caused. The residual task execution time is obtained by configuring the overtime information configuration plug-in unit in each expected called system, so that any called node can sense the overtime, and the execution of the task is stopped in time after the overtime is exceeded, thereby reducing the consumption of running resources and improving the response performance of each system.
102. And determining the expected target node task time consumption of the target call node according to the resource configuration information and the target node task.
In the embodiment of the invention, because the task processing progress of the target calling node cannot be sensed within the fixed overtime, the overtime is easily judged to be abnormal when the target calling node is about to finish the task processing, unnecessary system calling failure is generated, the retry frequency is increased, and the time consumption of task processing is prolonged. In order to realize the perception of overtime configuration on the node task processing state, the expected time consumption of the target node task is determined based on the task processing capacity and speed represented by the resource configuration information of the target calling node and the task quantity represented by the target node task. The target node task is a part of tasks required to be executed by the target calling node. The expected target node task time consumption is an expected value of the time consumed by the target calling node to execute the target node task corresponding to the node. The estimation of the task processing time consumption of the target calling node can be realized by determining the expected target node task time consumption, accurate data basis is provided for dynamic configuration of the residual task timeout time, the configuration of the residual task timeout time can be ensured to meet the requirement of the target calling node on the target node task execution time, and therefore the execution success rate of the calling task related to the multi-medical service system is effectively improved.
103. And configuring the overtime time of the remaining task according to the comparison result of the expected target node task time consumption and the residual task execution time and a preset overtime time configuration strategy.
In the embodiment of the present invention, after the expected target node task time consumption is obtained, in order to avoid as much as possible failure caused by abnormal timeout in task execution, it is necessary to ensure that the remaining task timeout time for completing configuration is greater than or equal to the expected target node task time consumption. However, in order to ensure the task execution efficiency, the remaining task timeout time cannot be completely configured according to the expected time consumption of the target node task without limitation. Therefore, the remaining task timeout time needs to be configured based on a comparison result between the expected target node task time consumed by the target call node to execute the target node task and the remaining task execution time, and a preset timeout time configuration policy. The preset timeout period configuration strategy may specifically be to determine the remaining task timeout period according to a comparison result between the expected target node task time consumption and the remaining task execution time, and a proportion of a difference value between the expected target node task time consumption and the remaining task execution time to the remaining task execution time. For example, if the expected target node task time consumption is less than or equal to the remaining task execution time, the remaining task execution time is configured as the remaining task timeout time. If the expected target node task time consumption is larger than the residual task execution time, and the proportion of the difference value of the expected target node task time consumption and the residual task execution time to the residual task execution time is smaller than a preset proportion threshold value, configuring the expected target node task time consumption as residual task overtime time; and if the proportion of the difference value between the expected target node task time consumption and the residual task execution time to the residual task execution time is greater than a preset proportion threshold value, interrupting the current task and throwing out the overtime exception.
It should be noted that the remaining task timeout time is configured based on the comparison result between the expected target node task time consumption and the remaining task execution time, and the preset timeout time configuration policy, so that the configuration of the remaining task timeout time is ensured within a reasonable range, the time requirement for node task processing is met to the maximum extent, and the dynamic adjustment of the remaining task timeout time is realized, thereby greatly improving the success rate of multi-system call tasks and ensuring the task execution efficiency.
For further explanation and limitation, as shown in fig. 2, in step 103, configuring the remaining task timeout time according to the comparison result between the expected target node task time consumption and the remaining task execution time and a preset timeout time configuration policy, includes:
201. and if the expected target node task time consumption is less than or equal to the residual task execution time, configuring the residual task timeout time based on the residual task execution time.
202. And if the expected target node task time consumption is greater than the residual task execution time, and the proportion of the difference value between the expected target node task time consumption and the residual task execution time in the residual task execution time is less than a preset proportion threshold, configuring the residual task timeout time based on the expected target node task time consumption.
203. And if the expected target node task time consumption is greater than the residual task execution time, and the proportion of the difference value between the expected target node task time consumption and the residual task execution time to the residual task execution time is greater than or equal to a preset proportion threshold value, interrupting the task calling of the target calling node, and generating overtime abnormal information.
In the embodiment of the invention, the expected target node task time consumption is compared with the residual task execution time to judge whether the residual task execution time can meet the time for the target calling node to complete the target node task, and if the residual task execution time can meet the time, the sum of the residual task execution time and the preset time parameter can be used as the residual task overtime time to limit the execution time consumption of the residual task. The preset time parameter may be 0s, 1s, or the like, or may be self-defined according to actual requirements, and embodiments of the present invention are not specifically limited. If not, further judging whether the time length consumed by the task of the expected target node is too long or not, wherein the time length consumed by the task of the expected target node is too long. Namely, the comparison result of the proportion of the difference value between the expected target node task time consumption and the residual task execution time in the residual task execution time and a preset proportion threshold value. The preset specific gravity threshold value can be 0.2, 0.5 and the like, and can also be customized according to a specific application scene. For example, if the preset specific gravity threshold is 0.5, it indicates that the expected target node task time exceeds the time for 0.5 times of the remaining task execution time, the time is too long, the current task needs to be interrupted, and the timeout exception is thrown out.
It should be noted that when the expected target node task time consumption is greater than the remaining task execution time, the further determination is performed based on the proportion of the difference between the expected target node task time consumption and the remaining task execution time to the remaining task execution time and the preset proportion threshold, so that the condition that the time for processing the task by the target call node is far greater than the remaining task execution time can be timely found, the target node task is still processed under the condition that the remaining task execution time is obviously insufficient, resource waste of the target call node is avoided, and resource consumption caused by timeout abnormality is effectively reduced.
For further explanation and limitation, in an embodiment of the present invention, as shown in fig. 3, the determining, in step 102, an expected target node task time consumption of the target invocation node according to the resource configuration information and the target node task includes:
301. and calculating to obtain the time consumption of the first target node task according to the historical time consumption data corresponding to the target node task.
302. And calculating the task time consumption of the second node according to the task content of the target node task, the hardware configuration information and the network configuration information.
303. And determining the larger time value of the first node task time consumption and the second node task time consumption as the expected target node task time consumption.
In the embodiment of the invention, as the target node tasks are calling tasks among medical service systems, the use frequency is high, the task implementation process is fixed, historical time-consuming data corresponding to each target node task can be obtained, analysis and statistics are carried out based on the historical time-consuming data, the time-consuming data distribution of the historical time-consuming data can be determined, and the time consumption of the first target node task determined from the historical data analysis perspective is further obtained. In addition, the resource configuration information of the system corresponding to the target calling node plays a decisive role in the time consumption of the processing of the target node task. The resource configuration information comprises hardware configuration information and network configuration information. Hardware configuration information, such as an operating memory, a memory utilization rate and the like, can reflect the processing efficiency of the target calling node on the task; the network configuration information, such as network bandwidth, current network state and the like, can reflect the response speed of the target calling node to the task. Therefore, analysis can be performed based on task content based on hardware configuration, network configuration, and target node task to determine that the second target node task is time consuming from the perspective of server processing efficiency. In order to make the inclusion of the task time consumption of the expected target node stronger, the maximum time consumption of the task time consumption of the first target node and the task time consumption of the second target node is taken as the task time consumption of the expected target node.
It should be noted that by evaluating the task time consumption of the expected target node in combination with the historical data analysis angle and the server processing efficiency angle, the task processing capability of the target calling node can be comprehensively evaluated, so that the accuracy of predicting the task time consumption of the expected target node is improved.
In an embodiment of the present invention, for further explanation and limitation, the step 301 of calculating the time consumption of the first target node task according to the historical time consumption data corresponding to the target node task includes:
and acquiring historical time-consuming data of the target calling node for executing the target node task in a preset historical time period.
And calculating to obtain distribution data between the task completion rate and the task consumed time according to the historical consumed time data, and determining the task consumed time corresponding to the maximum task completion rate in the distribution data as the task consumed time of the first target node.
In the embodiment of the invention, the historical time consumption data comprises the time consumption for completing the task of the target node and the time consumption for failing the task of the target node. Due to the fact that failure and successful completion of task processing exist, when historical time consumption data are counted, the time consumption of task completion of the target node and the time consumption of task failure of the target node are combined to conduct statistical calculation, normal distribution data between the task completion rate and the task time consumption are obtained, and the task time consumption corresponding to the time when the task completion rate is the maximum in the normal distribution data is used as the first target node task time consumption. The normal distribution data between the task completion rate and the task consumed time is obtained by counting the historical consumed time data, the task processing consumed time which enables the task completion rate to reach the maximum can be accurately captured, and therefore the task consumed time effectiveness of the first target node is improved.
In an embodiment of the present invention, for further explanation and limitation, before the obtaining the remaining task execution time and the node information of the target call node in response to the node task completion instruction of the associated node, the method further includes:
responding to an initial task execution instruction, monitoring the execution process of the initial task execution instruction executed by the associated node, and determining the time-consuming and target calling node of the completed node task.
And calculating to obtain the execution time of the residual task according to the initial task timeout time and the task consumption time of the completed node.
In the embodiment of the invention, the initial task execution instruction carries the initial task timeout time. The time consumed by the completed node task is the time consumed by the associated node to process the current task. The initial task execution instruction is a call instruction of a previous node received by the associated node, or a complete task execution instruction when the associated node is used as the initial task execution node. And when the associated node is the initial node, the initial task timeout time is the system preset timeout time. And when the associated node is an intermediate node, the initial task timeout time is the residual task timeout time configured by the timeout time information configuration plug-in associated with the previous node. And determining the time consumed by the task of the completed node and the target calling node by executing the time consumed by the task of the associated node and calling the next node, and further determining the execution time of the residual task.
In an embodiment of the present invention, for further explanation and limitation, after calculating a remaining task execution time according to the initial task timeout time and the completed node task time, the method further includes:
and if the residual task execution time is less than a preset residual time threshold, generating overtime abnormal information for indicating the execution overtime of the global task.
And sending the overtime abnormal information to the last node of the associated node or the target terminal.
In the embodiment of the invention, if the remaining time after the current associated node executes the task is monitored to be too short, for example, the remaining task execution time is 0.5s, it is indicated that the current associated node consumes too long time, further analysis and judgment are not needed, it is known that the next target calling node has insufficient time to process the remaining task, and the task is directly interrupted. If the current associated node is an initial node, overtime abnormal information is sent to the corresponding terminal, if the current associated node is an intermediate node, the overtime abnormal information is fed back to the previous node, and the previous node is transmitted to the terminal needing to receive the overtime abnormal information layer by layer. After the residual task execution time is obtained, the judgment is carried out based on the preset residual time threshold, the residual task execution time can be preliminarily screened, the situations that the current associated node consumes too long time or the residual task execution time is too short are found in time, and the task is interrupted in time, so that the resource consumption is reduced, and the task processing efficiency is improved.
In an embodiment of the present invention, for further explanation and limitation, after configuring the remaining task timeout period according to the comparison result between the expected target node task time consumption and the remaining task execution time and a preset timeout period configuration policy, the method further includes:
and sending the residual task timeout time to the associated node so that the associated node generates a target task execution instruction for sending to the target calling node according to the residual task timeout time and the target node task.
In the embodiment of the invention, the execution main body is a timeout time information configuration plug-in, and the remaining task timeout time needs to be transmitted to the target calling node based on the associated node. Therefore, after the configuration of the remaining task timeout time is completed, the configured remaining task timeout time needs to be sent to the associated node, the associated node generates a target task execution instruction based on the remaining task timeout time and the target node task, and sends the target task execution instruction to the target call node. The target task execution instruction is an initial task execution instruction of the target calling node.
The invention provides a timeout time information configuration method, which includes the steps that a node task completion instruction of an associated node is responded, the execution time of a residual task and node information of a target calling node are obtained, the associated node is any non-end node in the calling process of a plurality of medical service systems, and the node information comprises resource configuration information and the target node task; determining the expected target node task time consumption of the target calling node according to the resource configuration information and the target node task; and configuring the remaining task timeout time according to the comparison result of the expected target node task time consumption and the remaining task execution time and a preset timeout time configuration strategy, so that the running resource consumption is greatly reduced, the response capability of each called system is improved, the dynamic adjustment of the remaining task timeout time is realized, the success rate of the multi-system calling tasks is effectively improved, and the task execution efficiency is ensured.
Further, as an implementation of the method shown in fig. 1, an embodiment of the present invention provides an apparatus, as shown in fig. 4, where the apparatus includes:
an obtaining module 41, configured to obtain a remaining task execution time and node information of a target call node in response to a node task completion instruction of an associated node, where the associated node is any non-end node in a plurality of medical service system call processes, and the node information includes resource configuration information and a target node task;
a determining module 42, configured to determine, according to the resource configuration information and the target node task, an expected target node task time consumption of the target call node;
and a configuration module 43, configured to configure the remaining task timeout time according to a comparison result between the expected target node task time consumption and the remaining task execution time, and a preset timeout time configuration policy.
Further, the configuration module 43 includes:
a first configuration unit, configured to configure a remaining task timeout time based on the remaining task execution time if the expected target node task time consumption is less than or equal to the remaining task execution time;
a second configuration unit, configured to configure a remaining task timeout time based on the expected target node task time consumption if the expected target node task time consumption is greater than the remaining task execution time, and a proportion of a difference between the expected target node task time consumption and the remaining task execution time to the remaining task execution time is less than a preset proportion threshold;
and the generating unit is used for interrupting the calling task of the target calling node and generating overtime abnormal information if the expected target node task time consumption is greater than the residual task execution time and the proportion of the difference value of the expected target node task time consumption and the residual task execution time in the residual task execution time is greater than or equal to a preset proportion threshold.
Further, the determining module 42 includes:
the first calculating unit is used for calculating the time consumption of the first target node task according to the historical time consumption data corresponding to the target node task;
the second computing unit is used for computing the time consumption of a second target node task according to the task content of the target node task, the hardware configuration information and the network configuration information;
and the determining unit is used for determining the larger time value of the first target node task time consumption and the second target node task time consumption as the expected target node task time consumption.
Further, in a specific application scenario, the determining unit is specifically configured to obtain historical time-consuming data of the target calling node executing the target node task within a preset historical time period, where the historical time-consuming data includes time consumed for completing the target node task and time consumed for failing the target node task;
and calculating to obtain distribution data between the task completion rate and the task consumed time according to the historical consumed time data, and determining the task consumed time corresponding to the maximum task completion rate in the distribution data as the task consumed time of the first target node.
Further, the apparatus further comprises:
the monitoring module is used for responding to an initial task execution instruction, monitoring the execution process of the initial task execution instruction executed by the associated node, and determining the time consumed by the task of the completed node and the target calling node, wherein the initial task execution instruction carries the initial task timeout time;
and the computing module is also used for computing to obtain the residual task execution time according to the initial task timeout time and the completed node task time consumption.
Further, the apparatus further comprises:
the generating module is used for generating overtime abnormal information used for indicating the execution overtime of the global task if the residual task execution time is smaller than a preset residual time threshold;
and the first sending module is used for sending the overtime abnormal information to the last node of the associated node or the target terminal.
Further, the apparatus further comprises:
and the second sending module is used for sending the residual task timeout time to the associated node so that the associated node generates a target task execution instruction for sending to the target calling node according to the residual task timeout time and the target node task, and the execution process of the target task execution instruction includes calling at least one node.
The invention provides a timeout time information configuration device, which is characterized in that a node task completion instruction of an associated node is responded, and the execution time of a residual task and the node information of a target calling node are obtained, wherein the associated node is any non-end node in the calling process of a plurality of medical service systems, and the node information comprises resource configuration information and a target node task; determining the expected target node task time consumption of the target calling node according to the resource configuration information and the target node task; and configuring the remaining task timeout time according to the comparison result of the expected target node task time consumption and the remaining task execution time and a preset timeout time configuration strategy, so that the operating resource consumption is greatly reduced, the response capability of each called system is improved, the dynamic adjustment of the remaining task timeout time is realized, and the task execution efficiency is ensured while the success rate of the multi-system calling task is effectively improved.
According to an embodiment of the present invention, a storage medium is provided, where the storage medium stores at least one executable instruction, and the computer executable instruction can execute the timeout information configuring method in any of the above method embodiments.
Fig. 5 is a schematic structural diagram of a computer device according to an embodiment of the present invention, and the specific embodiment of the present invention does not limit the specific implementation of the computer device.
As shown in fig. 5, the computer apparatus may include: a processor (processor) 502, a Communications Interface 504, a memory 506, and a communication bus 508.
Wherein: the processor 502, communication interface 504, and memory 506 communicate with each other via a communication bus 508.
A communication interface 504 for communicating with network elements of other devices, such as clients or other servers.
The processor 502 is configured to execute the program 510, and may specifically execute relevant steps in the above embodiment of the timeout information configuration method.
In particular, program 510 may include program code that includes computer operating instructions.
The processor 502 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement an embodiment of the invention. The computer device includes one or more processors, which may be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
A memory 506 for storing a program 510. The memory 506 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 510 may specifically be used to cause the processor 502 to perform the following operations:
responding to a node task completion instruction of an associated node, and acquiring the execution time of the remaining task and node information of a target calling node, wherein the associated node is any non-end node in the calling process of a plurality of medical service systems, and the node information comprises resource configuration information and a target node task;
determining the expected target node task time consumption of the target call node according to the resource configuration information and the target node task;
and configuring the overtime time of the remaining task according to the comparison result of the expected target node task time consumption and the remaining task execution time and a preset overtime configuration strategy.
It will be apparent to those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and optionally they may be implemented in program code executable by a computing device, such that they may be stored in a memory device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made without departing from the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. A method for configuring timeout information, comprising:
responding to a node task completion instruction of an associated node, and acquiring residual task execution time and node information of a target calling node, wherein the associated node is any non-last node in the calling process of a plurality of medical service systems, and the node information comprises resource configuration information and a target node task;
determining the expected target node task time consumption of the target call node according to the resource configuration information and the target node task;
and configuring the overtime time of the remaining task according to the comparison result of the expected target node task time consumption and the remaining task execution time and a preset overtime configuration strategy.
2. The method of claim 1, wherein configuring the remaining task timeout period according to the comparison of the expected target node task elapsed time and the remaining task execution time and a preset timeout period configuration policy comprises:
if the expected target node task time consumption is less than or equal to the residual task execution time, configuring residual task timeout time based on the residual task execution time;
if the expected target node task time consumption is larger than the residual task execution time, and the proportion of the difference value of the expected target node task time consumption and the residual task execution time to the residual task execution time is smaller than a preset proportion threshold value, configuring residual task overtime time based on the expected target node task time consumption;
and if the expected target node task time consumption is greater than the residual task execution time, and the proportion of the difference value between the expected target node task time consumption and the residual task execution time to the residual task execution time is greater than or equal to a preset proportion threshold value, interrupting the task calling of the target calling node, and generating overtime abnormal information.
3. The method according to claim 1, wherein the resource configuration information includes hardware configuration information and network configuration information, and the determining an expected target node task time consumption of the target call node according to the resource configuration information and the target node task includes:
calculating to obtain the time consumption of the first target node task according to the historical time consumption data corresponding to the target node task;
calculating to obtain the task time consumption of a second target node according to the task content of the target node task, the hardware configuration information and the network configuration information;
and determining the larger time value of the first target node task time consumption and the second target node task time consumption as the expected target node task time consumption.
4. The method according to claim 3, wherein the step of calculating the time consumption of the first target node task according to the historical time consumption data corresponding to the target node task comprises:
acquiring historical time consumption data of the target calling node for executing the target node task in a preset historical time period, wherein the historical time consumption data comprises target node task completion time consumption and target node task failure time consumption;
and calculating to obtain distribution data between the task completion rate and the task consumed time according to the historical consumed time data, and determining the task consumed time corresponding to the maximum task completion rate in the distribution data as the task consumed time of the first target node.
5. The method according to claim 1, wherein before the obtaining of the remaining task execution time and the node information of the target call node in response to the node task completion instruction of the associated node, the method further comprises:
responding to an initial task execution instruction, monitoring the execution process of the associated node executing the initial task execution instruction, and determining the time consumed by the node task and the target calling node, wherein the initial task execution instruction carries the initial task timeout time;
and calculating to obtain the execution time of the residual task according to the initial task timeout time and the task consumption time of the completed node.
6. The method of claim 5, wherein after calculating a remaining task execution time according to the initial task timeout time and the completed node task elapsed time, the method further comprises:
if the execution time of the residual task is less than a preset residual time threshold, generating overtime abnormal information for indicating the overtime execution of the global task;
and sending the overtime abnormal information to the last node of the associated node or the target terminal.
7. The method of claim 1, wherein after configuring the remaining task timeout time according to the comparison of the expected target node task consumption time and the remaining task execution time and a preset timeout time configuration policy, the method further comprises:
and sending the residual task timeout time to the associated node so that the associated node generates a target task execution instruction used for being sent to the target call node according to the residual task timeout time and the target node task, wherein the execution process of the target task execution instruction comprises calling of at least one node.
8. An apparatus for configuring timeout information, comprising:
the acquisition module is used for responding to a node task completion instruction of an associated node, acquiring residual task execution time and node information of a target calling node, wherein the associated node is any non-end node in the calling process of a plurality of medical service systems, and the node information comprises resource configuration information and the target node task;
the determining module is used for determining the expected target node task time consumption of the target calling node according to the resource configuration information and the target node task;
and the configuration module is used for configuring the overtime time of the residual task according to the comparison result of the expected target node task time consumption and the residual task execution time and a preset overtime configuration strategy.
9. A storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to perform operations corresponding to the timeout information configuration method of any one of claims 1 to 7.
10. A computer device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the operation corresponding to the timeout information configuration method in any one of claims 1 to 7.
CN202211391526.8A 2022-11-08 2022-11-08 Timeout time information configuration method and device, storage medium and computer equipment Pending CN115700483A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211391526.8A CN115700483A (en) 2022-11-08 2022-11-08 Timeout time information configuration method and device, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211391526.8A CN115700483A (en) 2022-11-08 2022-11-08 Timeout time information configuration method and device, storage medium and computer equipment

Publications (1)

Publication Number Publication Date
CN115700483A true CN115700483A (en) 2023-02-07

Family

ID=85121089

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211391526.8A Pending CN115700483A (en) 2022-11-08 2022-11-08 Timeout time information configuration method and device, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN115700483A (en)

Similar Documents

Publication Publication Date Title
CN111818159B (en) Management method, device, equipment and storage medium of data processing node
CN111625331B (en) Task scheduling method, device, platform, server and storage medium
CN109656782A (en) Visual scheduling monitoring method, device and server
CN113067875B (en) Access method, device and equipment based on dynamic flow control of micro-service gateway
CN109769029B (en) Communication connection method based on electricity consumption information acquisition system and terminal equipment
CN111045811A (en) Task allocation method and device, electronic equipment and storage medium
CN114461335A (en) Elastic expansion method, device and equipment for virtual machine and container in cloud computing environment
CN112383585A (en) Message processing system and method and electronic equipment
CN107729213B (en) Background task monitoring method and device
CN111835809B (en) Work order message distribution method, work order message distribution device, server and storage medium
CN111831408A (en) Asynchronous task processing method and device, electronic equipment and medium
CN111586140A (en) Data interaction method and server
CN109670932B (en) Credit data accounting method, apparatus, system and computer storage medium
CN111352803A (en) Service data processing method, device, equipment and storage medium
CN116719623A (en) Job scheduling method, job result processing method and device
CN115700483A (en) Timeout time information configuration method and device, storage medium and computer equipment
CN112114938A (en) Transaction processing method and device and server
CN115712572A (en) Task testing method and device, storage medium and electronic device
CN111556043B (en) Message processing method, device, system, equipment and readable storage medium
CN115220993A (en) Process monitoring method, device, vehicle and storage medium
CN112463317A (en) Computer room task scheduling method and device, electronic equipment and storage medium
CN111158899A (en) Data acquisition method, data acquisition device, task management center and task management system
CN112965811A (en) Monitoring data optimization method and server
CN111651316A (en) Resource monitoring method, system, electronic equipment and storage medium
CN111352710A (en) Process management method and device, computing equipment and storage medium

Legal Events

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