CN115525516A - Task scheduling alarm method and device, electronic equipment and storage medium - Google Patents

Task scheduling alarm method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115525516A
CN115525516A CN202211146315.8A CN202211146315A CN115525516A CN 115525516 A CN115525516 A CN 115525516A CN 202211146315 A CN202211146315 A CN 202211146315A CN 115525516 A CN115525516 A CN 115525516A
Authority
CN
China
Prior art keywords
target
task
parameter
current
scheduling
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
CN202211146315.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.)
Shangfei Intelligent Technology Co ltd
Original Assignee
Shanghai Aircraft Manufacturing 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 Shanghai Aircraft Manufacturing Co Ltd filed Critical Shanghai Aircraft Manufacturing Co Ltd
Priority to CN202211146315.8A priority Critical patent/CN115525516A/en
Publication of CN115525516A publication Critical patent/CN115525516A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/327Alarm or error message display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3017Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is implementing multitasking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • Software Systems (AREA)
  • Mathematical Physics (AREA)
  • Alarm Systems (AREA)

Abstract

The embodiment of the invention discloses a task scheduling alarm method and device, electronic equipment and a storage medium. The method comprises the following steps: acquiring at least one target parameter of a current task and an importance level corresponding to each target parameter; determining a current scheduling threshold value of the current task according to each target parameter, each important grade and parameter information of all tasks; and acquiring a target scheduling threshold of the task scheduling alarm, determining whether to alarm the current task according to the current scheduling threshold and the target scheduling threshold, and updating the target scheduling threshold. The method can dynamically alarm according to the importance degree of the task, and is convenient for feeding back the alarm information of the important task to the user in time, so as to improve the network operation and maintenance efficiency and reduce the operation and maintenance cost.

Description

Task scheduling alarm method and device, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of internet, in particular to a task scheduling alarm method, a task scheduling alarm device, electronic equipment and a storage medium.
Background
With the continuous and rapid increase of network data traffic, the complexity of the network is also promoted, which brings great challenges to the traditional network operation and maintenance work.
In the prior art, usually, when a network is in operation and maintenance, the alarm information of a task is directly fed back to a user, and the user self-checks important alarm information. With the increasing complexity of the 5G network structure and the increasing explosion of data, the user self-check information mode is difficult to handle a great number of alarm contents, so that the network operation and maintenance efficiency is low and the cost is high.
Disclosure of Invention
The invention provides a task scheduling alarm method, a task scheduling alarm device, electronic equipment and a storage medium, which are used for dynamically scheduling and alarming tasks and feeding important alarm information back to a user in time.
According to an aspect of the present invention, there is provided a task scheduling warning method, including:
acquiring at least one item of target parameter of a current task and an importance level corresponding to each target parameter;
determining a current scheduling threshold value of the current task according to the target parameters, the importance levels and the parameter information of all tasks;
and acquiring a target scheduling threshold of a task scheduling alarm, determining whether to alarm the current task or not according to the current scheduling threshold and the target scheduling threshold, and updating the target scheduling threshold.
Optionally, determining the current scheduling threshold of the current task according to each target parameter, each importance level, and parameter information of all tasks, includes:
determining a grade parameter value corresponding to each target parameter according to the importance grade corresponding to each target parameter;
and determining the current scheduling threshold of the current task according to each grade parameter value, the comprehensive grade parameter values corresponding to all tasks and the emergency degree of the current task.
Optionally, determining a class parameter value corresponding to each target parameter according to the importance class corresponding to each target parameter includes:
determining a corresponding target grade parameter interval according to the importance grade corresponding to the target parameter;
selecting any value in the target grade parameter interval as a grade parameter value corresponding to the target parameter;
wherein each target level parameter interval is a subinterval of an interval [0,1 ]; the target level parameter intervals together form an interval [0,1].
Optionally, obtaining the target scheduling threshold of the task scheduling alarm includes:
obtaining all historical scheduling thresholds corresponding to all historical tasks before the current task; and taking the maximum value of the historical scheduling threshold values as the target scheduling threshold value.
Optionally, determining whether to alarm the current task according to the current scheduling threshold and the target scheduling threshold, and updating the target scheduling threshold includes:
if the current scheduling threshold is larger than the target scheduling threshold, alarming the current task, and updating the target scheduling threshold to be the current scheduling threshold;
and if the current scheduling threshold is not larger than the target scheduling threshold, not giving an alarm to the current task, and keeping the target scheduling threshold unchanged.
Optionally, the method further includes:
and if an alarm instruction of an ultimate alarm task is received before the current task is alarmed, alarming the ultimate alarm task according to the alarm instruction.
Optionally, the current task includes at least one of the following: the occupation ratio of a magnetic disk, the network port occupancy rate and the memory utilization rate;
wherein the memory usage includes: occupancy rate of memory per second and memory footprint.
According to another aspect of the present invention, there is provided a scheduling warning apparatus of a task, the apparatus including:
the system comprises a parameter acquisition module, a task processing module and a task processing module, wherein the parameter acquisition module is used for acquiring at least one target parameter of a current task and an importance level corresponding to each target parameter;
a current scheduling threshold determining module, configured to determine a current scheduling threshold of the current task according to each target parameter, each importance level, and parameter information of all tasks;
and the alarm module is used for acquiring a target scheduling threshold of task scheduling alarm, determining whether to alarm the current task according to the current scheduling threshold and the target scheduling threshold, and updating the target scheduling threshold.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform a method of scheduling alerts for tasks according to any of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer-readable storage medium storing computer instructions for causing a processor to implement a method for scheduling alerts of tasks according to any of the embodiments of the present invention when the computer instructions are executed.
According to the technical scheme of the embodiment of the invention, at least one target parameter of the current task and the importance level corresponding to each target parameter are obtained; determining a current scheduling threshold value of the current task according to each target parameter, each important grade and parameter information of all tasks; the method comprises the steps of obtaining a target scheduling threshold value of task scheduling alarm, determining whether to alarm a current task according to the current scheduling threshold value and the target scheduling threshold value, updating the target scheduling threshold value, solving the task scheduling alarm problem in network operation and maintenance, and obtaining the effect of conveniently feeding the alarm information of important tasks back to a user in time so as to improve the network operation and maintenance efficiency and reduce the operation and maintenance cost.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present invention, nor do they necessarily limit the scope of the invention. Other features of the present invention will become apparent from the following description.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a method for scheduling an alarm for a task according to an embodiment of the present invention;
FIG. 2 is a flowchart of a task scheduling alarm method according to a second embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a task scheduling warning device according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device implementing a task scheduling alarm method according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in other sequences than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example one
Fig. 1 is a flowchart of a task scheduling warning method according to an embodiment of the present invention, where the method is applicable to a situation where warning information of a task is scheduled in network operation and maintenance to dynamically feed important warning information back to a user in a priority manner, and the method may be executed by a task scheduling warning device, where the task scheduling warning device may be implemented in a form of hardware and/or software, and the task scheduling warning device may be configured in an electronic device, such as a network device, a computer, or a mobile phone. As shown in fig. 1, the method includes:
and 110, acquiring at least one target parameter of the current task and the importance level corresponding to each target parameter.
Wherein, the current task can be a task in the network operation and maintenance. Specifically, in an optional implementation manner of the embodiment of the present invention, the current task includes at least one of the following: the occupation ratio of a magnetic disk, the network port occupancy rate and the memory utilization rate; wherein, the memory usage rate includes: occupancy rate of memory per second and memory footprint.
The target parameter may be a parameter related to the current task. Further, the target parameter may be a parameter related to a scheduling alarm among the parameters related to the current task. Specifically, the target parameter may be a parameter having a relationship with the importance of the current task.
Illustratively, the current task may be a disk occupancy ratio. Target parameters that a current task may have include, but are not limited to: the amount of occupied memory, the amount of free memory, the number of disks, the number of used disks, the number of unused disks, etc.
As yet another example, the current task may be a portal occupancy. Target parameters that a current task may have include, but are not limited to: the number of network ports, the number of bytes sent by the network ports per second, the number of data packets received by the network ports per second, the number of bytes received by the network ports per second and the like.
Each target parameter may have a corresponding level of importance. The importance level may be understood as a task point that the user is more concerned about. Specifically, the importance level may be set by the user in advance according to the task and the corresponding parameter. For example, in the task of disk occupancy ratio, the user pays attention to how many blocks of the disk exist, the most important parameter may be the number of disks, and the less important parameter may be the number of used disks and the number of unused disks. For another example, in the task of the network port occupancy rate, the user pays attention to the number of bytes sent by the network port, the most important parameter may be the number of bytes sent by the network port per second, and the second most important parameter may be the number of packets sent by the network port per second.
And step 120, determining the current scheduling threshold of the current task according to the target parameters, the importance levels and the parameter information of all tasks.
Wherein, the all tasks may include the current task and all historical tasks prior to the current task. The parameter information of all tasks may include, but is not limited to, parameters corresponding to the tasks and importance levels corresponding to the parameters.
The current scheduling threshold may be a reference basis for performing scheduling alarm on the current task. Specifically, the current scheduling threshold may be determined according to the importance of the current task and the importance of all tasks. For example, the importance of the current task may be determined by the target parameters and the corresponding importance levels. The importance of each task can be determined according to the parameter information of all tasks. The ratio of the importance of the current task to the accumulated value of the importance of each task can be used as a current scheduling threshold value. For another example, the tasks may be sorted according to their importance, and the importance numbers of the tasks may be obtained in descending order and used as the current scheduling threshold.
In an optional implementation manner of the embodiment of the present invention, determining the current scheduling threshold of the current task according to each target parameter, each importance level, and parameter information of all tasks includes: determining a grade parameter value corresponding to each target parameter according to the importance grade corresponding to each target parameter; and determining the current scheduling threshold of the current task according to the parameter values of each grade, the comprehensive grade parameter values corresponding to all tasks and the emergency degree of the current task.
Wherein the level parameter value may be a quantization of the important level. For example, the value of the ranking parameter corresponding to the most important target parameter in the importance ranking may be 1, and the values of the ranking parameters corresponding to the other parameters may be values smaller than 1.
The parameter information of all tasks may include a level parameter value corresponding to each parameter. And determining the comprehensive grade parameter value according to the grade parameter value corresponding to each parameter. For example, the composite grade parameter value is the sum of the grade parameter values of the parameters. The urgency of the current task may be determined by the user in advance according to the importance of the entire task. There may be a variety of situations for determining the current scheduling threshold. For example, the grade parameter values of the current multi-task may be summed to obtain a current grade parameter value of the current task, and a ratio of the current grade parameter value to the composite grade parameter value may be determined. And taking the product of the ratio and the urgency as the current scheduling threshold.
Step 130, obtaining a target scheduling threshold of the task scheduling alarm, determining whether to alarm the current task according to the current scheduling threshold and the target scheduling threshold, and updating the target scheduling threshold.
The target scheduling threshold may be a preset initial scheduling alarm basis. For example, the target scheduling threshold may be an initial value set by the user himself. Alternatively, the target scheduling threshold may be determined based on historical scheduling thresholds for historical tasks.
It should be noted that the historical scheduling threshold of each historical task may be determined in the same manner as the current scheduling threshold is determined by the current task. In a specific application of the method provided by the embodiment of the invention, after each historical task determines the corresponding historical scheduling threshold, the historical scheduling threshold can be updated according to the current scheduling threshold of the current task. For example, since all tasks are changed and corresponding comprehensive grade parameter values are changed due to the addition of the current task, the historical scheduling threshold value can be synchronously changed.
Whether the current task needs to be warned or not is determined by the current scheduling threshold and the target scheduling threshold together. Specifically, whether to alarm the current task may be determined according to a size relationship between the current scheduling threshold and the target scheduling threshold. For example, when the current scheduling threshold is greater than or equal to the target scheduling threshold, or when the ratio of the current scheduling threshold to the target scheduling threshold is greater than or equal to 1, the current task may be alerted. For another example, when the current scheduling threshold is smaller than the target scheduling threshold, or when the ratio of the current scheduling threshold to the target scheduling threshold is smaller than 1, the current task may not be alerted.
When the current task needs to be warned, the target scheduling threshold value can be updated. For example, the current scheduling threshold corresponding to the current task may be used as the new target scheduling threshold.
In an optional implementation manner of the embodiment of the present invention, the obtaining of the target scheduling threshold of the task scheduling alert includes: acquiring historical scheduling thresholds corresponding to all historical tasks before a current task; and taking the maximum value of the historical scheduling threshold values as a target scheduling threshold value.
In an optional implementation manner of the embodiment of the present invention, determining whether to alarm a current task according to a current scheduling threshold and a target scheduling threshold, and updating the target scheduling threshold includes: if the current scheduling threshold is larger than the target scheduling threshold, alarming the current task, and updating the target scheduling threshold to be the current scheduling threshold; and if the current scheduling threshold is not greater than the target scheduling threshold, not alarming the current task and keeping the target scheduling threshold unchanged.
According to the technical scheme of the embodiment, at least one target parameter of the current task and the importance level corresponding to each target parameter are obtained; determining a current scheduling threshold value of the current task according to each target parameter, each important grade and parameter information of all tasks; the method comprises the steps of obtaining a target scheduling threshold value of task scheduling alarm, determining whether to alarm a current task according to the current scheduling threshold value and the target scheduling threshold value, updating the target scheduling threshold value, solving the problem of task scheduling alarm in network operation and maintenance, updating the scheduling threshold value of each task in real time in a polling mode, realizing dynamic scheduling alarm of the tasks, and conveniently feeding alarm information of important tasks back to a user in time so as to improve the efficiency of network operation and maintenance and reduce the cost of operation and maintenance.
Example two
Fig. 2 is a flowchart of a task scheduling alarm method according to a second embodiment of the present invention, which is a further refinement of the foregoing technical solution, and the technical solution in this embodiment may be combined with various alternatives in one or more of the foregoing embodiments. As shown in fig. 2, the method includes:
step 210, at least one target parameter of the current task and an importance level corresponding to each target parameter are obtained.
In an optional implementation of the embodiment of the invention, the current task comprises at least one of: the occupation ratio of a magnetic disk, the network port occupancy rate and the memory utilization rate; wherein, the memory usage rate includes: occupancy rate of memory per second and memory footprint.
And step 220, determining a grade parameter value corresponding to each target parameter according to the importance grade corresponding to each target parameter.
In an optional implementation manner of the embodiment of the present invention, determining, according to the importance level corresponding to each target parameter, a level parameter value corresponding to each target parameter includes: determining a corresponding target grade parameter interval according to the important grade corresponding to the target parameter; selecting any value in the target grade parameter interval as a grade parameter value corresponding to the target parameter; wherein each target grade parameter interval is a subinterval of an interval [0,1 ]; the target level parameter intervals together constitute an interval [0,1].
Wherein, the important grade and the target grade parameter interval can have a mapping relation. The target level parameter interval may be a sub-interval of the interval [0,1]. A subinterval may be understood as an interval defined by a continuous range of values within the interval 0,1.
Illustratively, the most important importance level may correspond to a target level parameter interval of {1}. The next most important importance level may correspond to a target level parameter interval of [0.8,1 ]. The important importance level at this time may correspond to a target level parameter interval of [0.5,0.8 ]. The less relevant importance level may correspond to a target level parameter interval of [0,0.5 ].
By selecting any value in the corresponding target grade parameter interval as the grade parameter value corresponding to the target parameter, the flexibility of grade parameter value determination is increased except for hard regulation of a user when a task is scheduled and alarmed, and the user participation degree in the grade parameter value determination is reduced, so that the network operation and maintenance is more flexible and simpler and more convenient while meeting the user requirements.
And step 230, determining the current scheduling threshold of the current task according to the parameter values of each grade, the comprehensive grade parameter values corresponding to all tasks and the emergency degree of the current task.
Step 240, obtaining all historical scheduling thresholds corresponding to all historical tasks before the current task; and taking the maximum value of the historical scheduling threshold values as a target scheduling threshold value.
And step 250, determining whether to alarm the current task according to the current scheduling threshold and the target scheduling threshold, and updating the target scheduling threshold.
In an optional implementation manner of the embodiment of the present invention, determining whether to alarm a current task according to a current scheduling threshold and a target scheduling threshold, and updating the target scheduling threshold includes: if the current scheduling threshold is larger than the target scheduling threshold, alarming the current task, and updating the target scheduling threshold to be the current scheduling threshold; and if the current scheduling threshold is not larger than the target scheduling threshold, not alarming the current task and keeping the target scheduling threshold unchanged.
On the basis of the foregoing embodiment, optionally, the method further includes: and if the alarm indication of the ultimate alarm task is received before the current task is alarmed, alarming the ultimate alarm task according to the alarm indication.
The ultimate warning task can be a task which is inserted into the task list urgently before the current task is warned and needs urgent warning. The ultimate warning task can give a warning preferentially by occupying the warning resources of the current task. After the ultimate warning task is warned, the current task can be warned. The flexibility of task warning can be improved, and emergency tasks can be warned in priority.
According to the technical scheme of the embodiment, at least one target parameter of the current task and the importance level corresponding to each target parameter are obtained; determining a grade parameter value corresponding to each target parameter according to the importance grade corresponding to each target parameter; determining a current scheduling threshold value of the current task according to the parameter values of each grade, the comprehensive grade parameter values corresponding to all tasks and the emergency degree of the current task; acquiring historical scheduling thresholds corresponding to all historical tasks before a current task; taking the maximum value in the historical scheduling threshold values as a target scheduling threshold value; determining whether to alarm the current task according to the current scheduling threshold and the target scheduling threshold, updating the target scheduling threshold, solving the task scheduling alarm problem in network operation and maintenance, and updating the scheduling threshold of each task in real time in a polling mode; comparing the scheduling threshold with a target scheduling threshold to realize dynamic scheduling alarm of the tasks; the method and the device are convenient for timely and quickly feeding back the alarm information of the important task to the user so as to improve the network operation and maintenance efficiency and reduce the operation and maintenance cost. The method is particularly suitable for network operation and maintenance of 5G network deployment, can avoid directly feeding back the alarm information generated in the network operation and maintenance to the user, and realizes priority feedback of important information to the user by dynamically adjusting the scheduling threshold of the alarm, thereby avoiding the user from being troubled by the alarm feedback of non-important information.
In the technical scheme of the embodiment of the invention, the acquisition, storage, application and the like of the related task parameter information all accord with the regulations of related laws and regulations and do not violate the good customs of the public order.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a task scheduling warning device according to a third embodiment of the present invention. As shown in fig. 3, the apparatus includes: a parameter acquisition module 310, a current scheduling threshold determination module 320, and an alarm module 330. Wherein:
a parameter obtaining module 310, configured to obtain at least one target parameter of a current task and an importance level corresponding to each target parameter;
a current scheduling threshold determining module 320, configured to determine a current scheduling threshold of the current task according to each target parameter, each importance level, and parameter information of all tasks;
the alarm module 330 is configured to obtain a target scheduling threshold of the task scheduling alarm, determine whether to alarm the current task according to the current scheduling threshold and the target scheduling threshold, and update the target scheduling threshold.
Optionally, the current scheduling threshold determining module 320 includes:
the grade parameter value determining unit is used for determining the grade parameter value corresponding to each target parameter according to the important grade corresponding to each target parameter;
and the current scheduling threshold determining unit is used for determining the current scheduling threshold of the current task according to the grade parameter values, the comprehensive grade parameter values corresponding to all the tasks and the emergency degree of the current task.
Optionally, the level parameter value determining unit is specifically configured to:
determining a corresponding target grade parameter interval according to the important grade corresponding to the target parameter;
selecting any value in the target grade parameter interval as a grade parameter value corresponding to the target parameter;
wherein each target grade parameter interval is a subinterval of an interval [0,1 ]; the target level parameter intervals together constitute an interval [0,1].
Optionally, the alarm module 330 includes:
the target scheduling threshold determining unit is used for acquiring all historical scheduling thresholds corresponding to all historical tasks before the current task; and taking the maximum value of the historical scheduling threshold values as a target scheduling threshold value.
Optionally, the alarm module 330 is specifically configured to:
if the current scheduling threshold is larger than the target scheduling threshold, alarming the current task, and updating the target scheduling threshold to be the current scheduling threshold;
and if the current scheduling threshold is not larger than the target scheduling threshold, not alarming the current task and keeping the target scheduling threshold unchanged.
Optionally, the apparatus further includes:
and the ultimate warning task warning module is used for warning the ultimate warning task according to the warning indication if the warning indication of the ultimate warning task is received before the current task is warned.
Optionally, the current task includes at least one of: the occupation ratio of a magnetic disk, the network port occupation ratio and the memory utilization ratio;
wherein, the memory usage includes: occupancy rate of memory per second and memory footprint.
The task scheduling warning device provided by the embodiment of the invention can execute the task scheduling warning method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example four
FIG. 4 shows a schematic block diagram of an electronic device 10 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 4, the electronic device 10 includes at least one processor 11, and a memory communicatively connected to the at least one processor 11, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, and the like, wherein the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various suitable actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data necessary for the operation of the electronic apparatus 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to the bus 14.
A number of components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, or the like; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
Processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, or the like. The processor 11 performs the various methods and processes described above, such as the scheduling alert method for tasks.
In some embodiments, the method of scheduling alerts for tasks may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the scheduling alert method of the task described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured by any other suitable means (e.g., by means of firmware) to perform the scheduling alert method of the task.
Various implementations of the systems and techniques described here above may be implemented 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.
A computer program for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be performed. A computer program can execute entirely on a machine, partly on a machine, as a stand-alone software package partly on a machine and partly on a remote machine or entirely on a remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer readable storage 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. Alternatively, the computer readable storage medium may be a machine readable signal medium. 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 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 an electronic device 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 can provide input to the electronic device. 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 server), or that includes a middleware component (e.g., an application server), 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), blockchain networks, and the internet.
The computing system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome.
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 invention may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired results of the technical solution of the present invention can be achieved.
The above-described embodiments should not be construed as limiting the scope of the invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A task scheduling alarm method is characterized by comprising the following steps:
acquiring at least one item of target parameter of a current task and an importance level corresponding to each target parameter;
determining the current scheduling threshold value of the current task according to the target parameters, the importance levels and the parameter information of all tasks;
and acquiring a target scheduling threshold of task scheduling alarm, determining whether to alarm the current task according to the current scheduling threshold and the target scheduling threshold, and updating the target scheduling threshold.
2. The method of claim 1, wherein determining the current scheduling threshold for the current task based on the parameter information for each of the target parameters, each of the importance levels, and all tasks comprises:
determining a grade parameter value corresponding to each target parameter according to the importance grade corresponding to each target parameter;
and determining the current scheduling threshold of the current task according to each grade parameter value, the comprehensive grade parameter values corresponding to all tasks and the emergency degree of the current task.
3. The method of claim 2, wherein determining a class parameter value corresponding to each of the target parameters according to the importance class corresponding to each of the target parameters comprises:
determining a corresponding target grade parameter interval according to the importance grade corresponding to the target parameter;
selecting any value in the target grade parameter interval as a grade parameter value corresponding to the target parameter;
wherein each target level parameter interval is a subinterval of an interval [0,1 ]; the target level parameter intervals together form an interval [0,1].
4. The method of claim 1, wherein obtaining a target scheduling threshold for a task scheduling alert comprises:
obtaining all historical scheduling thresholds corresponding to all historical tasks before the current task; and taking the maximum value of the historical scheduling threshold values as the target scheduling threshold value.
5. The method of claim 1, wherein determining whether to alert the current task and updating the target scheduling threshold based on the current scheduling threshold and the target scheduling threshold comprises:
if the current scheduling threshold is larger than the target scheduling threshold, alarming the current task, and updating the target scheduling threshold to be the current scheduling threshold;
and if the current scheduling threshold is not larger than the target scheduling threshold, not giving an alarm to the current task, and keeping the target scheduling threshold unchanged.
6. The method of claim 1, further comprising:
and if an alarm instruction of an ultimate alarm task is received before the current task is alarmed, alarming the ultimate alarm task according to the alarm instruction.
7. The method of claim 1, wherein the current task comprises at least one of: the occupation ratio of a magnetic disk, the network port occupancy rate and the memory utilization rate;
wherein the memory usage includes: occupancy rate of memory per second and memory footprint.
8. A task scheduling alert device, comprising:
the system comprises a parameter acquisition module, a task processing module and a task processing module, wherein the parameter acquisition module is used for acquiring at least one target parameter of a current task and an importance level corresponding to each target parameter;
a current scheduling threshold determining module, configured to determine a current scheduling threshold of the current task according to each target parameter, each importance level, and parameter information of all tasks;
and the alarm module is used for acquiring a target scheduling threshold of task scheduling alarm, determining whether to alarm the current task according to the current scheduling threshold and the target scheduling threshold, and updating the target scheduling threshold.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the first and the second end of the pipe are connected with each other,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method of scheduling alerts for tasks of any of claims 1-7.
10. A computer-readable storage medium storing computer instructions for causing a processor to perform the method of scheduling alerts for tasks of any of claims 1-7 when executed.
CN202211146315.8A 2022-09-20 2022-09-20 Task scheduling alarm method and device, electronic equipment and storage medium Pending CN115525516A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211146315.8A CN115525516A (en) 2022-09-20 2022-09-20 Task scheduling alarm method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211146315.8A CN115525516A (en) 2022-09-20 2022-09-20 Task scheduling alarm method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115525516A true CN115525516A (en) 2022-12-27

Family

ID=84697421

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211146315.8A Pending CN115525516A (en) 2022-09-20 2022-09-20 Task scheduling alarm method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115525516A (en)

Similar Documents

Publication Publication Date Title
CN114911598A (en) Task scheduling method, device, equipment and storage medium
CN115378859A (en) Method, apparatus, device, medium and product for determining limit state information
CN115034927A (en) Data processing method and device, electronic equipment and storage medium
CN115904656A (en) State control method, device and equipment applied to chip and storage medium
CN115860300A (en) Battery replacement scheduling method and device for vehicle, electronic equipment and storage medium
CN112948223A (en) Method and device for monitoring operation condition
CN112565391A (en) Method, apparatus, device and medium for adjusting instances in an industrial internet platform
CN112887407A (en) Job flow control method and device for distributed cluster
CN116594563A (en) Distributed storage capacity expansion method and device, electronic equipment and storage medium
CN116661960A (en) Batch task processing method, device, equipment and storage medium
CN115525516A (en) Task scheduling alarm method and device, electronic equipment and storage medium
CN115511453A (en) Data processing method, device, equipment and system
CN116112342A (en) Alarm information processing method, device, electronic equipment and storage medium
CN115718732A (en) Disk file management method, device, equipment and storage medium
CN115629903A (en) Task delay monitoring method, device, equipment and storage medium
CN114661562A (en) Data warning method, device, equipment and medium
CN115049369A (en) Project management method and device, electronic equipment and storage medium
CN114327918A (en) Method and device for adjusting resource amount, electronic equipment and storage medium
CN113656239A (en) Monitoring method and device for middleware and computer program product
CN112988417A (en) Message processing method and device, electronic equipment and computer readable medium
CN114185612B (en) Method, device, equipment and storage medium for updating data
CN113835733B (en) Cloud application updating method and device, electronic equipment and storage medium
CN113779098B (en) Data processing method, device, electronic equipment and storage medium
CN116719703A (en) Data monitoring alarm method and device and electronic equipment
CN117714561A (en) Alarm message processing method, device, 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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20231204

Address after: Room 712, South, No. 69 Zhangjiang Road, China (Shanghai) Pilot Free Trade Zone, Pudong New Area, Shanghai, 2012

Applicant after: Shangfei Intelligent Technology Co.,Ltd.

Address before: 919 Shangfei Road, Pudong New Area, Shanghai, 201324

Applicant before: SHANGHAI AIRCRAFT MANUFACTURING Co.,Ltd.