CN112950447B - Resource scheduling method, device, server and storage medium - Google Patents

Resource scheduling method, device, server and storage medium Download PDF

Info

Publication number
CN112950447B
CN112950447B CN201911258885.4A CN201911258885A CN112950447B CN 112950447 B CN112950447 B CN 112950447B CN 201911258885 A CN201911258885 A CN 201911258885A CN 112950447 B CN112950447 B CN 112950447B
Authority
CN
China
Prior art keywords
intelligent image
image collector
data
target
collector
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.)
Active
Application number
CN201911258885.4A
Other languages
Chinese (zh)
Other versions
CN112950447A (en
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.)
Zhejiang Uniview Technologies Co Ltd
Original Assignee
Zhejiang Uniview Technologies 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 Zhejiang Uniview Technologies Co Ltd filed Critical Zhejiang Uniview Technologies Co Ltd
Priority to CN201911258885.4A priority Critical patent/CN112950447B/en
Publication of CN112950447A publication Critical patent/CN112950447A/en
Application granted granted Critical
Publication of CN112950447B publication Critical patent/CN112950447B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/20Processor architectures; Processor configuration, e.g. pipelining
    • 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/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/5044Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering hardware capabilities
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The embodiment of the invention discloses a resource scheduling method, a resource scheduling device, a server and a storage medium. The method comprises the following steps: if the abnormal state of the processing server corresponding to the non-intelligent image collector is detected, acquiring calculation force data of the candidate intelligent image collector; taking a candidate intelligent image collector with the calculation force data larger than a preset calculation force data threshold value as a target intelligent image collector; determining data receiving parameters of the target intelligent image collector, sending the data receiving parameters to the non-intelligent image collector, sending data to the target intelligent image collector by the non-intelligent image collector according to the data receiving parameters, and receiving and processing the data by the target intelligent image collector. According to the scheme, under the condition that the processing server is abnormal, the resources of the intelligent image collector are fully utilized to process the data of the non-intelligent image collector, the condition that the processing server is abnormal and cannot be realized is avoided, and the full utilization of the resources is realized.

Description

Resource scheduling method, device, server and storage medium
Technical Field
The embodiment of the invention relates to the technical field of intelligent control, in particular to a resource scheduling method, a resource scheduling device, a server and a storage medium.
Background
Along with the promotion of the intelligent chip, the computation power of the intelligent camera at the front end is stronger and the intelligence is higher, and the processing of the image can be directly finished in the intelligent camera at the front end. However, in many projects, since the non-intelligent cameras have been deployed before, if all the non-intelligent cameras are replaced by intelligent cameras, a lot of manpower and material resources are consumed, and therefore, a lot of non-intelligent cameras still exist to be applied at present.
The image processing of the non-intelligent camera needs to be completed in a processing server at the back end. The image data processing of the non-intelligent camera depends on a processing server at the back end, and if the processing server at the back end is abnormal, the image data of all the non-intelligent cameras corresponding to the processing server cannot be processed. Image data cannot be processed in time due to manual fault removal, instantaneity is affected, and if a plurality of processing servers are deployed, resource idling and waste are caused.
Disclosure of Invention
The embodiment of the invention provides a resource scheduling method, a resource scheduling device, a server and a storage medium, which are used for processing data of a non-intelligent image collector through the intelligent image collector when a processing server corresponding to the non-intelligent image collector cannot realize data processing.
In a first aspect, an embodiment of the present invention provides a resource scheduling method, where the method includes:
if the abnormal state of the processing server corresponding to the non-intelligent image collector is detected, acquiring calculation force data of the candidate intelligent image collector;
taking the candidate intelligent image collector with the calculation force data larger than a preset calculation force data threshold value as a target intelligent image collector;
determining data receiving parameters of the target intelligent image collector, and sending the data receiving parameters to the non-intelligent image collector, so that the non-intelligent image collector sends data to the target intelligent image collector according to the data receiving parameters, and the target intelligent image collector receives and processes the data.
In a second aspect, an embodiment of the present invention provides a resource scheduling apparatus, including:
the computing power data acquisition module is used for acquiring computing power data of the candidate intelligent image collector if detecting that the state of the processing server corresponding to the non-intelligent image collector is abnormal;
the determining module is used for taking the candidate intelligent image collector with the calculation force data larger than the preset calculation force data threshold value as a target intelligent image collector;
And the sending module is used for determining the data receiving parameters of the target intelligent image collector and sending the data receiving parameters to the non-intelligent image collector so that the non-intelligent image collector sends data to the target intelligent image collector according to the data receiving parameters and the target intelligent image collector receives and processes the data.
In a third aspect, an embodiment of the present invention further provides a server, where the server includes:
one or more processors;
a memory for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement a resource scheduling method as in any of the embodiments of the present invention.
In a fourth aspect, an embodiment of the present invention further provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor implements a resource scheduling method according to any one of the embodiments of the present invention.
In the embodiment of the invention, if the state of the processing server corresponding to the non-intelligent image collector is detected to be abnormal, the calculation force data of the candidate intelligent image collector is acquired, so that the intelligent image collector capable of realizing data processing is timely determined, and the candidate intelligent image collector with the calculation force data larger than the preset calculation force data threshold value is used as the target intelligent image collector, so that the target intelligent image collector for processing the data of the non-intelligent image collector is accurately determined; the data receiving parameters of the target intelligent image collector are determined, and the data receiving parameters are sent to the non-intelligent image collector, so that the non-intelligent image collector sends data to the target intelligent image collector according to the data receiving parameters, and the target intelligent image collector receives and processes the data, the problem that a processing analysis task of the data cannot be normally performed due to the abnormality of a processing server is solved, reasonable utilization of resources is achieved, and normal data processing is achieved under the condition that the processing server is abnormal.
Drawings
FIG. 1 is a flowchart of a method for scheduling resources according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method for scheduling resources according to another embodiment of the present invention;
fig. 3 is a schematic structural diagram of a resource scheduling device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a server 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.
Fig. 1 is a flowchart of a resource scheduling method according to an embodiment of the present invention. The resource scheduling method provided by the embodiment of the invention can be suitable for the situation that the data of the non-intelligent image collector is processed under the situation that the processing server corresponding to the non-intelligent image collector is abnormal, and typically, the embodiment of the invention can be suitable for the situation that the data of the non-intelligent image collector is processed by the target intelligent image collector with residual computing power when the processing server corresponding to the non-intelligent image collector is abnormal. The method may in particular be performed by a resource scheduling device, which may be implemented in software and/or hardware, which may be integrated in a server. Referring to fig. 1, the method in the embodiment of the present invention specifically includes:
S110, if detecting that the state of the processing server corresponding to the non-intelligent image collector is abnormal, acquiring calculation force data of the candidate intelligent image collector.
The non-intelligent image collector can be equipment which can only realize an image collecting function, but cannot realize a data processing and analyzing function, such as a common video camera, a common camera and the like. The non-intelligent image collector generally needs to send the image data to a corresponding processing server, and the processing server processes the image data. A processing server may process image data of the corresponding at least one non-intelligent image collector. The intelligent image collector is equipment capable of realizing image collection and processing and analyzing collected image data, and can process and analyze the data at the front end without processing through a rear end server. The candidate intelligent image collector may be an intelligent image collector that is currently operating normally. The computing power data is data capable of reflecting the data processing capability of the candidate intelligent image collector, such as the available core number of a processor of the candidate intelligent image collector, the current number of video flow paths capable of being processed, and the like. Illustratively, the candidate smart image collector is capable of processing 10 paths of video in total, while 5 paths of video are currently being processed, and may also process 5 paths of video, so the remaining computational power data of the candidate smart image collector is 5.
Because a processing server is responsible for processing the image data of at least one non-intelligent image collector, if the processing server is abnormal, the data of the non-intelligent image collector cannot be processed and analyzed, and single-point faults are generated. In the embodiment of the invention, if the management server detects that the state of the processing server corresponding to the non-intelligent image collector is abnormal, the calculation power data of the candidate intelligent image collector is acquired to determine whether the candidate intelligent image collector can perform data processing.
In one embodiment of the present application, if the abnormal state of the processing server corresponding to the non-intelligent image collector is detected, before the calculation power data of the candidate intelligent image collector is obtained, the method further includes: the attribute parameters of the non-intelligent image collector and the intelligent image collector are obtained as shown in table 1. In the embodiment of the invention, each device can register with the central server, and then the central server synchronizes the data to the management server. Or registering each device directly with the management server, reporting attribute parameters, and storing by the management server.
TABLE 1
Device IP Device ID Device type
IP1 ID1 Intelligent device
IP2 ID2 Intelligent device
IP3 ID3 Non-intelligent
IP4 ID4 Non-intelligent
And S120, taking the candidate intelligent image collector with the calculated force data larger than a preset calculated force data threshold value as a target intelligent image collector.
The preset calculation force threshold value can be set according to actual conditions, for example, can be set to 0, namely calculation force data is larger than 0, and the candidate intelligent image collector can be considered to be capable of realizing data processing, and can be calculated according to calculation force required by analyzing data collected by the non-intelligent image collector. Illustratively, if the computational power data of the candidate intelligent image collector is greater than the computational power data threshold, the candidate intelligent image collector is indicated to be capable of processing and analyzing the data, and therefore the candidate intelligent image collector is taken as a target intelligent image collector so as to facilitate the subsequent receiving and data processing of the data from the non-intelligent image collector.
S130, determining data receiving parameters of the target intelligent image collector, and sending the data receiving parameters to the non-intelligent image collector, so that the non-intelligent image collector sends data to the target intelligent image collector according to the data receiving parameters, and the target intelligent image collector receives and processes the data.
The data receiving parameters comprise a target intelligent image collector receiving port number and an identifier, and the data receiving parameters are used for determining the port number of the target intelligent image collector for receiving data and the identity of a non-intelligent image collector for sending the data. The identifier may be an IP address, an ID number, or the like of the non-intelligent image collector, which is used to identify the uniqueness of the non-intelligent image collector. Specifically, the management server determines the data receiving parameters of the target intelligent image collector, so that the non-intelligent image collector can transmit data to the target intelligent image collector in a targeted manner according to the data receiving parameters.
In one embodiment of the present application, determining a data receiving parameter of a target intelligent image collector includes: sending exception notification information to the target intelligent image collector to instruct the target intelligent image collector to determine a data receiving port number and feed back the data receiving port number; and receiving the data receiving port number, and taking the receiving port number and the identification as data receiving parameters.
Illustratively, the non-intelligent image collector needs to know the port of the target intelligent image collector that receives the data before sending the data to the target intelligent image collector, so as to send the data to the port of the target intelligent image collector. Thus, the management server transmits an abnormality notification message to the target intelligent image collector instructing the target intelligent image collector to determine the data receiving port. The target intelligent image collector determines an idle port, determines the idle port as a data receiving port, sends the data receiving port number to the management server, uses the data receiving port number and the target intelligent image collector identifier as data receiving parameters, and sends the data receiving parameters to the non-intelligent image collector, wherein the data receiving parameters can also comprise that the non-intelligent image collector sends an association ID with the target intelligent image collector, the non-intelligent image collector and the intelligent image collector which have an association relationship have the same association ID, so that the non-intelligent image collector determines the intelligent image collector which is associated with the non-intelligent image collector according to the association ID, and determines that the data should be sent to the target intelligent image collector with the same association ID for processing. The association ID may also be used to be read by a non-intelligent image collector to learn that the backend processing server is out of state, and data needs to be sent to the intelligent image collector associated therewith for data processing and analysis. And the non-intelligent image collector transmits data to the target intelligent image collector in a targeted manner according to the data receiving parameters, and the target intelligent image collector processes the received data.
In one embodiment of the present application, after determining the data receiving parameters of the target intelligent image collector and sending the data receiving parameters to the non-intelligent image collector, the method further includes: receiving a data transmission port number fed back by the non-intelligent image collector according to the data receiving parameters; and taking the data transmission port number and the non-intelligent image collector identifier as data transmission parameters, transmitting the data transmission parameters to the target intelligent image collector, carrying out matching verification on the data transmission port number and the identifier of the non-intelligent image collector for transmitting data to the target intelligent image collector according to the data transmission port number and the non-intelligent image collector identifier in the data transmission parameters by the target intelligent image collector, and if the verification is passed, executing the operation of receiving and processing the data.
For example, after receiving the data receiving parameters, the non-intelligent image collector learns that the state of the processing server corresponding to the non-intelligent image collector is abnormal according to the read association ID, so that the idle port number of the non-intelligent image collector is determined as a data sending port number, and the data sending port number is sent to the management server. The association ID may also be sent to the management server. The management server takes the data transmission port number and the non-intelligent image collector identification as data transmission parameters and transmits the data transmission parameters to the target intelligent image collector so that the target intelligent image collector can know the port number of the device for transmitting the data. In the data transmission process, the target intelligent image collector performs matching verification on the data transmission port number and the identification of the non-intelligent image collector for transmitting data to the target intelligent image collector according to the data transmission port number and the identification of the non-intelligent image collector in the data transmission parameters, and if the verification is passed, the operation of receiving and processing the data is performed, so that the safety of data transmission is ensured.
In the embodiment of the application, if the state of the processing server corresponding to the non-intelligent image collector is abnormal, the calculation force data of the candidate intelligent image collector is obtained, so that the intelligent image collector capable of realizing data processing is timely determined, and the candidate intelligent image collector with the calculation force data larger than the preset calculation force data threshold value is used as the target intelligent image collector, so that the target intelligent image collector for processing the data of the non-intelligent image collector is accurately determined; the data receiving parameters of the target intelligent image collector are determined, and the data receiving parameters are sent to the non-intelligent image collector, so that the non-intelligent image collector sends data to the target intelligent image collector according to the data receiving parameters, and the target intelligent image collector receives and processes the data, the problem that a processing analysis task of the data cannot be normally performed due to the abnormality of a processing server is solved, reasonable utilization of resources is achieved, and normal data processing is achieved under the condition that the processing server is abnormal.
Fig. 2 is a flowchart of a resource scheduling method according to another embodiment of the present invention. The embodiments of the present invention are further optimized for the above embodiments, and details not described in detail in this embodiment are detailed in the above embodiments. Referring to fig. 2, the resource scheduling method provided in this embodiment may include:
S210, if a data processing request aiming at the intelligent image collector and the non-intelligent image collector is detected, establishing an association relation between the intelligent image collector and the non-intelligent image collector.
For example, in order to ensure that the non-intelligent image collector can perform ordered data transmission to the target intelligent image collector, if the management server detects a data processing request for the intelligent image collector and the non-intelligent image collector, as shown in table 2, the processing server is required to process the data of the non-intelligent image collector, and when the intelligent image collector processes the data, an association relationship between the intelligent image collector and the non-intelligent image collector is established so as to associate the intelligent image collector and the non-intelligent image collector, so that the data transmission is performed more orderly. Wherein the data processing request may be generated for a user to act on a selection operation of the intelligent image collector and the non-intelligent image collector in the client. If the intelligent image collector is in the working state of data processing, the non-intelligent image collector is associated with the intelligent image collector, so that when the state of a processing server of the non-intelligent image collector is abnormal, the associated intelligent image collector processes the data of the non-intelligent image collector. Through the scheme, the intelligent image collector can be associated with the non-intelligent image collector when the intelligent image collector is in the process of data processing or is in the process of data processing, so that the resources in the starting state of the data processing are reasonably utilized, the resources of the intelligent image collector are fully utilized, the intelligent image collector in the non-starting state is prevented from being called to perform data processing, the starting time and the starting power consumption are increased, and the data of the non-intelligent image collector are processed in advance, the calculation data are occupied, and the possibility of affecting the normal processing of the data of the non-intelligent image collector is provided. One non-intelligent image collector may establish an association relationship with at least one intelligent image collector, and one intelligent image collector may also establish an association relationship with at least one non-intelligent image collector, which is not particularly limited herein.
In yet another embodiment of the present application, establishing an association between the intelligent image collector and the non-intelligent image collector includes: establishing an association relationship of at least one of a data processing task ID, an equipment IP, an equipment ID and an equipment type of the intelligent image collector and the non-intelligent image collector, and determining the association ID of the intelligent image collector and the non-intelligent image collector so as to identify the association relationship; and setting the initial association state of the intelligent image collector and the non-intelligent image collector to be an inactive state.
Illustratively, in order to perform association identification on specific parameters of the intelligent image collector and the non-intelligent image collector, at least one of a data processing task ID, a device IP, a device ID and a device type of the intelligent image collector and the non-intelligent image collector is associated, so that identification of the intelligent image collector and the non-intelligent image collector is facilitated according to associated contents. And setting the initial association relationship to be in an inactive state to indicate that the current intelligent image collector does not process the data of the non-intelligent image collector.
TABLE 2
Figure BDA0002311063780000101
S220, determining the intelligent image collector associated with the non-intelligent image collector as a candidate intelligent image collector.
By way of example, the intelligent image collector associated with the non-intelligent image collector is determined as a candidate intelligent image collector, so that the situation that different non-intelligent image collectors send data to the same intelligent image collector for processing and the idle intelligent image collector does not receive the data of the non-intelligent image collector for processing exists, and the efficiency of data transmission and processing is affected.
S230, if detecting that the state of the processing server corresponding to the non-intelligent image collector is abnormal, acquiring calculation force data of the candidate intelligent image collector.
In still another embodiment of the present application, if an abnormality in a state of a processing server corresponding to a non-intelligent image collector is detected, acquiring calculation force data of a candidate intelligent image collector includes: if detecting that the state of the processing server corresponding to the non-intelligent image collector is abnormal, converting the association state of the intelligent image collector with the non-intelligent image collector with the association relationship from an unactivated state to an activated state: and if the association state is detected to be the activation state, acquiring calculation force data of the candidate intelligent image collector.
For example, since the intelligent image collector is not required to process the data of the non-intelligent image collector under the normal state of the processing server, the calculation power data of the intelligent image collector is not required to be acquired. In order to indicate whether the intelligent image collector is required to process the data of the non-intelligent image collector at the moment, the association state of the intelligent image collector and the non-intelligent image collector is marked so as to determine whether the intelligent image collector and the non-intelligent image collector have a cooperative working state at present. For example, when the intelligent image collector is associated with the non-intelligent image collector, but the intelligent image collector is not required to process the data of the non-intelligent image collector, the associated state is set to be an activated state, and when the intelligent image collector is required to process the data of the non-intelligent image collector, the associated state is set to be an inactivated state.
Illustratively, the initial association state of the intelligent image collector and the non-intelligent image collector with the association relationship is an inactive state. If the state of the processing server corresponding to the non-intelligent image collector is detected to be abnormal, the current association state of the intelligent image collector and the non-intelligent image collector with the association relationship is set to be an activation state, and when the management server detects that the association state is the activation state, information such as equipment IP, equipment ID, equipment type and association ID of the intelligent image collector and the non-intelligent image collector in the association relationship is sent to the intelligent image collector, and calculation force data of the intelligent image collector are obtained.
S240, judging whether the calculation power data of the candidate intelligent image sampler is larger than the preset calculation power data, if so, executing S250-S260; if not, then S270 is performed.
S250, taking the candidate intelligent image collector as a target intelligent image collector.
S260, determining data receiving parameters of the target intelligent image collector, and sending the data receiving parameters to the non-intelligent image collector, so that the non-intelligent image collector sends data to the target intelligent image collector according to the data receiving parameters, and the target intelligent image collector receives and processes the data.
In yet another embodiment of the present application, after the sending of the data receiving parameter to the non-intelligent image collector, the method further includes: and sending a data transmission instruction to the non-intelligent image collector so as to instruct the non-intelligent image collector to send data to the target intelligent image collector according to the data receiving parameters.
Transmitting a data transmission instruction to the non-intelligent image collector, comprising: and if receiving a receiving preparation message of the target intelligent image collector and a sending preparation message of the non-intelligent image collector, sending a data transmission instruction to the target intelligent image collector and the non-intelligent image collector.
For example, in order to ensure that data transmission is performed under the condition that the non-intelligent image collector and the intelligent image collector are ready for data transmission, after receiving a reception preparation message of the target intelligent image collector and a transmission preparation message of the non-intelligent image collector, a data transmission instruction is sent to the non-intelligent image collector, so that the non-intelligent image collector is instructed to send data to the target intelligent image collector, effective transmission of the data is ensured, and the situation that the non-intelligent image collector sends the data to cause data transmission failure under the condition that the intelligent image collector is not ready for data reception is avoided.
S270, acquiring calculation force data of the candidate intelligent image collector according to a preset frequency.
And acquiring the calculation force data of the candidate intelligent image collectors according to the preset frequency until the calculation force data of the candidate intelligent image collectors are larger than a preset calculation force data threshold value, and executing the candidate intelligent image collectors with the calculation force data larger than the preset calculation force data threshold value to operate as target intelligent image collectors.
For example, if the calculation force data of the candidate intelligent image collector is not greater than the preset calculation force data threshold, the management server acquires the calculation force data of the candidate image collector according to the preset frequency, but does not instruct the non-intelligent image collector to send data to the intelligent image collector, and when the acquired calculation force data is greater than the preset threshold, S250-S260 are executed to realize the processing of the target intelligent image collector to send data to the non-intelligent image collector.
According to the technical scheme, if the data processing requests for the intelligent image collector and the non-intelligent image collector are detected, the association relation between the intelligent image collector and the non-intelligent image collector is established, so that the situation that different non-intelligent image collectors send data to the same intelligent image collector for processing, and the idle intelligent image collector does not receive the data of the non-intelligent image collector for processing is avoided, and the efficiency of data transmission and processing is affected. Under the condition that the calculation force data of the candidate intelligent image sampler is not larger than the preset calculation force data, the calculation force data of the candidate intelligent image sampler is obtained according to the preset frequency, so that the candidate intelligent image sampler with the calculation force data meeting the conditions is timely obtained, and the target intelligent image sampler is used for processing the data sent by the non-intelligent image sampler.
Fig. 3 is a schematic structural diagram of a resource scheduling device according to an embodiment of the present invention. The device can be suitable for the situation that the data of the non-intelligent image collector is processed under the condition that the processing server corresponding to the non-intelligent image collector is abnormal, and typically, the embodiment of the invention can be suitable for the situation that the data of the non-intelligent image collector is processed through the intelligent image collector with residual computing power when the processing server corresponding to the non-intelligent image collector is abnormal. The apparatus may be implemented in software and/or hardware, and the apparatus may be integrated in a server. Referring to fig. 3, the apparatus specifically includes:
the calculation force data obtaining module 310 is configured to obtain calculation force data of the candidate intelligent image collector if detecting that the state of the processing server corresponding to the non-intelligent image collector is abnormal;
the target determining module 320 is configured to take the candidate intelligent image collector whose computing power data is greater than a preset computing power data threshold as a target intelligent image collector;
and the parameter sending module 330 is configured to determine a data receiving parameter of the target intelligent image collector, send the data receiving parameter to the non-intelligent image collector, send data to the intelligent image collector according to the data receiving parameter by the non-intelligent image collector, and receive and process the data by the intelligent image collector.
In another embodiment of the present application, the parameter sending module 330 includes:
an anomaly notification message sending unit, configured to send anomaly notification information to the target intelligent image collector, so that the target intelligent image collector is instructed to determine a data receiving port number, and feed back the data receiving port number;
and the data receiving port number receiving unit is used for receiving the data receiving port number and identifying the receiving port number and the intelligent image collector as data receiving parameters.
In another embodiment of the present application, further comprising:
the data transmission port number receiving module is used for receiving the data transmission port number fed back by the non-intelligent image collector according to the data receiving parameters;
the data transmission parameter determining module is used for taking the data transmission port number and the non-intelligent image collector identifier as data transmission parameters, transmitting the data transmission parameters to the target intelligent image collector, and carrying out matching verification on the data transmission port number and the identifier of the non-intelligent image collector which transmit data to the target intelligent image collector according to the data transmission port number and the non-intelligent image collector identifier in the data transmission parameters by the target intelligent image collector, and if the verification is passed, executing the operation of receiving and processing the data.
In another embodiment of the present application, further comprising:
the system comprises an incidence relation establishing module, a data processing module and a data processing module, wherein the incidence relation establishing module is used for establishing an incidence relation between an intelligent image collector and a non-intelligent image collector if a data processing request aiming at the intelligent image collector and the non-intelligent image collector is detected;
and the candidate intelligent image collector determining module is used for determining the intelligent image collector associated with the non-intelligent image collector as a candidate intelligent image collector.
In another embodiment of the present application, the association relationship establishing module includes:
the incidence relation identification unit is used for establishing an incidence relation of at least one of data processing task IDs, equipment IP, equipment IDs and equipment types of the intelligent image collector and the non-intelligent image collector, and determining the incidence IDs of the intelligent image collector and the non-intelligent image collector so as to identify the incidence relation;
and the inactive state identification unit is used for setting the initial association state of the intelligent image collector and the non-intelligent image collector to be an inactive state.
In another embodiment of the present application, the computing force data acquisition module 310 includes:
the conversion unit is used for converting the association state of the intelligent image collector with the non-intelligent image collector with the association relationship from the non-activated state to the activated state if the abnormal state of the processing server corresponding to the non-intelligent image collector is detected:
And the acquisition unit is used for acquiring the calculation force data of the candidate intelligent image collector if the association state is detected to be the activation state.
In another embodiment of the present application, further comprising:
and the continuous acquisition module is used for acquiring the calculation force data of the candidate intelligent image collectors according to the preset frequency if the calculation force data of the candidate intelligent image collectors are smaller than or equal to the preset calculation force data threshold value until the calculation force data of the candidate intelligent image collectors are larger than the preset calculation force data threshold value, and executing the candidate intelligent image collectors with the calculation force data larger than the preset calculation force data threshold value to operate as target intelligent image collectors.
According to the technical scheme, if the state of the processing server corresponding to the non-intelligent image collector is abnormal, the calculation force data of the candidate intelligent image collector is obtained, so that the intelligent image collector capable of realizing data processing is timely determined, and the candidate intelligent image collector with the calculation force data larger than the preset calculation force data threshold value is used as the target intelligent image collector, so that the target intelligent image collector for processing the data of the non-intelligent image collector is accurately determined; the data receiving parameters of the target intelligent image collector are determined, and the data receiving parameters are sent to the non-intelligent image collector, so that the non-intelligent image collector sends data to the target intelligent image collector according to the data receiving parameters, and the target intelligent image collector receives and processes the data, the problem that a processing analysis task of the data cannot be normally performed due to the abnormality of a processing server is solved, reasonable utilization of resources is achieved, and normal data processing is achieved under the condition that the processing server is abnormal.
Fig. 4 is a schematic structural diagram of a server according to an embodiment of the present invention. Fig. 4 illustrates a block diagram of an exemplary server 412 suitable for use in implementing embodiments of the invention. The server 412 shown in fig. 4 is only an example and should not be construed as limiting the functionality and scope of use of the embodiments of the present invention.
As shown in fig. 4, the server 412 includes: one or more processors 416; memory 428 is configured to store one or more programs that, when executed by the one or more processors 416, cause the one or more processors 416 to implement the resource scheduling method provided by the embodiments of the present invention, includes:
if the abnormal state of the processing server corresponding to the non-intelligent image collector is detected, acquiring calculation force data of the candidate intelligent image collector;
taking the candidate intelligent image collector with the calculation force data larger than a preset calculation force data threshold value as a target intelligent image collector;
determining data receiving parameters of the target intelligent image collector, and sending the data receiving parameters to the non-intelligent image collector, so that the non-intelligent image collector sends data to the target intelligent image collector according to the data receiving parameters, and the target intelligent image collector receives and processes the data.
In the form of a general-purpose server. Components of server 412 may include, but are not limited to: one or more processors or processors 416, a system memory 428, and a bus 418 that connects the various system components (including the system memory 428 and the processor 416).
Bus 418 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Server 412 typically includes a variety of computer system readable storage media. Such storage media can be any available storage media that can be accessed by server 412 and includes both volatile and nonvolatile storage media, removable and non-removable storage media.
The system memory 428 may include computer system readable storage media in the form of volatile memory such as Random Access Memory (RAM) 430 and/or cache memory 432. The server 412 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 434 may be used to read from or write to a non-removable, nonvolatile magnetic storage medium (not shown in FIG. 4, commonly referred to as a "hard disk drive"). Although not shown in fig. 4, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical storage medium), may be provided. In such cases, each drive may be coupled to bus 418 via one or more data storage medium interfaces. Memory 428 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of embodiments of the invention.
A program/utility 440 having a set (at least one) of program modules 442 may be stored in, for example, memory 428, such program modules 462 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 462 generally perform the functions and/or methods of the embodiments described herein.
The server 412 may also communicate with one or more external servers 414 (e.g., keyboard, pointing server, display 426, etc.), with one or more servers that enable users to interact with the server 412, and/or with any server (e.g., network card, modem, etc.) that enables the server 412 to communicate with one or more other computing servers. Such communication may occur through an input/output (I/O) interface 422. Also, the server 412 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through a network adapter 420. As shown, network adapter 420 communicates with other modules of server 412 via bus 418. It should be appreciated that although not shown in fig. 4, other hardware and/or software modules may be used in connection with server 412, including, but not limited to: microcode, server drives, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processor 416 performs various functional applications and data processing by running at least one of the other programs among the plurality of programs stored in the system memory 428, for example, to implement a resource scheduling method provided by an embodiment of the present invention.
One embodiment of the present invention provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are for performing a resource scheduling method:
if the abnormal state of the processing server corresponding to the non-intelligent image collector is detected, acquiring calculation force data of the candidate intelligent image collector;
taking the candidate intelligent image collector with the calculation force data larger than a preset calculation force data threshold value as a target intelligent image collector;
determining data receiving parameters of the target intelligent image collector, and sending the data receiving parameters to the non-intelligent image collector, so that the non-intelligent image collector sends data to the target intelligent image collector according to the data receiving parameters, and the target intelligent image collector receives and processes the data.
The computer storage media of embodiments of the present invention may take the form of any combination of one or more computer-readable storage media. The computer readable storage medium may be a computer readable signal storage medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having 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. In embodiments of the present invention, a computer readable storage medium may be any tangible storage medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal storage medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal storage medium may also be any computer readable storage medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable storage medium may be transmitted using any appropriate storage medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (10)

1. A method for scheduling resources, the method comprising:
if the abnormal state of the processing server corresponding to the non-intelligent image collector is detected, acquiring calculation force data of the candidate intelligent image collector; the intelligent image collector is equipment capable of realizing image collection and processing and analyzing collected image data;
taking the candidate intelligent image collector with the calculation force data larger than a preset calculation force data threshold value as a target intelligent image collector;
determining data receiving parameters of the target intelligent image collector, and sending the data receiving parameters to the non-intelligent image collector, so that the non-intelligent image collector sends data to the target intelligent image collector according to the data receiving parameters, and the target intelligent image collector receives and processes the data.
2. The method of claim 1, wherein determining data reception parameters of the target intelligent image collector comprises:
sending exception notification information to the target intelligent image collector to instruct the target intelligent image collector to determine a data receiving port number and feed back the data receiving port number;
and receiving the data receiving port number, and identifying the receiving port number and the target intelligent image collector as data receiving parameters.
3. The method of claim 1, further comprising, after determining the data reception parameters of the target intelligent image collector and transmitting the data reception parameters to the non-intelligent image collector:
receiving a data transmission port number fed back by the non-intelligent image collector according to the data receiving parameters;
and taking the data transmission port number and the non-intelligent image collector identifier as data transmission parameters, transmitting the data transmission parameters to the target intelligent image collector, carrying out matching verification on the non-intelligent image collector data transmission port number and the non-intelligent image collector identifier for transmitting data to the target intelligent image collector according to the data transmission port number and the non-intelligent image collector identifier in the data transmission parameters by the target intelligent image collector, and if the verification is passed, executing the operation of receiving and processing the data.
4. The method of claim 1, further comprising, prior to acquiring the computational power data of the candidate intelligent image collector:
if a data processing request aiming at an intelligent image collector and a non-intelligent image collector is detected, establishing an association relation between the intelligent image collector and the non-intelligent image collector;
and determining the intelligent image collector associated with the non-intelligent image collector as a candidate intelligent image collector.
5. The method of claim 4, wherein establishing an association of the intelligent image collector and the non-intelligent image collector comprises:
establishing an association relationship of at least one of a data processing task ID, an equipment IP, an equipment ID and an equipment type of the intelligent image collector and the non-intelligent image collector, and determining the association ID of the intelligent image collector and the non-intelligent image collector so as to identify the association relationship;
and setting the initial association state of the intelligent image collector and the non-intelligent image collector to be an inactive state.
6. The method of claim 5, wherein if an abnormality in the state of the processing server corresponding to the non-intelligent image collector is detected, acquiring the computing power data of the candidate intelligent image collector comprises:
If detecting that the state of the processing server corresponding to the non-intelligent image collector is abnormal, converting the association state of the intelligent image collector with the non-intelligent image collector with the association relationship from an unactivated state to an activated state:
and if the association state is detected to be the activation state, acquiring calculation force data of the candidate intelligent image collector.
7. The method according to claim 1, wherein the method further comprises:
and if the calculation force data of the candidate intelligent image collectors are smaller than or equal to a preset calculation force data threshold value, acquiring the calculation force data of the candidate intelligent image collectors according to a preset frequency until the calculation force data of the candidate intelligent image collectors are larger than the preset calculation force data threshold value, and executing the candidate intelligent image collectors with the calculation force data larger than the preset calculation force data threshold value to operate as target intelligent image collectors.
8. A resource scheduling apparatus, the apparatus comprising:
the computing power data acquisition module is used for acquiring computing power data of the candidate intelligent image collector if detecting that the state of the processing server corresponding to the non-intelligent image collector is abnormal; the intelligent image collector is equipment capable of realizing image collection and processing and analyzing collected image data;
The determining module is used for taking the candidate intelligent image collector with the calculation force data larger than the preset calculation force data threshold value as a target intelligent image collector;
and the sending module is used for determining the data receiving parameters of the target intelligent image collector and sending the data receiving parameters to the non-intelligent image collector so that the non-intelligent image collector sends data to the target intelligent image collector according to the data receiving parameters and the target intelligent image collector receives and processes the data.
9. A server, the server comprising: one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement a resource scheduling method as claimed in any one of claims 1-7.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements a resource scheduling method according to any one of claims 1-7.
CN201911258885.4A 2019-12-10 2019-12-10 Resource scheduling method, device, server and storage medium Active CN112950447B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911258885.4A CN112950447B (en) 2019-12-10 2019-12-10 Resource scheduling method, device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911258885.4A CN112950447B (en) 2019-12-10 2019-12-10 Resource scheduling method, device, server and storage medium

Publications (2)

Publication Number Publication Date
CN112950447A CN112950447A (en) 2021-06-11
CN112950447B true CN112950447B (en) 2023-04-28

Family

ID=76225531

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911258885.4A Active CN112950447B (en) 2019-12-10 2019-12-10 Resource scheduling method, device, server and storage medium

Country Status (1)

Country Link
CN (1) CN112950447B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117745514A (en) * 2024-02-20 2024-03-22 浙江宇视科技有限公司 Image distribution method, device, equipment and medium of intelligent server cluster

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101252776A (en) * 2008-04-03 2008-08-27 中兴通讯股份有限公司 Resource allocation method
CN104615617A (en) * 2014-05-13 2015-05-13 国家电网公司 Dispatch monitoring information processing system for substation equipment

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5323554B2 (en) * 2009-03-27 2013-10-23 株式会社日立製作所 Job processing method, computer-readable recording medium storing job processing program, and job processing system
US20120324471A1 (en) * 2010-02-26 2012-12-20 Nec Corporation Control device, management device, data processing method of control device, and program
US8219684B1 (en) * 2011-11-02 2012-07-10 Google Inc. Redundant data requests with cancellation
CN104598304B (en) * 2013-10-31 2018-03-13 国际商业机器公司 Method and apparatus for the scheduling in Job execution
US20170142227A1 (en) * 2014-06-18 2017-05-18 Huawei Technologies Co., Ltd. Data processing apparatus and data processing method
US9798584B1 (en) * 2015-09-29 2017-10-24 EMC IP Holding Company LLC Methods and apparatus for IO sizing based task throttling
CN114448673A (en) * 2018-02-13 2022-05-06 华为云计算技术有限公司 Device access method, related platform and computer storage medium
CN109495573A (en) * 2018-11-26 2019-03-19 Oppo广东移动通信有限公司 Data transmission method, device, storage medium and terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101252776A (en) * 2008-04-03 2008-08-27 中兴通讯股份有限公司 Resource allocation method
CN104615617A (en) * 2014-05-13 2015-05-13 国家电网公司 Dispatch monitoring information processing system for substation equipment

Also Published As

Publication number Publication date
CN112950447A (en) 2021-06-11

Similar Documents

Publication Publication Date Title
CN111083225B (en) Data processing method and device in Internet of things platform and Internet of things platform
US20190158626A1 (en) Method, apparatus and computer readable storage medium for processing service
CN111045911B (en) Performance test method, performance test device, storage medium and electronic equipment
CN110515808B (en) Database monitoring method and device, computer equipment and storage medium
CN112506755A (en) Log collection method and device, computer equipment and storage medium
CN114398179B (en) Method and device for acquiring tracking identifier, server and storage medium
CN111221793A (en) Data mining method, platform, computer equipment and storage medium
CN112950447B (en) Resource scheduling method, device, server and storage medium
CN110888985A (en) Alarm information processing method and device, electronic equipment and storage medium
CN113760562A (en) Link tracking method, device, system, server and storage medium
CN112749062A (en) Server program monitoring method and device, computer equipment and storage medium
CN114553663B (en) Abnormality detection method, abnormality detection device, abnormality detection equipment and storage medium
CN111427710B (en) Communication method, device, equipment and storage medium of components in application program
CN111651330B (en) Data acquisition method, data acquisition device, electronic equipment and computer readable storage medium
CN115515026A (en) Ammeter data transmission system, method, device, equipment and medium
CN113965447B (en) Online cloud diagnosis method, device, system, equipment and storage medium
CN109034768B (en) Financial reconciliation method, apparatus, computer device and storage medium
CN113590492A (en) Information processing method, system, electronic device and computer readable storage medium
CN106777010B (en) Log providing method and device and log obtaining method, device and system
US10902027B2 (en) Generation of category information for measurement value
CN110908886A (en) Data sending method and device, electronic equipment and storage medium
CN112087474B (en) Cluster-based port information acquisition method and device
JP7389370B2 (en) Operation equipment, maintenance management system, operation method and program
CN115766278B (en) Firewall policy generation method, device, equipment and storage medium
CN113688132A (en) Data storage method and device, electronic 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
GR01 Patent grant
GR01 Patent grant