CN114493310A - Method and device for determining risk value of task of operating system - Google Patents

Method and device for determining risk value of task of operating system Download PDF

Info

Publication number
CN114493310A
CN114493310A CN202210119173.XA CN202210119173A CN114493310A CN 114493310 A CN114493310 A CN 114493310A CN 202210119173 A CN202210119173 A CN 202210119173A CN 114493310 A CN114493310 A CN 114493310A
Authority
CN
China
Prior art keywords
node
risk level
delay risk
initial
delay
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
CN202210119173.XA
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.)
Agricultural Bank of China
Original Assignee
Agricultural Bank of China
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 Agricultural Bank of China filed Critical Agricultural Bank of China
Priority to CN202210119173.XA priority Critical patent/CN114493310A/en
Publication of CN114493310A publication Critical patent/CN114493310A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0635Risk analysis of enterprise or organisation activities
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Theoretical Computer Science (AREA)
  • Development Economics (AREA)
  • Marketing (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Technology Law (AREA)
  • Finance (AREA)
  • Educational Administration (AREA)
  • Accounting & Taxation (AREA)
  • Game Theory and Decision Science (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application provides a method, a device, equipment and a storage medium for determining a risk value of an operating system task, wherein the method comprises the following steps: acquiring parameters of each node in an operating system; determining the delay risk level of each node according to the parameters; and determining the delay risk level of the operating system according to the delay risk level of each node, and adjusting the numerical value of the initial operation time and the numerical value of the overdue threshold of the node with the delay risk level exceeding the preset delay risk level. By adopting the technical scheme, the delay risk level of a single node can be evaluated, the overall delay risk condition of the operating system can be further evaluated, and then the parameters of the nodes in the operating system can be adjusted according to the overall delay risk condition, so that the aim of reducing the delay rate of the actual operation of the nodes is fulfilled.

Description

Method and device for determining risk value of task of operating system
Technical Field
The present application relates to the field of business system operation technologies, and in particular, to a method, an apparatus, a device, and a storage medium for determining a risk value of an operating system task.
Background
At present, information exchange is often required for a financial-related business system background, and in order to ensure smooth implementation of business operations, each node in a job chain is generally brought into a unified monitoring and alarming platform for monitoring, so that an alarm is triggered when the operations are delayed.
However, the successful execution of the job chain is determined by a plurality of parameters, which include not only static parameters, such as setting of a delay threshold, the starting time of job chain tasks, the maximum allowable execution time of tasks, but also relationship conditions of tasks, such as serial and parallel connection between task nodes in the job chain, and parameters of the front and back sequence of tasks.
Therefore, a method for determining a risk value of an operating system task is needed, which can evaluate a delay risk level of a single node, further evaluate an overall delay risk situation of the operating system, and further adjust parameters of nodes in the operating system according to the overall delay risk situation, so as to achieve the purpose of reducing a delay rate of actual operations of the nodes.
Disclosure of Invention
The application provides a method, a device, equipment and a storage medium for determining a risk value of an operating system task, which can evaluate the delay risk level of a single node, further evaluate the overall delay risk condition of the operating system, and further adjust the parameters of the nodes in the operating system according to the overall delay risk condition so as to achieve the purpose of reducing the delay rate of the actual operation of the nodes.
In a first aspect, the present application provides a method for adjusting a parameter of a task node of an operating system, where the method includes:
acquiring parameters of each node in an operating system; wherein the parameters include: the numerical value of the initial operation time, the numerical value of the execution duration and the numerical value of the expiration threshold; the operating system comprises a plurality of nodes; wherein, different nodes have connection relation; the connection relation comprises series connection and parallel connection;
determining the delay risk level of each node according to the parameters;
and determining the delay risk level of the operating system according to the delay risk level of each node, and adjusting the numerical value of the initial operation time and the numerical value of the overdue threshold of the node with the delay risk level exceeding the preset delay risk level.
In one example, determining a delay risk level for each node based on the parameters includes:
calculating a delay risk level of an initial node and a delay risk level of a node connected with the initial node according to the parameters of the initial node, the initial operation time of the node connected with the initial node and the expiration threshold;
and determining the delay risk level of each node according to the delay risk level of the initial node and the delay risk level of the node connected with the initial node.
In one example, calculating a delay risk level of an initial node and a delay risk level of a node connected to the initial node according to the parameter of the initial node and the start job time and the expiration threshold of the node connected to the initial node comprises:
calculating the delay risk level of the initial node and the delay risk level of the node connected with the initial node according to the relation between the first sum and the second sum; wherein the first sum is the sum of the initial operation time of the initial node, the execution duration and the expiration threshold; the second sum is a sum of the start-job time and the timeout threshold of the node connected to the initial node.
In one example, data information of a node with a delay risk level exceeding a preset delay risk level is sent to a user to prompt the user to modify the starting operation time and the expiration threshold of the node.
In one example, adjusting the value of the start-of-job time for a node having a delay risk level exceeding a preset delay risk level comprises:
and calculating the delay allowance of the node with the delay risk level exceeding the preset delay risk level, and determining the initial operation time of the node connected with the node according to the delay allowance.
In a second aspect, the present application provides an apparatus for processing data information to be transacted, the apparatus comprising:
the acquisition unit is used for acquiring parameters of each node in the operating system; wherein the parameters include: the numerical value of the initial operation time, the numerical value of the execution duration and the numerical value of the expiration threshold; the operating system comprises a plurality of nodes; wherein, different nodes have connection relation; the connection relation comprises series connection and parallel connection;
the determining unit is used for determining the delay risk level of each node according to the parameters;
and the adjusting unit is used for determining the delay risk level of the operating system according to the delay risk level of each node, and adjusting the numerical value of the initial operation time and the numerical value of the expiration threshold of the node with the delay risk level exceeding the preset delay risk level.
A calculation module, configured to calculate a delay risk level of an initial node and a delay risk level of a node connected to the initial node according to the parameter of the initial node, the start operation time of the node connected to the initial node, and the timeout threshold;
and the determining module is used for determining the delay risk level of each node according to the delay risk level of the initial node and the delay risk level of the node connected with the initial node.
In one example, a computing module, comprising:
the calculation submodule is used for calculating the delay risk level of the initial node and the delay risk level of the node connected with the initial node according to the relation between the first sum and the second sum; wherein the first sum is the sum of the initial operation time of the initial node, the execution duration and the expiration threshold; the second sum is a sum of the start-of-job time and the expiration threshold of a node connected to the initial node.
In one example, the apparatus further comprises:
and the sending unit is used for sending the data information of the node with the delay risk level exceeding the preset delay risk level to a user so as to prompt the user to modify the initial operation time and the overdue threshold of the node.
In one example, an adjustment unit includes:
and the adjusting module is used for calculating the delay allowance of the node with the delay risk level exceeding the preset delay risk level and determining the initial operation time of the node connected with the node according to the delay allowance.
In a third aspect, the present application provides an electronic device, comprising: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored by the memory to implement the method of the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium having stored thereon computer-executable instructions for implementing the method according to the first aspect when executed by a processor.
In a fifth aspect, the present application provides a computer program product comprising a computer program which, when executed by a processor, implements the method according to the first aspect.
The application provides a method, a device, equipment and a storage medium for determining a risk value of an operating system task, wherein the method comprises the following steps: acquiring parameters of each node in an operating system; wherein the parameters include: the numerical value of the initial operation time, the numerical value of the execution duration and the numerical value of the overdue threshold; the operating system comprises a plurality of nodes; wherein, different nodes have connection relation; the connection relation comprises series connection and parallel connection; determining the delay risk level of each node according to the parameters; and determining the delay risk level of the operating system according to the delay risk level of each node, and adjusting the numerical value of the initial operation time and the numerical value of the overdue threshold of the node with the delay risk level exceeding the preset delay risk level. By adopting the technical scheme, the delay risk level of a single node can be evaluated, the overall delay risk condition of the operating system can be further evaluated, and then the parameters of the nodes in the operating system can be adjusted according to the overall delay risk condition, so that the aim of reducing the delay rate of the actual operation of the nodes is fulfilled.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
Fig. 1 is a flowchart illustrating a method for determining a risk value of an operating system task according to an embodiment of the present disclosure;
fig. 2 is a flowchart illustrating a method for adjusting parameters of task nodes of an operating system according to a second embodiment of the present application;
fig. 3 is a schematic structural diagram of a parameter adjustment apparatus for task nodes of an operating system according to a third embodiment of the present application;
fig. 4 is a schematic structural diagram of a parameter adjustment apparatus for task nodes of an operating system according to a fourth embodiment of the present application;
FIG. 5 is a block diagram illustrating an electronic device in accordance with an example embodiment.
With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the inventive concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like 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 application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The application provides a method for determining a risk value of an operating system task, and aims to solve the technical problems in the prior art.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 1 is a flowchart illustrating a method for determining a risk value of an operating system task according to an embodiment of the present disclosure. The method of the first embodiment comprises the following steps:
s101, acquiring parameters of each node in an operating system; wherein the parameters include: the numerical value of the initial operation time, the numerical value of the execution duration and the numerical value of the expiration threshold; the operating system comprises a plurality of nodes; wherein, different nodes have connection relation; the connection relationship includes series connection and parallel connection.
In one example, the operating system may be built by using a Neo4j graph database engine, where the Neo4j graph database is a high-performance NOSQL graph database engine with advantages of being embedded, high-performance, lightweight, and the like, and where the Neo4j graph database may include a plurality of nodes. The operating system comprises a plurality of nodes, and different nodes have connection relations.
The elements of each node include: node ID, task name, whether subtask exists, numerical value of overdue threshold, delay risk level, early warning response strategy definition, continuous successful execution frequency and other related information and information of the previous and subsequent nodes. In this embodiment, the nodes include two types: one is a rigid node, and the other is an elastic node; the rigid node is a node which cannot tolerate the overdue execution or the overdue execution can cause service failure, and the elastic node is the opposite node.
And S102, determining the delay risk level of each node according to the parameters.
In this embodiment, the delay risk level may be set by itself, for example, the delay risk level may be divided into 6 levels. The above grades can be divided into a lowest risk grade of 1 grade and a next lowest risk grade of 2 grade, which are sequentially arranged to a risk grade of 6 grade.
S103, determining the delay risk level of the operating system according to the delay risk level of each node, and adjusting the value of the initial operation time and the value of the overdue threshold of the node with the delay risk level exceeding the preset delay risk level.
In this embodiment, the delay risk level of the operating system can be obtained by summing up the numerical values obtained by multiplying the delay risk level of each node by the node depth of the node. For example, the delay risk level of each node is Ri, the node depth of the node is Di, the delay risk level of the operating system is R, and R ∑ Ri·Di,i=1,2,3...,n。
If a node with a delay risk level exceeding a preset delay risk level exists, the parameters of the node can be adjusted. For example, the value of the timeout threshold of the node may be adjusted, specifically, the value of the timeout threshold may be adjusted to be larger, but if the value of the start operation time of the node is in the deferred state after the value of the timeout threshold of the node is adjusted, the value of the start operation time of the node is adjusted. Specifically, a prediction suggestion can be provided by a triple standard deviation method, and a worker adjusts the node of the delay risk level according to the prompt of the node delay risk level, specifically, the adjustment is as follows:
the starting operation time of the node records the condition of the historical node according to a time sequence, the starting operation time of the node is recorded by a sample Ti, the starting operation time of the node is 0 point 0, sampling does not include an abnormal value exceeding an expiration threshold, because the starting operation time is adjusted, the abnormal condition is controlled by the expiration threshold, the average value of execution duration is Ta, and then the method is based on a standard deviation formula:
Figure BDA0003497709290000051
n, where n corresponds to the minute time at which the history node is successfully executed, and then the optional start job time parameter range provided for the user is: ta-3 sigma < xi < Ta +3 sigma, updating the parameter range of the initial operation time after each successful call, and obtaining the delay risk grade of the operation system and the delay risk grade of the current node in real time. And recording the numerical value of the execution duration of the operating system into a log so as to form an average sample under an average strategy.
Further, a parameter adjustment strategy of each node is configured, and a specific strategy has a complex design scheme. For example, the parameter scoping policy at the start of job time may be:
1. fixed T ═ Ta + standard deviation of the optional multiple σ, the multiple ranging from-3 to + 3;
2. setting T to Ta;
3. ta + is set to a fixed value, and the value is floated by Ta. Wherein, Ta is the value of the execution time length of the node.
The application provides a method, a device, equipment and a storage medium for determining a risk value of an operating system task, wherein the method comprises the following steps: acquiring parameters of each node in an operating system; wherein the parameters include: the numerical value of the initial operation time, the numerical value of the execution duration and the numerical value of the expiration threshold; the operating system comprises a plurality of nodes; wherein, different nodes have connection relation; the connection relationship comprises series connection and parallel connection; determining the delay risk level of each node according to the parameters; and determining the delay risk level of the operating system according to the delay risk level of each node, and adjusting the numerical value of the initial operation time and the numerical value of the overdue threshold of the node with the delay risk level exceeding the preset delay risk level. By adopting the technical scheme, the delay risk level of a single node can be evaluated, the overall delay risk condition of the operating system can be further evaluated, and then the parameters of the nodes in the operating system can be adjusted according to the overall delay risk condition, so that the aim of reducing the delay rate of the actual operation of the nodes is fulfilled.
Fig. 2 is a flowchart illustrating a method for adjusting parameters of task nodes of an operating system according to a second embodiment of the present application. The method of embodiment two, comprising the steps of:
s201, acquiring parameters of each node in an operating system; wherein the parameters include: the numerical value of the initial operation time, the numerical value of the execution duration and the numerical value of the expiration threshold; the operating system comprises a plurality of nodes; wherein, different nodes have connection relation; the connection relationship includes series connection and parallel connection.
For example, this step may refer to step S101, which is not described herein again.
S202, calculating the delay risk level of the initial node and the delay risk level of the node connected with the initial node according to the parameters of the initial node and the initial operation time and the overdue threshold of the node connected with the initial node.
For example, the initial node may be a first node, and for example, the start job time of the initial node may be Sa, the start job time of a first node connected to the initial node may be Sb, the start job time of a second node connected to the first node may be Sc, and the start job time of a third node connected to the second node may be Sd. Further, the expiration threshold of the initial node may be La, the expiration threshold of the first node connected to the initial node may be Lb, the expiration threshold of the second node connected to the first node may be Lc, and the expiration threshold of the third node connected to the second node may be Ld. The value of the execution duration of the initial node may be Ta, the value of the execution duration of the first node connected to the initial node may be Tb, the value of the execution duration of the second node connected to the first node may be Tc, and the value of the execution duration of the third node connected to the second node may be Td.
The initial node may be a, the first node connected to the initial node may be B, the second node may be C, and the third node may be D. Each node has different levels of delay risk level, specifically, the delay risk level may be classified into delay risk level 1, delay risk level 2, delay risk level 3, delay risk level 4, delay risk level 5 and delay risk level 6. Wherein, the weights of different delay risk levels are different, and the information of the specific delay risk level is also recorded on the node.
In this embodiment, the delay risk level of the initial node a and the delay risk level of the first node B connected to the initial node a are obtained according to the start operation time Sa of the initial node a and the expiration threshold La of the initial node.
S203, determining the delay risk level of each node according to the delay risk level of the initial node and the delay risk level of the node connected with the initial node.
Illustratively, calculating the delay risk level of the initial node and the delay risk level of the node connected with the initial node according to the parameters of the initial node and the start job time and the expiration threshold of the node connected with the initial node comprises:
calculating the delay risk level of the initial node and the delay risk level of the node connected with the initial node according to the relation between the first sum and the second sum; the first sum is the sum of the initial operation time, the execution duration and the expiration threshold of the initial node; the second sum is the sum of the start of job time and the expiration threshold of the node connected to the initial node.
Illustratively, the delay risk level of the initial node is calculated as: sa + Ta + La < Sb, namely the end time of the delayed start and the normal execution of the initial node A is earlier than that of the subsequent node, and the risk is the delay risk level 1;
further, Sa + Ta < Sb, namely the end time of normal starting and normal execution of the initial node A is earlier than that of the subsequent node, and the risk is in a delayed risk level 2; wherein Sa + Ta is a first sum; sb is a second sum;
further, Sa + Ta > Sb and Sa + Ta + La < Sb + Lb, although normal execution of the initial node a may affect the scheduled start of the first node B, are all within the delay range allowed by the first node B, and the risk is at a delay risk level 3; wherein Sa + Ta + La is a first sum; sb + Lb is a second sum;
further, Sa + Ta > Sb, Sa + Ta < Sb + Lb, and Sa + Ta + La > Sb + Lb, normal execution of the initial node a may affect the scheduled start of the first node B, the delay of the initial node a is not considered, if the initial node a delays the upper limit, the first node B may fail to start, and the risk is delay risk level 4; wherein Sa + Ta is a first sum; sb + Lb is a second sum;
further, Sa + Ta + La > Sb + Lb and Sa + Ta < Sb + Lb, preamble delay may also be implemented in a specific case that the first node B can start up even after implementation, even if delay, with a risk of delay risk level 5; wherein Sa + Ta + La is a first sum; sb + Lb is a second sum;
further, Sa + Ta > Sb + Lb, inevitably fails, and the initial node a is at delay risk level 6; wherein Sa + Ta + La is a first sum; sb + Lb is a second sum.
S204, determining the delay risk level of the operating system according to the delay risk level of each node, and adjusting the value of the initial operation time and the value of the overdue threshold of the node with the delay risk level exceeding the preset delay risk level.
In this embodiment, adjusting the value of the initial operation time of the node whose delay risk level exceeds the preset delay risk level includes: and calculating the delay allowance of the node with the delay risk level exceeding the preset delay risk level, and determining the initial operation time of the node connected with the node according to the delay allowance.
In this embodiment, depth-first is performed from the initial node, the current node risk is higher than the delay risk level 4, and the delay margin is Δ Sa + Ta + La- (Sb + Lb). Further, when calculating the relationship between the first node B and its subsequent nodes, the delay margin of the first node B is Lb ═ Lb + the delay margin Δ.
And S205, sending the data information of the node with the delay risk level exceeding the preset delay risk level to a user to prompt the user to modify the initial operation time and the overdue threshold of the node.
In the embodiment, a real-time test is performed after the operation such as modifying the node timeout threshold, starting the initial operation time and the like, and further, if the calculated node delay risk level or the node delay risk level rises, the user is prompted to modify the node delay risk level or the node delay risk level through a page, a short message, a WeChat and the like; because the delay risk level calculation based on the graph library model is high in efficiency, the obtained intermediate result is updated to the operation link point risk identification after the user confirms the treatment according to the evaluation result.
According to the parameter adjusting method for the task nodes of the operating system, the parameters of each node in the operating system are obtained; wherein the parameters include: the numerical value of the initial operation time, the numerical value of the execution duration and the numerical value of the overdue threshold; the operating system comprises a plurality of nodes; wherein, different nodes have connection relation; the connection relation comprises series connection and parallel connection, the delay risk grade of the initial node and the delay risk grade of the node connected with the initial node are calculated according to the parameters of the initial node and the initial operation time and the overdue threshold of the node connected with the initial node, the delay risk grade of each node is determined according to the delay risk grade of the initial node and the delay risk grade of the node connected with the initial node, the delay risk grade of an operation system is determined according to the delay risk grade of each node, and the value of the initial operation time and the value of the overdue threshold of the node of which the delay risk grade exceeds the preset delay risk grade are adjusted. By adopting the technical scheme, the aim of invalid configuration can be prevented, the occurrence of system delay is avoided, and the overtime risk of the whole operating system is reduced.
Fig. 3 is a schematic structural diagram of a parameter adjustment apparatus for task nodes of an operating system according to a third embodiment of the present application. The apparatus 30 in the third embodiment comprises the following:
an obtaining unit 301, configured to obtain a parameter of each node in the operating system; wherein the parameters include: the numerical value of the initial operation time, the numerical value of the execution duration and the numerical value of the expiration threshold; the operating system comprises a plurality of nodes; wherein, different nodes have connection relation; the connection relationship includes series connection and parallel connection.
A determining unit 302, configured to determine a delay risk level of each node according to the parameter.
The adjusting unit 303 is configured to determine a delay risk level of the operating system according to the delay risk level of each node, and adjust a value of an initial operation time and a value of an expiration threshold of a node of which the delay risk level exceeds a preset delay risk level.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the above-described apparatus may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
Fig. 4 is a schematic structural diagram of a parameter adjustment apparatus for task nodes of an operating system according to a fourth embodiment of the present application. The apparatus 40 in the fourth embodiment includes the following:
an obtaining unit 401, configured to obtain a parameter of each node in the operating system; wherein the parameters include: the numerical value of the initial operation time, the numerical value of the execution duration and the numerical value of the expiration threshold; the operating system comprises a plurality of nodes; wherein, different nodes have connection relation; the connection relationship comprises series connection and parallel connection;
a determining unit 402, configured to determine a delay risk level of each node according to the parameter;
an adjusting unit 403, configured to determine a delay risk level of the operating system according to the delay risk level of each node, and adjust a value of an initial operation time and a value of an expiration threshold of a node of which the delay risk level exceeds a preset delay risk level.
A determining unit 402, comprising:
a calculating module 4021, configured to calculate a delay risk level of an initial node and a delay risk level of a node connected to the initial node according to a parameter of the initial node and an initial operation time and an expiration threshold of the node connected to the initial node;
a determining module 4022, configured to determine a delay risk level of each node according to the delay risk level of the initial node and the delay risk levels of the nodes connected to the initial node.
In one example, the computing module 4021 includes:
the calculating submodule 40211 is configured to calculate a delay risk level of the initial node and a delay risk level of a node connected to the initial node according to a relationship between the first sum and the second sum; the first sum is the sum of the initial operation time, the execution duration and the expiration threshold of the initial node; the second sum is the sum of the start of job time and the expiration threshold of the node connected to the initial node.
In one example, the apparatus further comprises:
a sending unit 404, configured to send data information of a node whose delay risk level exceeds a preset delay risk level to a user, so as to prompt the user to modify a start job time and an expiration threshold of the node.
In one example, the adjusting unit 403 includes:
and the adjusting module 4031 is configured to calculate a delay margin of a node whose delay risk level exceeds a preset delay risk level, and determine an initial operation time of a node connected to the node according to the delay margin.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the above-described apparatus may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
FIG. 5 is a block diagram illustrating an electronic device, which may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like, in accordance with an exemplary embodiment.
The apparatus 500 may include one or more of the following components: processing component 502, memory 504, power component 506, multimedia component 508, audio component 510, input/output (I/O) interface 512, sensor component 514, and communication component 516.
The processing component 502 generally controls overall operation of the device 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 502 may include one or more processors 520 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 502 can include one or more modules that facilitate interaction between the processing component 502 and other components. For example, the processing component 502 can include a multimedia module to facilitate interaction between the multimedia component 508 and the processing component 502.
The memory 504 is configured to store various types of data to support operations at the apparatus 500. Examples of such data include instructions for any application or method operating on device 500, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 504 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 506 provides power to the various components of the device 500. The power components 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 500.
The multimedia component 508 includes a screen that provides an output interface between the device 500 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 500 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 510 is configured to output and/or input audio signals. For example, audio component 510 includes a Microphone (MIC) configured to receive external audio signals when apparatus 500 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 504 or transmitted via the communication component 516. In some embodiments, audio component 510 further includes a speaker for outputting audio signals.
The I/O interface 512 provides an interface between the processing component 502 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the device 500. For example, the sensor assembly 514 may detect an open/closed state of the apparatus 500, the relative positioning of the components, such as a display and keypad of the apparatus 500, the sensor assembly 514 may also detect a change in position of the apparatus 500 or a component of the apparatus 500, the presence or absence of user contact with the apparatus 500, orientation or acceleration/deceleration of the apparatus 500, and a change in temperature of the apparatus 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 516 is configured to facilitate communication between the apparatus 500 and other devices in a wired or wireless manner. The apparatus 500 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 500 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 504 comprising instructions, executable by the processor 520 of the apparatus 500 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer-readable storage medium, wherein instructions of the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform a parameter adjustment method for an operating system task node of the electronic device.
The application also discloses a computer program product comprising a computer program which, when executed by a processor, implements the method as described in the embodiments.
Various implementations of the systems and techniques described here above may be realized in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present application may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or electronic device.
In the context of this application, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The 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, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user may provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data electronic device), or that includes a middleware component (e.g., an application electronic device), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include a client and an electronic device. The client and the electronic device are generally remote from each other and typically interact through a communication network. The relationship of client and electronic device arises by virtue of computer programs running on the respective computers and having a client-electronic device relationship to each other. The electronic device may be a cloud electronic device, which is also called a cloud computing electronic device or a cloud host, and is a host product in a cloud computing service system, so as to solve the defects of high management difficulty and weak service extensibility in a traditional physical host and a VPS service ("Virtual Private Server", or "VPS" for short). The electronic device may also be a distributed system of electronic devices or an electronic device incorporating a blockchain. It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present application can be achieved, and the present invention is not limited herein.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements 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 application is limited only by the appended claims.

Claims (10)

1. A method for adjusting parameters of task nodes of an operating system is characterized by comprising the following steps:
acquiring parameters of each node in an operating system; wherein the parameters include: the numerical value of the initial operation time, the numerical value of the execution duration and the numerical value of the expiration threshold; the operating system comprises a plurality of nodes; wherein, different nodes have connection relation; the connection relation comprises series connection and parallel connection;
determining the delay risk level of each node according to the parameters;
and determining the delay risk level of the operating system according to the delay risk level of each node, and adjusting the numerical value of the initial operation time and the numerical value of the overdue threshold of the node with the delay risk level exceeding the preset delay risk level.
2. The method of claim 1, wherein determining a delay risk level for each node based on the parameters comprises:
calculating a delay risk level of an initial node and a delay risk level of a node connected with the initial node according to the parameters of the initial node, the initial operation time of the node connected with the initial node and the expiration threshold;
and determining the delay risk level of each node according to the delay risk level of the initial node and the delay risk level of the node connected with the initial node.
3. The method of claim 2, wherein calculating the delay risk level of an initial node and the delay risk level of a node connected to the initial node based on the parameters of the initial node and the start-of-job time and the expiration threshold of the node connected to the initial node comprises:
calculating the delay risk level of the initial node and the delay risk level of the node connected with the initial node according to the relation between the first sum and the second sum; wherein the first sum is the sum of the initial operation time of the initial node, the execution duration and the expiration threshold; the second sum is a sum of the start-of-job time and the expiration threshold of a node connected to the initial node.
4. The method according to any one of claims 1-3, further comprising:
and sending data information of the node with the delay risk level exceeding the preset delay risk level to a user so as to prompt the user to modify the initial operation time and the overdue threshold of the node.
5. The method of claim 1, wherein adjusting the value of the job initiation time for nodes having a delay risk level that exceeds a preset delay risk level comprises:
and calculating the delay allowance of the node with the delay risk level exceeding the preset delay risk level, and determining the initial operation time of the node connected with the node according to the delay allowance.
6. An apparatus for adjusting parameters of task nodes of an operating system, the apparatus comprising:
the acquisition unit is used for acquiring parameters of each node in the operating system; wherein the parameters include: the numerical value of the initial operation time, the numerical value of the execution duration and the numerical value of the expiration threshold; the operating system comprises a plurality of nodes; wherein, different nodes have connection relation; the connection relation comprises series connection and parallel connection;
the determining unit is used for determining the delay risk level of each node according to the parameters;
and the adjusting unit is used for determining the delay risk level of the operating system according to the delay risk level of each node, and adjusting the numerical value of the initial operation time and the numerical value of the expiration threshold of the node with the delay risk level exceeding the preset delay risk level.
7. The apparatus of claim 6, wherein the determining unit comprises:
a calculation module, configured to calculate, according to the parameter of an initial node, the initial operation time of a node connected to the initial node, and the expiration threshold, a delay risk level of the initial node and a delay risk level of a node connected to the initial node;
and the determining module is used for determining the delay risk level of each node according to the delay risk level of the initial node and the delay risk level of the node connected with the initial node.
8. An electronic device, comprising: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored by the memory to implement the method of any of claims 1-5.
9. A computer-readable storage medium having computer-executable instructions stored therein, which when executed by a processor, are configured to implement the method of any one of claims 1-5.
10. A computer program product, comprising a computer program which, when executed by a processor, implements the method of any one of claims 1-5.
CN202210119173.XA 2022-02-08 2022-02-08 Method and device for determining risk value of task of operating system Pending CN114493310A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210119173.XA CN114493310A (en) 2022-02-08 2022-02-08 Method and device for determining risk value of task of operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210119173.XA CN114493310A (en) 2022-02-08 2022-02-08 Method and device for determining risk value of task of operating system

Publications (1)

Publication Number Publication Date
CN114493310A true CN114493310A (en) 2022-05-13

Family

ID=81478440

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210119173.XA Pending CN114493310A (en) 2022-02-08 2022-02-08 Method and device for determining risk value of task of operating system

Country Status (1)

Country Link
CN (1) CN114493310A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115049320A (en) * 2022-08-15 2022-09-13 国网天津市电力公司营销服务中心 Power grid marketing business risk digital management and control system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115049320A (en) * 2022-08-15 2022-09-13 国网天津市电力公司营销服务中心 Power grid marketing business risk digital management and control system
CN115049320B (en) * 2022-08-15 2022-11-01 国网天津市电力公司营销服务中心 Power grid marketing business risk digital management and control system

Similar Documents

Publication Publication Date Title
CN109408207B (en) Microservice access control method, microservice access control device and storage medium
US20160373482A1 (en) Method and device for detecting web address hijacking
CN115632928A (en) Alarm method and device based on system level, electronic equipment and storage medium
US11563243B2 (en) Charging control method, device and storage medium
CN114493310A (en) Method and device for determining risk value of task of operating system
CN111913850A (en) Data anomaly detection method, device, equipment and storage medium
CN115563156A (en) Method, device and equipment for checking stream data information and storage medium
CN115687303A (en) Data information migration method, device, equipment and storage medium
US20170169467A1 (en) Information push method and device
CN115310496A (en) Signal denoising method, device, equipment and storage medium based on neural network
CN113946353B (en) Data processing method and device, electronic equipment and storage medium
CN114896051A (en) Service processing method, device, equipment and storage medium
CN116541247A (en) Method, device, equipment and storage medium for alarming time limit of job task
CN116582413A (en) Alarm suppression method, device, equipment and storage medium based on distributed architecture
CN110473138B (en) Graphic code conversion method, graphic code conversion device, electronic equipment and storage medium
CN115731045A (en) Transaction behavior control method and device based on transaction system
CN114647553A (en) Data monitoring method, device, equipment and storage medium based on containerization service
CN115271529A (en) Merchant assessment index value determination method, device, equipment and storage medium
CN116450394A (en) Fault parameter determining method, device, equipment and storage medium
CN115904874A (en) Abnormal log file processing method and device, server and storage medium
CN115460573A (en) Bluetooth device fault detection method, storage medium and terminal device
CN116993474A (en) Position data information processing method, device, equipment and storage medium
CN117132237A (en) Nuclear power plant digital front meeting management method and device
CN115796818A (en) Method, device and equipment for generating working calendar document and storage medium
CN114721819A (en) Method, device and equipment for processing to-be-processed service 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