CN112015547B - Miner task allocation method and system for block chain evidence storage platform - Google Patents

Miner task allocation method and system for block chain evidence storage platform Download PDF

Info

Publication number
CN112015547B
CN112015547B CN202010758293.5A CN202010758293A CN112015547B CN 112015547 B CN112015547 B CN 112015547B CN 202010758293 A CN202010758293 A CN 202010758293A CN 112015547 B CN112015547 B CN 112015547B
Authority
CN
China
Prior art keywords
application computer
miner
application
monitoring video
computers
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
CN202010758293.5A
Other languages
Chinese (zh)
Other versions
CN112015547A (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.)
Zhongbiao Huian Information Technology Co Ltd
Original Assignee
Zhongbiao Huian Information Technology 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 Zhongbiao Huian Information Technology Co Ltd filed Critical Zhongbiao Huian Information Technology Co Ltd
Priority to CN202010758293.5A priority Critical patent/CN112015547B/en
Publication of CN112015547A publication Critical patent/CN112015547A/en
Application granted granted Critical
Publication of CN112015547B publication Critical patent/CN112015547B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations

Abstract

The invention provides a method and a system for allocating miner tasks for a block chain evidence storage platform, which are different from the prior art that a mode of randomly selecting an application computer as a miner is adopted, the application computer with the optimal operation performance is appointed to be used as the miner to carry out monitoring video uploading according to the respective operation states of all the application computers, different application computers can be updated to be used as the miner, and the same application computer is prevented from being continuously used as the miner, so that the video uploading speed and efficiency of the block chain evidence storage platform and the working stability of a platform system are improved to the maximum extent.

Description

Miner task allocation method and system for block chain evidence storage platform
Technical Field
The invention relates to the technical field of block chain video evidence storage, in particular to a miner task allocation method and system for a block chain evidence storage platform.
Background
At present, the blockchain technology has been gradually popularized in different fields, and one main application of the blockchain technology is to construct a video monitoring evidence storage platform based on a blockchain, which guarantees the authenticity, availability and security of a monitoring video by using the blockchain evidence storage technology. In actual operation, one application computer is selected as a miner to upload a monitoring video in turn in a random mode, which is easy to happen that the randomly selected application computer does not have the operation residual force for uploading at present, so that the monitoring video is uploaded too slowly or even is uploaded and stopped, and thus the working efficiency of the block link evidence storage platform is greatly reduced. Therefore, the block chain evidence storing platform in the prior art cannot select an application computer with optimal computing capability to be used for uploading videos, and the system stability of the block chain evidence storing platform is seriously limited.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a mineworker task allocation method and a system for a block chain evidence storage platform, wherein the mineworker task allocation method and the system for the block chain evidence storage platform are used for shooting a preset monitoring scene through an indication monitoring camera to obtain a corresponding panoramic monitoring video and packing the panoramic monitoring video to obtain a plurality of monitoring video data packets; therefore, the method and the system for allocating the tasks of the miners for the block chain evidence storage platform are different from the prior art in that a mode of randomly selecting the application computers as the miners is adopted, the application computers with the optimal operation performance are appointed to be used as the miners to carry out monitoring video uploading according to the respective operation states of all the application computers, different application computers can be updated to be used as the miners, the same application computer is prevented from being continuously used as the miners, and therefore the video uploading speed and efficiency of the block chain evidence storage platform and the working stability of the platform system are improved to the maximum extent.
The invention provides a miner task allocation method for a block chain evidence storage platform, which is characterized by comprising the following steps of:
step S1, instructing the monitoring camera to shoot a preset monitoring scene so as to obtain a corresponding panoramic monitoring video, and packaging the panoramic monitoring video so as to obtain a plurality of monitoring video data packets;
step S2, according to the respective initial operation states of all application computers in the block chaining evidence storage platform, one application computer is appointed to be used as a miner for uploading the monitoring video data packets, and the appointed application computer is identified;
step S3, according to the real-time operation states of all the application computers and the identification result, updating and designating another application computer as the miner, and identifying the other application computer;
further, in step S1, the monitoring camera is instructed to shoot a predetermined monitoring scene, so as to obtain a corresponding panoramic monitoring video, and the panoramic monitoring video is packaged, so as to obtain a plurality of monitoring video data packets specifically including,
step S101, instructing the monitoring camera to carry out periodic scanning shooting on the preset monitoring scene so as to record and obtain a corresponding 360-degree panoramic monitoring video;
step S102, according to the time axis of the periodic scanning shooting, the 360-degree panoramic monitoring video is divided at preset time intervals, and therefore a plurality of panoramic monitoring sub-videos are obtained;
step S103, performing fidelity compression and encryption on each panoramic monitoring sub-video to obtain a plurality of monitoring video data packets;
further, in the step S2, according to the respective initial operation states of all the application computers in the block chaining evidence storage platform, designating one of the application computers as a miner for uploading the plurality of monitoring video data packets, and specifically including identifying the designated application computer,
step S201, a miner distribution algorithm is constructed according to the topological communication relation among all application computers in the block chain evidence storing platform, the respective initial operation speed and the initial operation task load;
step S202, according to the miner allocation algorithm, a certain application computer is appointed to serve as the miner, and the certain application computer is used for uploading the monitoring video data packets;
step S203, identifying the appointed application computer as a virtual uploading server;
further, in the step S201, according to the topological communication relationship among all the application computers in the block chaining certification platform, the respective initial computing speed and the initial computing task load, constructing a miner allocation algorithm specifically includes,
firstly, calculating to obtain a communication reliability evaluation value according to the topological communication relationship among all application computers in the block link evidence storage platform and the initial operation speed and by combining the following formula (1):
Figure GDA0003166996660000031
in the above formula (1), the communication reliability evaluation value of the w-th application computer in the block chain verification platform is expressed, and w is 1, 2, 3.. M, M represents the total number of the application computers in the block chain verification platform, N represents the total number of the application computers associated with the w-th application computer in the block chain verification platform, a representsjRepresenting the total reliability of the components of the jth application computer associated with the w application computer in the blockchain proof platform, BjRepresenting the communication reliability of the jth application computer associated with the w application computer in the block chain evidence storage platform, CjRepresenting the initial operation speed, C, of the jth application computer associated with the w application computer in the block chaining evidence storage platform0Representing the theoretical average operation speed of the jth application computer associated with the w application computer in the block chain evidence storage platform,
Figure GDA0003166996660000032
a combination number formula is expressed, namely the combination number of S elements taken out of N different elements;
secondly, according to the following formula (2), a communication priority evaluation value is calculated and determined:
Figure GDA0003166996660000033
in the above formula (2), ε1Denotes a first predetermined weight, ε2Representing a second predetermined weight, PwCommunication priority evaluation value T of w application computer in block chain evidence storage platformjA preset cost parameter, alpha, representing a component of a jth application computer associated with the w application computer in the blockchain proof platformjError coefficients representing cost parameters of components of a jth application computer associated with a w-th application computer in a blockchain proof platform, ln represents a natural logarithm, e represents a natural constant, ηjRepresents the cost, Q, of the jth application computer associated with the w application computer in the blockchain evidence storage platformj1To representA required task load, Q, for said jth application computerjRepresenting the bearable task load, Q, of said jth application computerj0Representing an initial task load of the jth application computer;
and the number of the first and second groups,
in the step S202, designating an application computer as the miner includes storing all application computers in the block chain evidence storage platform
Figure GDA0003166996660000041
Sorting the communication priority evaluation values of the application computers smaller than 1 from large to small, and selecting the application computer with the largest communication priority evaluation value as a miner;
further, in the step S3, updating and designating another application computer as the miner according to the real-time operation states of all the application computers and the result of the identification, and specifically including identifying the another application computer,
step S301, optimizing and updating the miner allocation algorithm according to the real-time operation speed and the real-time operation task load of all the application computers;
step S302, according to the optimized and updated miner allocation algorithm, another application computer is used as a spare miner, whether the other application computer is the same as the application computer which is currently identified as the virtual uploading server or not is determined, if the other application computer is different from the application computer, the spare miner is designated as the application computer for uploading the monitoring video data packets and is identified as the virtual uploading server in a replacement mode, and if the other application computer is the same as the application computer, the miner allocation algorithm is continuously optimized and updated until the other application computer is different from the application computer.
The invention also provides a miner task allocation system for the block chain evidence storage platform, which is characterized in that:
the miner task allocation system for the block chain evidence storage platform comprises a monitoring video recording and packaging execution module, a miner initialization specifying module, a miner updating specifying module and an application computer identification module; wherein the content of the first and second substances,
the monitoring video recording and packaging execution module is used for indicating the monitoring camera to shoot a preset monitoring scene so as to obtain a corresponding panoramic monitoring video and packaging the panoramic monitoring video so as to obtain a plurality of monitoring video data packets;
the miner initialization specifying module is used for specifying one application computer as a miner to upload the monitoring video data packets according to the respective initial operation states of all application computers in the block link evidence storage platform;
the application computer identification module is used for identifying the application computer specified by the miner initialization specifying module;
the miner updating and specifying module is used for updating and specifying another application computer as the miner according to the real-time operation states of all the application computers and the identification result;
the application computer identification module is also used for identifying the application computer specified by the miner updating and specifying module;
further, the monitoring video recording and packaging execution module comprises a monitoring video recording execution submodule and a monitoring video packaging submodule; wherein the content of the first and second substances,
the monitoring video recording execution submodule is used for indicating the monitoring camera to carry out periodic scanning shooting on the preset monitoring scene so as to record and obtain a corresponding 360-degree panoramic monitoring video;
the monitoring video packing submodule is used for carrying out segmentation on the 360-degree panoramic monitoring video at preset time intervals according to the time axis of the periodic scanning shooting so as to obtain a plurality of panoramic monitoring sub-videos, and carrying out fidelity compression and encryption on each panoramic monitoring sub-video so as to obtain a plurality of monitoring video data packets;
further, the specific working process of the miner initialization specifying module comprises the steps of constructing a miner distribution algorithm according to the topological communication relationship among all application computers in the block link evidence storage platform, the respective initial operation speed and the initial operation task load, and specifying one application computer as the miner according to the miner distribution algorithm so as to upload the monitoring video data packets;
the application computer identification module is used for identifying the application computer specified by the miner initialization specifying module, and specifically comprises the step of identifying the specified application computer as a virtual uploading server;
further, the specific working process of the miner updating specification module includes performing optimization updating on the miner allocation algorithm according to the real-time operation speed and the real-time operation task load of all the application computers, determining whether the other application computer is the same as the application computer currently identified as the virtual uploading server according to the optimized and updated miner allocation algorithm, if the other application computer is different from the application computer currently identified as the virtual uploading server, designating the alternative miner as the application computer for uploading the monitoring video data packets, and if the other application computer is the same as the application computer currently identified as the virtual uploading server, continuing to optimize and update the miner allocation algorithm until the other application computer is different from the application computer;
the identification of the application computer specified by the miner update specifying module by the application computer identification module specifically includes identifying the alternative miner replacement as the virtual upload server.
Compared with the prior art, the method and the system for allocating the tasks of the miners for the block chain evidence storing platform shoot a preset monitoring scene through the indicating monitoring camera, so that a corresponding panoramic monitoring video is obtained, the panoramic monitoring video is packaged, a plurality of monitoring video data packets are obtained, one application computer is appointed to serve as the miners for uploading the plurality of monitoring video data packets according to the respective initial operation states of all application computers in the block chain evidence storing platform, the appointed application computer is identified, and another application computer is updated and appointed to serve as the miners according to the real-time operation states of all the application computers and the identification result; therefore, the method and the system for allocating the tasks of the miners for the block chain evidence storage platform are different from the prior art in that a mode of randomly selecting the application computers as the miners is adopted, the application computers with the optimal operation performance are appointed to be used as the miners to carry out monitoring video uploading according to the respective operation states of all the application computers, different application computers can be updated to be used as the miners, the same application computer is prevented from being continuously used as the miners, and therefore the video uploading speed and efficiency of the block chain evidence storage platform and the working stability of the platform system are improved to the maximum extent.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a miner task allocation method for a block chain evidence storage platform according to the present invention.
Fig. 2 is a schematic structural diagram of a miner task allocation system for a block chain evidence storage platform according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic flow chart of a method for allocating a miner task for a block chain evidence storage platform according to an embodiment of the present invention. The miner task allocation method for the block chain evidence storage platform comprises the following steps:
step S1, instructing the monitoring camera to shoot a preset monitoring scene so as to obtain a corresponding panoramic monitoring video, and packaging the panoramic monitoring video so as to obtain a plurality of monitoring video data packets;
step S2, according to the respective initial operation states of all application computers in the block chain evidence storage platform, one application computer is appointed to be used as a miner for uploading the monitoring video data packets, and the appointed application computer is identified;
and step S3, updating and designating another application computer as the miner according to the real-time operation states of all the application computers and the identification result, and identifying the other application computer.
The miner task allocation method for the block chain evidence storing platform takes the self computing capability of an application computer as a standard, takes the current miner with the optimal computing capability as the miner, is used for uploading a corresponding monitoring video data packet, and replaces the miner with other application computers when the next miner task is redistributed, so that the miner is guaranteed to be always born by the application computer with the better computing capability, the occurrence of uncertain conditions of uploading speed and stability caused by randomly selecting the application computer as the miner can be avoided, and the working efficiency of the block chain evidence storing platform is integrally improved.
Preferably, in step S1, the monitoring camera is instructed to shoot a predetermined monitoring scene, so as to obtain a corresponding panoramic monitoring video, and the panoramic monitoring video is packaged, so as to obtain a plurality of monitoring video data packets specifically including,
step S101, instructing the monitoring camera to periodically scan and shoot the preset monitoring scene, so as to record and obtain a corresponding 360-degree panoramic monitoring video;
step S102, according to the time axis of the periodic scanning shooting, the 360-degree panoramic monitoring video is divided at preset time intervals, and therefore a plurality of panoramic monitoring sub-videos are obtained;
and step S103, performing fidelity compression and encryption on each panoramic monitoring sub-video to obtain a plurality of monitoring video data packets.
The monitoring information of the preset monitoring scene can be comprehensively and completely recorded by periodically scanning and shooting the preset monitoring scene, and the 360-degree panoramic monitoring video is segmented, compressed and encrypted in a fidelity way, so that the uploading controllability and safety of the monitoring video data packet can be improved, and the probability of data distortion and loss in the uploading process can be reduced.
Preferably, in step S2, according to the respective initial operation states of all the application computers in the blockchain evidence storing platform, one of the application computers is designated as a miner for uploading the plurality of monitoring video data packets, and the specific steps of identifying the designated application computer include,
step S201, a miner distribution algorithm is constructed according to the topological communication relation among all application computers in the block chain evidence storing platform, the respective initial operation speed and the initial operation task load;
step S202, according to the miner allocation algorithm, a certain application computer is appointed to be used as the miner, and the certain application computer is used for uploading the monitoring video data packets;
step S203, identify the specified application computer as a virtual upload server.
The allocation algorithm for the miners can quickly and accurately allocate the miners 'tasks according to the self-operation performance of all application computers, so that the block chain evidence storage platform can be ensured to upload monitoring video data packets by the application computers with better operation performance, and the controllability and the predictability of allocation of the miners' tasks are ensured.
Preferably, in the step S201, according to the topological communication relationship among all the application computers in the blockchain evidence storing platform, the respective initial computing speed and the initial computing task load, constructing a miner allocation algorithm specifically includes,
firstly, according to the topological communication relationship among all application computers in the block chain evidence storage platform and the initial operation speed, and in combination with the following formula (1), calculating to obtain a communication reliability evaluation value:
Figure GDA0003166996660000091
in the above formula (1), the communication reliability evaluation value of the w-th application computer in the block chain verification platform is expressed, and w is 1, 2, 3.. M, M represents the total number of the application computers in the block chain verification platform, N represents the total number of the application computers associated with the w-th application computer in the block chain verification platform, a representsjRepresenting the total reliability of the components of the jth application computer associated with the w application computer in the blockchain proof platform, BjRepresenting the communication reliability of the jth application computer associated with the w application computer in the block chain evidence storage platform, CjRepresenting the initial operation speed, C, of the jth application computer associated with the w application computer in the block chaining evidence storage platform0Representing the theoretical average operation speed of the jth application computer associated with the w application computer in the block chain evidence storage platform,
Figure GDA0003166996660000092
a combination number formula is expressed, namely the combination number of S elements taken out of N different elements;
secondly, according to the following formula (2), a communication priority evaluation value is calculated and determined:
Figure GDA0003166996660000093
in the above formula (2), ε1Denotes a first predetermined weight, ε2Representing a second predetermined weight, PwCommunication priority evaluation value representing w application computer in block chain evidence storage platform,TjA preset cost parameter, alpha, representing a component of a jth application computer associated with the w application computer in the blockchain proof platformjError coefficients representing cost parameters of components of a jth application computer associated with a w-th application computer in a blockchain proof platform, ln represents a natural logarithm, e represents a natural constant, ηjRepresents the cost, Q, of the jth application computer associated with the w application computer in the blockchain evidence storage platformj1Representing the required task load, Q, for the jth application computerjRepresenting the bearable task load, Q, of the jth application computerj0Representing an initial task load of the jth application computer;
and the number of the first and second groups,
in step S202, one application computer is designated as the miner and included in all application computers in the block chain evidence storage platform
Figure GDA0003166996660000101
The communication priority evaluation values of the application computers smaller than 1 are sorted from large to small, and the application computer with the largest communication priority evaluation value is selected as a miner.
Firstly, calculating a communication reliability evaluation value according to the topological communication relationship among all application computers in the block chain evidence storage platform and the initial operation speed, wherein in a formula for calculating the communication reliability evaluation value: based on the topological communication relation, considering parameters of a jth application computer associated with a w-th application computer in the evidence storage platform, including reliability parameters (total number of application computers associated with the w-th application computer in the evidence storage platform, total reliability of components of the jth application computer associated with the w-th application computer in the evidence storage platform, communication reliability of the jth application computer associated with the w-th application computer in the evidence storage platform) and operation parameters (initial operation speed of the jth application computer associated with the w-th application computer in the evidence storage platform, theoretical average operation speed of the jth application computer associated with the w-th application computer in the evidence storage platform); compared with the single consideration of the reliability of the w-th application computer, the technical scheme comprehensively considers the total reliability and the communication reliability of the component of the j-th application computer associated with the w-th application computer in the evidence storage platform and the current computing capability (the ratio of the current initial computing speed to the theoretical average computing speed) of the j-th application computer, so that the computing result is more reliable
Secondly, calculating a communication priority evaluation value based on the communication reliability evaluation value and the initial operation task load, and comprehensively considering the cost parameter of an application computer and the current task load bearing capacity in a calculation formula of the communication priority evaluation value
Figure GDA0003166996660000111
And the communication reliability evaluation value is calculated, so that the communication priority evaluation comprehensively considers the cost, reliability and bearing capacity of the application computer, thereby the priority evaluation is more reliable, and then for all the application computers in the evidence storage platform,
Figure GDA0003166996660000112
and sequencing the communication priority evaluation values of the application computers smaller than 1 from large to small, selecting the application computer with the largest communication priority evaluation value as the miner, and realizing the selected computer which meets the requirement of a bearing task, has high reliability and is proper in cost.
Preferably, in the step S3, according to the real-time operation status of all the application computers and the result of the identification, updating and designating another application computer as the miner, and specifically including the identification of the other application computer,
step S301, optimizing and updating the miner allocation algorithm according to the real-time operation speed and the real-time operation task load of all the application computers;
step S302, according to the optimized and updated miner allocation algorithm, another application computer is used as a spare miner, whether the another application computer is the same as the application computer which is currently identified as the virtual uploading server or not is determined, if the another application computer is different from the application computer, the spare miner is designated as the application computer for uploading the monitoring video data packets and is identified as the virtual uploading server in a replacement mode, and if the another application computer is the same as the application computer, the miner allocation algorithm is continuously optimized and updated until the another application computer is different from the application computer.
By carrying out real-time optimization updating on the miner allocation algorithm, the allocation progress of the miner tasks can be adjusted in time according to the actual change condition of the self operational performance of all the application computers, and the miner tasks can be prevented from being repeatedly allocated to the same application computer for multiple times, so that the video uploading speed and efficiency of the block chain deposit evidence platform and the working stability of the platform system are improved to the maximum extent.
Fig. 2 is a schematic structural diagram of a miner task allocation system for a block chain evidence storage platform according to an embodiment of the present invention. The miner task allocation system for the block chain evidence storage platform comprises a monitoring video recording and packaging execution module, a miner initialization specifying module, a miner updating specifying module and an application computer identification module; wherein the content of the first and second substances,
the monitoring video recording and packaging execution module is used for indicating the monitoring camera to shoot a preset monitoring scene so as to obtain a corresponding panoramic monitoring video and packaging the panoramic monitoring video so as to obtain a plurality of monitoring video data packets;
the miner initialization specifying module is used for specifying one application computer as a miner to upload the monitoring video data packets according to the respective initial operation states of all application computers in the block chain evidence storage platform;
the application computer identification module is used for identifying the application computer specified by the miner initialization specifying module;
the miner updating and specifying module is used for updating and specifying another application computer as the miner according to the real-time operation states of all the application computers and the identification result;
the application computer identification module is also used for identifying the application computer specified by the miner update specification module.
The miner task allocation system for the block chain evidence storing platform takes the self computing capability of an application computer as a standard, takes the current miner with the optimal computing capability as the optimal computing capability, is used for uploading a corresponding monitoring video data packet, and replaces the miner with other application computers when the next miner task is redistributed, thereby ensuring that the miner is always born by the application computer with the better computing capability, and avoiding the occurrence of uncertain conditions of uploading speed and stability caused by randomly selecting the application computer as the miner, thereby integrally improving the working efficiency of the block chain evidence storing platform.
Preferably, the monitoring video recording and packaging execution module comprises a monitoring video recording execution submodule and a monitoring video packaging submodule; wherein the content of the first and second substances,
the monitoring video recording execution submodule is used for indicating the monitoring camera to carry out periodic scanning shooting on the preset monitoring scene so as to record and obtain a corresponding 360-degree panoramic monitoring video;
the monitoring video packing submodule is used for carrying out segmentation of a preset time interval on the 360-degree panoramic monitoring video according to the time axis of the periodic scanning shooting, so that a plurality of panoramic monitoring sub-videos are obtained, and fidelity compression and encryption are carried out on each panoramic monitoring sub-video, so that a plurality of monitoring video data packets are obtained.
The monitoring information of the preset monitoring scene can be comprehensively and completely recorded by periodically scanning and shooting the preset monitoring scene, and the 360-degree panoramic monitoring video is segmented, compressed and encrypted in a fidelity way, so that the uploading controllability and safety of the monitoring video data packet can be improved, and the probability of data distortion and loss in the uploading process can be reduced.
Preferably, the specific working process of the miner initialization specifying module includes constructing a miner allocation algorithm according to the topological communication relationship among all application computers in the block link evidence storage platform, the respective initial operation speed and the initial operation task load, and specifying one application computer as the miner according to the miner allocation algorithm so as to upload the monitoring video data packets;
the step of identifying the application computer specified by the miner initialization specifying module by the application computer identifying module specifically includes identifying the specified application computer as a virtual upload server.
The allocation algorithm for the miners can quickly and accurately allocate the miners 'tasks according to the self-operation performance of all application computers, so that the block chain evidence storage platform can be ensured to upload monitoring video data packets by the application computers with better operation performance, and the controllability and the predictability of allocation of the miners' tasks are ensured.
Preferably, the specific working process of the miner update specifying module includes performing optimization update on the miner allocation algorithm according to the real-time operation speed and the real-time operation task load of all the application computers, and according to the miner allocation algorithm after optimization update, taking another application computer as an alternative miner, and determining whether the other application computer is the same as the application computer currently identified as the virtual upload server, if the two are different, specifying the alternative miner as the application computer for uploading the plurality of monitoring video data packets, and if the two are the same, continuing to optimize and update the miner allocation algorithm until the two are different;
the identification of the application computer specified by the miner update specifying module by the application computer identification module specifically includes identifying the alternative miner replacement as the virtual upload server.
By carrying out real-time optimization updating on the miner allocation algorithm, the allocation progress of the miner tasks can be adjusted in time according to the actual change condition of the self operational performance of all the application computers, and the miner tasks can be prevented from being repeatedly allocated to the same application computer for multiple times, so that the video uploading speed and efficiency of the block chain deposit evidence platform and the working stability of the platform system are improved to the maximum extent.
As can be seen from the content of the above embodiment, the method and system for allocating a miner task for a blockchain evidence storing platform shoot a predetermined monitoring scene by indicating a monitoring camera, so as to obtain a corresponding panoramic monitoring video, and pack the panoramic monitoring video, thereby obtaining a plurality of monitoring video data packets, according to respective initial operation states of all application computers in the blockchain evidence storing platform, designating one application computer as a miner for uploading the plurality of monitoring video data packets, and identifying the designated application computer, and according to the real-time operation states of all application computers and the result of the identification, updating and designating another application computer as the miner, and identifying the other application computer; therefore, the method and the system for allocating the tasks of the miners for the block chain evidence storage platform are different from the prior art in that a mode of randomly selecting the application computers as the miners is adopted, the application computers with the optimal operation performance are appointed to be used as the miners to carry out monitoring video uploading according to the respective operation states of all the application computers, different application computers can be updated to be used as the miners, the same application computer is prevented from being continuously used as the miners, and therefore the video uploading speed and efficiency of the block chain evidence storage platform and the working stability of the platform system are improved to the maximum extent.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (5)

1. The method for allocating the miner tasks for the block chain evidence storage platform is characterized by comprising the following steps of:
step S1, instructing the monitoring camera to shoot a preset monitoring scene so as to obtain a corresponding panoramic monitoring video, and packaging the panoramic monitoring video so as to obtain a plurality of monitoring video data packets;
step S2, according to the respective initial operation states of all application computers in the block chaining evidence storage platform, one application computer is appointed to be used as a miner for uploading the monitoring video data packets, and the appointed application computer is identified;
step S3, according to the real-time operation states of all the application computers and the identification result, updating and designating another application computer as the miner, and identifying the other application computer;
wherein, in the step S2, according to the respective initial operation states of all the application computers in the block chaining evidence storage platform, designating one of the application computers as a miner for uploading the plurality of monitoring video data packets, and identifying the designated application computer specifically includes,
step S201, a miner distribution algorithm is constructed according to the topological communication relation among all application computers in the block chain evidence storing platform, the respective initial operation speed and the initial operation task load;
step S202, according to the miner allocation algorithm, a certain application computer is appointed to serve as the miner, and the certain application computer is used for uploading the monitoring video data packets;
step S203, identifying the appointed application computer as a virtual uploading server;
wherein, in the step S3, updating and designating another application computer as the miner according to the real-time operation states of all the application computers and the result of the identification, and specifically including identifying the another application computer,
step S301, optimizing and updating the miner allocation algorithm according to the real-time operation speed and the real-time operation task load of all the application computers;
step S302, according to the optimized and updated miner allocation algorithm, another application computer is used as a spare miner, whether the other application computer is the same as the application computer which is currently identified as the virtual uploading server or not is determined, if the other application computer is different from the application computer, the spare miner is designated as the application computer for uploading the monitoring video data packets and is identified as the virtual uploading server in a replacement mode, and if the other application computer is the same as the application computer, the miner allocation algorithm is continuously optimized and updated until the other application computer is different from the application computer.
2. The method of mineworker task allocation for a block chaining witness platform of claim 1, wherein:
in step S1, the monitoring camera is instructed to shoot a predetermined monitoring scene to obtain a corresponding panoramic monitoring video, and the panoramic monitoring video is packaged to obtain a plurality of monitoring video data packets specifically including,
step S101, instructing the monitoring camera to carry out periodic scanning shooting on the preset monitoring scene so as to record and obtain a corresponding 360-degree panoramic monitoring video;
step S102, according to the time axis of the periodic scanning shooting, the 360-degree panoramic monitoring video is divided at preset time intervals, and therefore a plurality of panoramic monitoring sub-videos are obtained;
and step S103, performing fidelity compression and encryption on each panoramic monitoring sub-video to obtain a plurality of monitoring video data packets.
3. The method of mineworker task allocation for a block chaining witness platform of claim 1, wherein:
in step S201, according to the topological communication relationship among all application computers in the block chain verification platform, the respective initial computing speed and the initial computing task load, constructing a miner allocation algorithm specifically includes,
firstly, calculating to obtain a communication reliability evaluation value according to the topological communication relationship among all application computers in the block chain evidence storage platform and the initial operation speed and by combining the following formula (1):
Figure FDA0003166996650000031
in the above formula (1), FwRepresents the communication reliability evaluation value of the w-th application computer in the block chain storage platform, and w is 1, 2, 3.. M, M represents the above mentioned application computer in the block chain storage platformThe total number of computers is used, N represents the total number of application computers related to the w-th application computer in the block chain storage platform, AjRepresenting the total reliability of the components of the jth application computer associated with the w application computer in the blockchain proof platform, BjRepresenting the communication reliability of the jth application computer associated with the w application computer in the block chain evidence storage platform, CjRepresenting the initial operation speed, C, of the jth application computer associated with the w application computer in the block chaining evidence storage platform0Representing the theoretical average operation speed of the jth application computer associated with the w application computer in the block chain evidence storage platform,
Figure FDA0003166996650000032
a combination number formula is expressed, namely the combination number of S elements taken out of N different elements;
secondly, according to the following formula (2), a communication priority evaluation value is calculated and determined:
Figure FDA0003166996650000033
in the above formula (2), ε1Denotes a first predetermined weight, ε2Representing a second predetermined weight, PwCommunication priority evaluation value T of w application computer in block chain evidence storage platformjA preset cost parameter, alpha, representing a component of a jth application computer associated with the w application computer in the blockchain proof platformjError coefficients representing cost parameters of components of a jth application computer associated with a w-th application computer in a blockchain proof platform, ln represents a natural logarithm, e represents a natural constant, ηjRepresents the cost, Q, of the jth application computer associated with the w application computer in the blockchain evidence storage platformj1Representing a required task load, Q, for said jth application computerjRepresenting the bearable task load, Q, of said jth application computerj0Representing an initial task load of the jth application computer;
and the number of the first and second groups,
in the step S202, designating an application computer as the miner includes storing all application computers in the block chain evidence storage platform
Figure FDA0003166996650000041
The communication priority evaluation values of the application computers smaller than 1 are sorted from large to small, and the application computer with the largest communication priority evaluation value is selected as a miner.
4. A miner's task allocation system for a block chain deposit evidence platform, its characterized in that:
the miner task allocation system for the block chain evidence storage platform comprises a monitoring video recording and packaging execution module, a miner initialization specifying module, a miner updating specifying module and an application computer identification module; wherein the content of the first and second substances,
the monitoring video recording and packaging execution module is used for indicating the monitoring camera to shoot a preset monitoring scene so as to obtain a corresponding panoramic monitoring video and packaging the panoramic monitoring video so as to obtain a plurality of monitoring video data packets;
the miner initialization specifying module is used for specifying one application computer as a miner to upload the monitoring video data packets according to the respective initial operation states of all application computers in the block link evidence storage platform;
the application computer identification module is used for identifying the application computer specified by the miner initialization specifying module;
the miner updating and specifying module is used for updating and specifying another application computer as the miner according to the real-time operation states of all the application computers and the identification result;
the application computer identification module is also used for identifying the application computer specified by the miner updating and specifying module;
the specific working process of the miner initialization specifying module comprises the steps of constructing a miner distribution algorithm according to the topological communication relation among all application computers in the block link evidence storage platform, the respective initial operation speed and the initial operation task load, and specifying one application computer as the miner according to the miner distribution algorithm so as to upload the monitoring video data packets;
the application computer identification module is used for identifying the application computer specified by the miner initialization specifying module, and specifically comprises the step of identifying the specified application computer as a virtual uploading server; the specific working process of the miner updating and specifying module comprises the steps of performing optimization updating on the miner allocation algorithm according to the real-time operation speed and the real-time operation task load of all the application computers, taking another application computer as an alternative miner according to the optimized and updated miner allocation algorithm, determining whether the other application computer is the same as the application computer which is currently identified as the virtual uploading server or not, if the other application computer is different from the application computer, specifying the alternative miner as the application computer for uploading the monitoring video data packets, and if the other application computer is the same as the application computer, continuing to optimize and update the miner allocation algorithm until the other application computer is different from the application computer;
the identification of the application computer specified by the miner update specifying module by the application computer identification module specifically includes identifying the alternative miner replacement as the virtual upload server.
5. The mineworker task allocation system for a blockchain evidence storage platform of claim 4, wherein:
the monitoring video recording and packaging execution module comprises a monitoring video recording execution submodule and a monitoring video packaging submodule; wherein the content of the first and second substances,
the monitoring video recording execution submodule is used for indicating the monitoring camera to carry out periodic scanning shooting on the preset monitoring scene so as to record and obtain a corresponding 360-degree panoramic monitoring video; the monitoring video packing submodule is used for carrying out segmentation of the 360-degree panoramic monitoring video at preset time intervals according to the time axis of the periodic scanning shooting, so that a plurality of panoramic monitoring sub-videos are obtained, and each panoramic monitoring sub-video is subjected to fidelity compression and encryption, so that a plurality of monitoring video data packets are obtained.
CN202010758293.5A 2020-07-31 2020-07-31 Miner task allocation method and system for block chain evidence storage platform Active CN112015547B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010758293.5A CN112015547B (en) 2020-07-31 2020-07-31 Miner task allocation method and system for block chain evidence storage platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010758293.5A CN112015547B (en) 2020-07-31 2020-07-31 Miner task allocation method and system for block chain evidence storage platform

Publications (2)

Publication Number Publication Date
CN112015547A CN112015547A (en) 2020-12-01
CN112015547B true CN112015547B (en) 2021-10-08

Family

ID=73499003

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010758293.5A Active CN112015547B (en) 2020-07-31 2020-07-31 Miner task allocation method and system for block chain evidence storage platform

Country Status (1)

Country Link
CN (1) CN112015547B (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106203178B (en) * 2016-08-26 2018-11-20 杨鹏 A kind of the write-in authority distributing method and system of block chain
TWI661312B (en) * 2018-06-29 2019-06-01 國立交通大學 Method and management system of distributed computation
CN109218424B (en) * 2018-09-14 2020-11-03 四川海纳仁东科技有限公司 Task allocation method based on block chain link point calculation force
CN109617992B (en) * 2018-12-29 2021-08-03 杭州趣链科技有限公司 Block chain-based dynamic election method for edge computing nodes

Also Published As

Publication number Publication date
CN112015547A (en) 2020-12-01

Similar Documents

Publication Publication Date Title
US8375190B2 (en) Dynamtic storage hierarachy management
US11329928B2 (en) Dynamic allocation of network resources using external inputs
US11886919B2 (en) Directing queries to nodes of a cluster of a container orchestration platform distributed across a host system and a hardware accelerator of the host system
US11366714B2 (en) Behavior-driven die management on solid-state drives
US11126359B2 (en) Partitioning graph data for large scale graph processing
Padmanabhan et al. Gemel: Model Merging for {Memory-Efficient},{Real-Time} Video Analytics at the Edge
CN112015547B (en) Miner task allocation method and system for block chain evidence storage platform
CN112925611A (en) Distributed container scheduling method and system based on shared GPU
CN115834257B (en) Cloud power data safety protection method and protection system
CN116074323B (en) Edge computing node selection method, device, computer equipment and medium
CN115665157B (en) Balanced scheduling method and system based on application resource types
CN108696389B (en) Network flow and protocol message analysis platform based on mass data
CN107967172A (en) A kind of Spark tasks dynamic migration method and system towards isomery storage
CN111949438B (en) Multimedia data backup method, device, server and medium
CN111953938B (en) Monitoring video alternate uploading method and system
CN114500551B (en) Edge computing transmission load balancing method, device, equipment and storage medium
CN116436666B (en) Security situation awareness method for distributed heterogeneous network
CN102932410B (en) Operation overall situation mission bit stream transmission method in parallel computation
CN114185896A (en) Data processing method and device, electronic equipment and storage medium
EP3923208A1 (en) Automated hardware resource optimization
KR102131446B1 (en) System, apparatus for operating analysis engine and method of analysis engine update thereof
CN114826951A (en) Service automatic degradation method, device, computer equipment and storage medium
CN115065491A (en) Function and information security policy comprehensive selection method, electronic equipment and storage medium
Bhuiyan Probabilistic Approach to Avoid Uncorrectable Bit Errors in Storage Systems
CN115878316A (en) Calculation method for remotely monitoring traffic fusion load

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