CN116915868A - Network monitoring task issuing method, device, equipment and storage medium - Google Patents

Network monitoring task issuing method, device, equipment and storage medium Download PDF

Info

Publication number
CN116915868A
CN116915868A CN202310862990.9A CN202310862990A CN116915868A CN 116915868 A CN116915868 A CN 116915868A CN 202310862990 A CN202310862990 A CN 202310862990A CN 116915868 A CN116915868 A CN 116915868A
Authority
CN
China
Prior art keywords
task
weight
tasks
issuing
client
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
CN202310862990.9A
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.)
Beijing Bo Hongyuan Data Polytron Technologies Inc
Original Assignee
Beijing Bo Hongyuan Data Polytron Technologies Inc
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 Beijing Bo Hongyuan Data Polytron Technologies Inc filed Critical Beijing Bo Hongyuan Data Polytron Technologies Inc
Priority to CN202310862990.9A priority Critical patent/CN116915868A/en
Publication of CN116915868A publication Critical patent/CN116915868A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/61Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources taking into account QoS or priority requirements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method, a device, equipment and a storage medium for issuing a network monitoring task, which comprise the following steps: acquiring a plurality of tasks to be issued for network monitoring on a client, and determining the corresponding level of each task according to the type of the standard client corresponding to each task; determining a weight value corresponding to each task according to the task type corresponding to each task, and dividing a plurality of tasks into a weight task and a non-weight task according to the weight value; and according to the level of each task, sequentially issuing each non-weight task to a corresponding target client, and then issuing each weight task to the corresponding target client. The technical scheme of the embodiment of the invention can improve the issuing efficiency of the network monitoring task and realize the full utilization of the client resources.

Description

Network monitoring task issuing method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a method, a device, equipment and a storage medium for issuing a network monitoring task.
Background
In an active network monitoring distributed system, task issuing is an important link, and currently, the main network monitoring task issuing mode generally includes a client self-fetching task mode and a server issuing task mode.
When the existing server side issues tasks, the issuing sequence of a plurality of tasks is usually determined according to a single attribute (such as a task type or task frequency) corresponding to the tasks, and then the server side issues each network monitoring task to the client side in turn according to the issuing sequence.
However, the existing task issuing method is easy to cause lower efficiency of issuing the network monitoring task, uneven distribution of client resources and incapability of realizing efficient utilization of the client resources.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a storage medium for issuing a network monitoring task, which can improve the issuing efficiency of the network monitoring task and realize the full utilization of client resources.
In a first aspect, an embodiment of the present invention provides a method for issuing a network monitoring task, which is applied to a server, where the method includes:
acquiring a plurality of tasks to be issued for network monitoring on a client, and determining the corresponding level of each task according to the type of a standard client corresponding to each task;
determining a weight value corresponding to each task according to the task type corresponding to each task, and dividing a plurality of tasks into a weight task and a non-weight task according to the weight value;
and according to the level of each task, sequentially issuing each non-weight task to a corresponding target client, and then issuing each weight task to the corresponding target client.
Optionally, according to the level of each task, sequentially issuing each non-weight task to a corresponding target client, and then issuing each weight task to a corresponding target client, including:
according to the level of each task, determining a single client corresponding to each task from a plurality of clients to be monitored;
sequentially issuing each non-weight task to a corresponding single client, and then issuing each weight task to the corresponding single client;
after the successful issuing of the single client task corresponding to each task is detected, at least one alternative client corresponding to each task is determined in the rest clients;
and sequentially issuing the non-weight tasks to the corresponding alternative clients, and then issuing the weight tasks to the corresponding alternative clients.
Optionally, issuing each weight task to a corresponding single client includes:
according to the weight value and the task frequency corresponding to each weight task, arranging each weight task;
and constructing a plurality of task packages according to the arranged weight tasks, and issuing each task package to a corresponding single client.
Optionally, according to the weight value and the task frequency corresponding to each weight task, the ranking of each weight task includes:
dividing a plurality of weight tasks into different task queues according to weight values corresponding to the weight tasks; wherein, the weight values corresponding to the weight tasks in each task queue are the same, and the task weight values corresponding to the different task queues are different;
the weight tasks in the task queues are arranged according to the order of the task frequency from low to high;
and arranging the task queues according to the order of the task weight values from low to high.
Optionally, constructing a plurality of task packages according to the arranged weight tasks, including:
sequentially selecting each task queue from the queued task queues as a current queue;
sequentially acquiring a weight task from the current queue as a current task, and sequentially acquiring a weight task from the next queue as a reference task;
if the task frequency corresponding to the reference task is smaller than the task frequency corresponding to the current task, storing the current task and the reference task into a task package;
and returning to execute the operation of sequentially selecting each task queue as the current queue in the queued task queues until the processing of all the task queues is completed, thereby obtaining a plurality of task packets.
Optionally, before determining the level corresponding to each task according to the standard client type corresponding to each task, the method further includes:
grouping a plurality of tasks according to operation units corresponding to the tasks to obtain a plurality of task groups;
according to the level of each task, sequentially issuing each non-weight task to a corresponding target client, and then issuing each weight task to the corresponding target client, including:
and according to the level of each task and the task group, sequentially issuing each non-weight task to a corresponding target client, and then issuing each weight task to the corresponding target client.
In a second aspect, an embodiment of the present invention further provides a device for issuing a network monitoring task, where the device is applied to a server, and the device includes:
the task acquisition module is used for acquiring a plurality of tasks to be issued for carrying out network monitoring on the client, and determining the corresponding level of each task according to the standard client type corresponding to each task;
the task dividing module is used for determining weight values corresponding to the tasks according to task types corresponding to the tasks and dividing the tasks into weight tasks and non-weight tasks according to the weight values;
and the task issuing module is used for issuing the non-weight tasks to the corresponding target clients in sequence according to the level of the tasks, and then issuing the weight tasks to the corresponding target clients.
In a third aspect, an embodiment of the present invention further provides an electronic device, including:
one or more processors;
a storage means for storing one or more programs;
and when the one or more programs are executed by the one or more processors, the one or more processors execute the programs to realize the network monitoring task issuing method provided by any embodiment of the invention.
In a fourth aspect, an embodiment of the present invention further provides a computer readable storage medium, where a computer program is stored, where the program when executed by a processor implements the network monitoring task issuing method provided by any embodiment of the present invention.
In a fifth aspect, embodiments of the present invention further provide a computer program product, where the computer program product includes a computer program, where the computer program when executed by a processor implements the network monitoring task issuing method provided by any embodiment of the present invention.
According to the technical scheme, the tasks to be issued are used for carrying out network monitoring on the client, the corresponding level of each task is determined according to the standard client type corresponding to each task, the corresponding weight value of each task is determined according to the task type corresponding to each task, and the tasks are divided into weight tasks and non-weight tasks according to the weight values; according to the level of each task, each non-weight task is sequentially issued to the corresponding target client, and then each weight task is issued to the corresponding target client, so that the issuing efficiency of the network monitoring task can be improved, and the full utilization of the client resources is realized.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a method for issuing a network monitoring task according to a first embodiment of the present invention;
fig. 2 is a flowchart of a network monitoring task issuing method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a network monitoring task issuing device according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device implementing a network monitoring task issuing method according to an embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
Fig. 1 is a flowchart of a network monitoring task issuing method according to an embodiment of the present invention, where the embodiment is applicable to a case where a server issues a network monitoring task to a client, and the method may be executed by a network monitoring task issuing device. The network monitoring task issuing device can be implemented by software and/or hardware, and can be generally integrated in an electronic device (such as a server) with a data processing function, and specifically comprises the following steps:
step 110, acquiring a plurality of tasks to be issued for network monitoring on the client, and determining the level corresponding to each task according to the standard client type corresponding to each task.
In this embodiment, the standard client type may be a terminal type supporting execution of the task. Different terminal types correspond to different task levels, and tasks of a particular level can only be performed by the matched terminals. Specifically, the higher the performance corresponding to the standard client, the higher the corresponding task level may be determined.
The method has the advantages that the client with excellent performance and high reliability can preferentially execute the task, so that the monitoring efficiency of the client network is improved.
In a specific embodiment, before acquiring a plurality of tasks, a mapping relation table between standard client types and task levels may be pre-constructed, after acquiring a plurality of tasks, standard client types corresponding to each task may be acquired respectively, and then the levels corresponding to each task may be obtained by querying the mapping relation table.
And 120, determining a weight value corresponding to each task according to the task type corresponding to each task, and dividing the tasks into weight tasks and non-weight tasks according to the weight values.
In this embodiment, the task type may be a priority of a task. After a plurality of tasks are acquired, a weight value corresponding to each task can be determined according to a task type (i.e. the priority level) corresponding to each task. After the weight values corresponding to the tasks are determined, the tasks can be divided into weight tasks and non-weight tasks according to a preset weight value interval.
In a specific embodiment, optionally, if the weight value corresponding to a task belongs to [0, 10], it may be determined that the task is a non-weight task; if the weight value corresponding to the task belongs to [11, 100], the task can be determined to be a weight task.
And 130, according to the level of each task, sequentially issuing each non-weight task to a corresponding target client, and then issuing each weight task to the corresponding target client.
In this embodiment, the client (i.e., the target client) that performs the task may be determined according to the level of each of the tasks. After determining the target client, each non-weight task can be issued to the target client, the non-weight tasks are executed in parallel by the target client, then each weight task is issued to the target client, and the weight tasks are executed in series by the target client.
The method has the advantages that as the requirements of the non-weight tasks on the client are low, the execution efficiency of the non-weight tasks can be improved by firstly issuing the non-weight tasks to the target client and executing the non-weight tasks in parallel by the target client; secondly, because the weight task has higher requirements on the client, namely the target client can not execute other tasks while executing the weight task, after the non-weight task is issued, the weight task is issued to the target client, and the weight task is executed in series by the target client, the resources of the client can be fully utilized, and the network monitoring efficiency of the client is improved.
In the implementation, the issuing sequence of the plurality of network monitoring tasks is determined by combining the levels, the types and the like of the tasks, each non-weighted task is issued to the corresponding target client, and each weighted task is issued to the corresponding target client.
According to the technical scheme, the tasks to be issued are used for carrying out network monitoring on the client, the corresponding level of each task is determined according to the standard client type corresponding to each task, the corresponding weight value of each task is determined according to the task type corresponding to each task, and the tasks are divided into weight tasks and non-weight tasks according to the weight values; according to the level of each task, each non-weight task is sequentially issued to the corresponding target client, and then each weight task is issued to the corresponding target client, so that the issuing efficiency of the network monitoring task can be improved, and the full utilization of the client resources is realized.
On the basis of the above embodiment, before determining the level corresponding to each task according to the standard client type corresponding to each task, the method further includes: and grouping the tasks according to the operation units corresponding to the tasks to obtain a plurality of task groups.
According to the level of each task, each non-weight task is sequentially issued to a corresponding target client, and then each weight task is issued to the corresponding target client, including: and according to the level of each task and the task group, sequentially issuing each non-weight task to a corresponding target client, and then issuing each weight task to the corresponding target client.
In this embodiment, after obtaining a plurality of tasks to be issued for network monitoring on a client, the plurality of tasks may be first grouped according to an operation unit corresponding to the tasks. When each task is issued, the task can be issued to the matched target client by combining the level of the task and the corresponding group. Specifically, the operation unit corresponding to the target client is consistent with the operation unit corresponding to the matched task.
The method has the advantages that time consumption in the task issuing process can be reduced and task issuing efficiency is improved by grouping a plurality of tasks.
Example two
The present embodiment is a further refinement of the foregoing embodiments, and the same or corresponding terms as those of the foregoing embodiments are explained, which are not repeated herein. Fig. 2 is a flowchart of a network monitoring task issuing method provided in the second embodiment, in this embodiment, the technical solution of the present embodiment may be combined with one or more methods in the solutions of the foregoing embodiments, as shown in fig. 2, where the method provided in the present embodiment may further include:
step 210, obtaining a plurality of tasks to be issued for network monitoring on the client, and determining a level corresponding to each task according to a standard client type corresponding to each task.
In this embodiment, optionally, if the standard client type corresponding to a certain task does not exist in all the clients corresponding to the server, the level corresponding to the task may be reduced, so that the task is compatible with the client.
Step 220, determining a weight value corresponding to each task according to the task type corresponding to each task, and dividing the tasks into weight tasks and non-weight tasks according to the weight values.
Step 230, determining a single client corresponding to each task from a plurality of clients to be monitored according to the level of each task.
In this embodiment, after dividing the tasks into weighted tasks and non-weighted tasks, one monitoring point (i.e., a single client) may be selected for each task. The method has the advantages that the fairness of the task issuing process can be guaranteed as much as possible, and under the condition that the client resources are limited, each task is preferentially corresponding to one execution body (namely a single client), so that the effectiveness of the network monitoring result is guaranteed.
Step 240, sequentially issuing each non-weight task to a corresponding single client, and then issuing each weight task to a corresponding single client.
In one implementation manner of the embodiment of the present invention, issuing each weight task to a corresponding single client includes: according to the weight value and the task frequency corresponding to each weight task, arranging each weight task; and constructing a plurality of task packages according to the arranged weight tasks, and issuing each task package to a corresponding single client.
In a specific embodiment, according to the weight value and the task frequency corresponding to each weight task, the arrangement of each weight task includes: dividing a plurality of weight tasks into different task queues according to weight values corresponding to the weight tasks; wherein, the weight values corresponding to the weight tasks in each task queue are the same, and the task weight values corresponding to the different task queues are different; the weight tasks in the task queues are arranged according to the order of the task frequency from low to high; and arranging the task queues according to the order of the task weight values from low to high.
In this embodiment, the lower the task frequency is, the closer the task expiration time is, so by arranging the weighted tasks in the order from low to high task frequency, the client can preferentially execute the task with lower frequency, and the validity of the network monitoring result is ensured. Secondly, the larger the task weight value is, the more the client resources consumed by the task are, and the task queue is ordered from low to high according to the weight value, so that the client can execute the task with the lower weight value preferentially, the full utilization of the client resources is realized, and the execution efficiency of the task is improved.
In this embodiment, optionally, according to the arranged weight tasks, a plurality of task packages are constructed, including: sequentially selecting each task queue from the queued task queues as a current queue; sequentially acquiring a weight task from the current queue as a current task, and sequentially acquiring a weight task from the next queue as a reference task; if the task frequency corresponding to the reference task is smaller than the task frequency corresponding to the current task, storing the current task and the reference task into a task package; and returning to execute the operation of sequentially selecting each task queue as the current queue in the queued task queues until the processing of all the task queues is completed, thereby obtaining a plurality of task packets.
In a specific embodiment, when constructing the task package, the first task may be first taken from the task queue with the lowest weight value, then the task with the higher weight value (i.e. the reference task is obtained in the next queue) is found, the task frequencies of the first task and the second task are compared, and if the task frequency of the first task and the task frequency of the second task are low, the two tasks are stored in the same task package.
The method has the advantages that the execution efficiency of the client in unit time and the fairness of task execution can be simultaneously considered, so that the task expiration failure is avoided, and the effectiveness and the reliability of the network monitoring result are ensured.
Step 250, after the single client task corresponding to each task is successfully issued, at least one alternative client corresponding to each task is determined in the remaining clients.
In this embodiment, after each single client corresponding to each task is successfully issued, other monitoring points (i.e., alternative clients) corresponding to each task may be determined continuously in the remaining clients corresponding to the server.
Step 260, sequentially issuing each non-weight task to a corresponding candidate client, and then issuing each weight task to a corresponding candidate client.
According to the technical scheme, the plurality of tasks are monitored through the network by obtaining the to-be-issued standard client types, the corresponding level of each task is determined according to the standard client types corresponding to each task, the corresponding weight value of each task is determined according to the corresponding task types of each task, the plurality of tasks are divided into the weight tasks and the non-weight tasks according to the weight values, the single client corresponding to each task is determined in the plurality of to-be-monitored clients according to the levels of each task, each non-weight task is sequentially issued to the corresponding single client, each weight task is then issued to the corresponding single client, at least one alternative client corresponding to each task is determined in the rest clients after the single client task corresponding to each task is successfully issued, each non-weight task is sequentially issued to the corresponding alternative clients, and then each weight task is issued to the corresponding alternative clients, so that the issuing efficiency of the network monitoring task can be improved, and the full utilization of the client resources can be realized.
Example III
Fig. 3 is a schematic structural diagram of a network monitoring task issuing device according to a third embodiment of the present invention, where, as shown in fig. 3, the device includes: a task acquisition module 310, a task partitioning module 320, and a task issuing module 330.
The task obtaining module 310 is configured to obtain a plurality of tasks to be issued for network monitoring on a client, and determine a level corresponding to each task according to a standard client type corresponding to each task;
the task dividing module 320 is configured to determine a weight value corresponding to each task according to a task type corresponding to each task, and divide the plurality of tasks into a weighted task and a non-weighted task according to the weight value;
the task issuing module 330 is configured to issue each of the non-weighted tasks to a corresponding target client in turn according to the level of each of the tasks, and then issue each of the weighted tasks to the corresponding target client.
According to the technical scheme provided by the embodiment of the invention, the plurality of tasks to be issued for network monitoring are obtained, the corresponding level of each task is determined according to the standard client type corresponding to each task, the corresponding weight value of each task is determined according to the task type corresponding to each task, and the plurality of tasks are divided into the weight tasks and the non-weight tasks according to the weight values; according to the level of each task, each non-weight task is sequentially issued to the corresponding target client, and then each weight task is issued to the corresponding target client, so that the issuing efficiency of the network monitoring task can be improved, and the full utilization of the client resources is realized.
On the basis of the above embodiment, the task obtaining module 310 includes:
and the task grouping unit is used for grouping a plurality of tasks according to the operation units corresponding to the tasks to obtain a plurality of task groups.
The task issuing module 330 includes:
the task processing unit is used for sequentially issuing the non-weight tasks to the corresponding target clients according to the level of the tasks and the task groups to which the tasks belong, and then issuing the weight tasks to the corresponding target clients;
the single client determining unit is used for determining a single client corresponding to each task in a plurality of clients to be monitored according to the level of each task;
the single client issuing unit is used for sequentially issuing the non-weight tasks to the corresponding single clients and then issuing the weight tasks to the corresponding single clients;
the alternative client determining unit is used for determining at least one alternative client corresponding to each task in the rest clients after the successful issuing of the single client task corresponding to each task is detected;
the candidate client issuing unit is used for sequentially issuing the non-weight tasks to the corresponding candidate clients and then issuing the weight tasks to the corresponding candidate clients;
the weight task arrangement unit is used for arranging the weight tasks according to the weight values and the task frequencies corresponding to the weight tasks;
the task package construction unit is used for constructing a plurality of task packages according to the arranged weight tasks and issuing the task packages to corresponding single clients;
the task queue dividing unit is used for dividing the plurality of weight tasks into different task queues according to the weight values corresponding to the weight tasks; wherein, the weight values corresponding to the weight tasks in each task queue are the same, and the task weight values corresponding to the different task queues are different;
the task frequency processing unit is used for arranging the weight tasks in each task queue according to the order of the task frequency from low to high;
the task queue arrangement unit is used for arranging the task queues according to the sequence of the task weight values from low to high;
the queue selecting unit is used for sequentially selecting each task queue from the queued task queues as a current queue;
the reference task acquisition unit is used for sequentially acquiring a weight task in the current queue as a current task, and sequentially acquiring a weight task in the next queue as a reference task;
the task storage unit is used for storing the current task and the reference task into a task package if the task frequency corresponding to the reference task is smaller than the task frequency corresponding to the current task;
and the circular execution unit is used for returning and executing the operation of sequentially selecting each task queue as the current queue in the queued task queues until the processing of all the task queues is completed, thereby obtaining a plurality of task packets.
The device can execute the method provided by all the embodiments of the invention, and has the corresponding functional modules and beneficial effects of executing the method. Technical details not described in detail in the embodiments of the present invention can be found in the methods provided in all the foregoing embodiments of the present invention.
Example IV
Fig. 4 shows a schematic diagram of the structure 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. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, 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, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate 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 required for the operation of the electronic device 10 may 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 bus 14.
Various 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, etc.; 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.
The 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, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as the network monitoring task issuing method.
In some embodiments, the network monitoring task delivery method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as the 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 RAM 13 and executed by processor 11, one or more steps of the network monitoring task issuing method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the network monitoring task issuing method in any other suitable way (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On 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, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out 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 implemented. The computer program 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 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. The 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 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 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) through 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 may 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 input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background 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 background, 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. The client and server are typically 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 hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. The network monitoring task issuing method is characterized by being applied to a server, and comprises the following steps:
acquiring a plurality of tasks to be issued for network monitoring on a client, and determining the corresponding level of each task according to the type of a standard client corresponding to each task;
determining a weight value corresponding to each task according to the task type corresponding to each task, and dividing a plurality of tasks into a weight task and a non-weight task according to the weight value;
and according to the level of each task, sequentially issuing each non-weight task to a corresponding target client, and then issuing each weight task to the corresponding target client.
2. The method of claim 1, wherein sequentially issuing each of the non-weighted tasks to a corresponding target client and then issuing each of the weighted tasks to a corresponding target client according to the level of each of the tasks comprises:
according to the level of each task, determining a single client corresponding to each task from a plurality of clients to be monitored;
sequentially issuing each non-weight task to a corresponding single client, and then issuing each weight task to the corresponding single client;
after the successful issuing of the single client task corresponding to each task is detected, at least one alternative client corresponding to each task is determined in the rest clients;
and sequentially issuing the non-weight tasks to the corresponding alternative clients, and then issuing the weight tasks to the corresponding alternative clients.
3. The method of claim 2, wherein issuing each of the weight tasks to a corresponding single client comprises:
according to the weight value and the task frequency corresponding to each weight task, arranging each weight task;
and constructing a plurality of task packages according to the arranged weight tasks, and issuing each task package to a corresponding single client.
4. The method of claim 3, wherein ranking each of the weight tasks according to the weight value and task frequency corresponding to each of the weight tasks comprises:
dividing a plurality of weight tasks into different task queues according to weight values corresponding to the weight tasks; wherein, the weight values corresponding to the weight tasks in each task queue are the same, and the task weight values corresponding to the different task queues are different;
the weight tasks in the task queues are arranged according to the order of the task frequency from low to high;
and arranging the task queues according to the order of the task weight values from low to high.
5. The method of claim 4, wherein constructing a plurality of task packages based on the ranked weighted tasks comprises:
sequentially selecting each task queue from the queued task queues as a current queue;
sequentially acquiring a weight task from the current queue as a current task, and sequentially acquiring a weight task from the next queue as a reference task;
if the task frequency corresponding to the reference task is smaller than the task frequency corresponding to the current task, storing the current task and the reference task into a task package;
and returning to execute the operation of sequentially selecting each task queue as the current queue in the queued task queues until the processing of all the task queues is completed, thereby obtaining a plurality of task packets.
6. The method of claim 1, further comprising, prior to determining the level for each of the tasks based on the standard client type for each of the tasks:
grouping a plurality of tasks according to operation units corresponding to the tasks to obtain a plurality of task groups;
according to the level of each task, sequentially issuing each non-weight task to a corresponding target client, and then issuing each weight task to the corresponding target client, including:
and according to the level of each task and the task group, sequentially issuing each non-weight task to a corresponding target client, and then issuing each weight task to the corresponding target client.
7. A network monitoring task issuing device, which is applied to a server, the device comprising:
the task acquisition module is used for acquiring a plurality of tasks to be issued for carrying out network monitoring on the client, and determining the corresponding level of each task according to the standard client type corresponding to each task;
the task dividing module is used for determining weight values corresponding to the tasks according to task types corresponding to the tasks and dividing the tasks into weight tasks and non-weight tasks according to the weight values;
and the task issuing module is used for issuing the non-weight tasks to the corresponding target clients in sequence according to the level of the tasks, and then issuing the weight tasks to the corresponding target clients.
8. An electronic device, the electronic device comprising:
one or more processors;
a storage means for storing one or more programs;
the network monitoring task issuing method according to any one of claims 1 to 6, when the one or more programs are executed by the one or more processors, such that the one or more processors execute the programs.
9. A computer readable storage medium having stored thereon a computer program, which when executed by a processor implements a network monitoring task issuing method according to any of claims 1-6.
10. A computer program product, characterized in that the computer program product comprises a computer program which, when executed by a processor, implements the network monitoring task issuing method according to any of claims 1-6.
CN202310862990.9A 2023-07-13 2023-07-13 Network monitoring task issuing method, device, equipment and storage medium Pending CN116915868A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310862990.9A CN116915868A (en) 2023-07-13 2023-07-13 Network monitoring task issuing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310862990.9A CN116915868A (en) 2023-07-13 2023-07-13 Network monitoring task issuing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116915868A true CN116915868A (en) 2023-10-20

Family

ID=88350514

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310862990.9A Pending CN116915868A (en) 2023-07-13 2023-07-13 Network monitoring task issuing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116915868A (en)

Similar Documents

Publication Publication Date Title
CN114742000A (en) SoC chip verification system, verification method and device based on FPGA cluster
CN114547069A (en) Data query method and device, electronic equipment and storage medium
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
CN116545905A (en) Service health detection method and device, electronic equipment and storage medium
CN113032092B (en) Distributed computing method, device and platform
CN116915868A (en) Network monitoring task issuing method, device, equipment and storage medium
CN116303524A (en) Data processing method, device, electronic equipment and storage medium
CN115543416A (en) Configuration updating method and device, electronic equipment and storage medium
CN113778645A (en) Task scheduling method, device and equipment based on edge calculation and storage medium
CN117493342B (en) Commodity data updating method, commodity data updating device, electronic equipment and storage medium
CN116614379B (en) Bandwidth adjustment method and device for migration service and related equipment
CN117632431A (en) Scheduling method, device, equipment and storage medium for cloud computing task
CN116361008A (en) Task balanced distribution method, device, equipment and medium based on electric power Internet of things
CN115442432B (en) Control method, device, equipment and storage medium
CN116389499A (en) Task allocation method, device, equipment and medium based on electric power Internet of things
CN117349016A (en) Resource allocation method, device, equipment and medium
CN115357358A (en) Radio data processing method, device, equipment and storage medium
CN113220233A (en) Data reading method, device and system
CN117743467A (en) Agent node replacement method, device, equipment and storage medium
CN113961581A (en) Query processing method and device, electronic equipment and storage medium
CN113934581A (en) Method and device for acquiring disk fault information of storage system, electronic equipment and medium
CN114781929A (en) Notification strategy generation method, device, equipment and storage medium
CN116016176A (en) Automatic distribution method and device for data center equipment
CN113343064A (en) Data processing method, device, equipment, storage medium and computer program product

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