CN113918517A - Multi-type file centralized management method, device, equipment and storage medium - Google Patents

Multi-type file centralized management method, device, equipment and storage medium Download PDF

Info

Publication number
CN113918517A
CN113918517A CN202111210722.6A CN202111210722A CN113918517A CN 113918517 A CN113918517 A CN 113918517A CN 202111210722 A CN202111210722 A CN 202111210722A CN 113918517 A CN113918517 A CN 113918517A
Authority
CN
China
Prior art keywords
file
type file
data
temporary storage
constructed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111210722.6A
Other languages
Chinese (zh)
Inventor
李发明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen China Blog Imformation Technology Co ltd
Original Assignee
Shenzhen China Blog Imformation 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 Shenzhen China Blog Imformation Technology Co ltd filed Critical Shenzhen China Blog Imformation Technology Co ltd
Priority to CN202111210722.6A priority Critical patent/CN113918517A/en
Publication of CN113918517A publication Critical patent/CN113918517A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices
    • G06F16/137Hash-based
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/162Delete operations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/172Caching, prefetching or hoarding of files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/182Distributed file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • 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/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45587Isolation or security of virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to a data processing technology, and discloses a multi-type file centralized management method, which comprises the following steps: extracting a multi-type file set of each target platform by using a multi-port data transmission channel; constructing a data temporary storage area in the metadata cache, and redirecting data streams of the multi-type file sets to the data temporary storage area; constructing a mirror image container set, and carrying out environment configuration on each container in the mirror image container set according to preset multi-type file processing environment parameters; and according to a preset file management strategy, performing asynchronous thread management on the multi-type file set by using the mirror image container set by using an asynchronous thread pool model in the data temporary storage area to obtain a management result of the multi-type file set. The invention also provides a multi-type file centralized management device, electronic equipment and a storage medium. The invention can improve the efficiency of managing different types of files.

Description

Multi-type file centralized management method, device, equipment and storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method and an apparatus for centralized management of multiple types of files, an electronic device, and a computer-readable storage medium.
Background
With the development of the data era, various industries pay more attention to the control of data, for example, government agencies, hospitals or other large-scale enterprises often need to integrate a large amount of data of small platforms and small departments under the flags uniformly, and the coordination and management efficiency of each business department is increased by realizing one-stop management of the data.
Except that the file types among all departments are preset, the data can be conveniently controlled, and the file types of the large departments or the large enterprises cannot be unified, so that the file types of the large enterprises and the large departments are more independent and complicated, and the overall data control efficiency of the upper-layer platforms such as a talent one-stop service system of a government platform is always in a lower level when the data is controlled in a one-stop mode.
Disclosure of Invention
The invention provides a method and a device for centralized management of multiple types of files and a computer readable storage medium, and mainly aims to solve the problem of low data management and control efficiency when different types of files are managed in one-stop mode.
In order to achieve the above object, the present invention provides a method for centralized management of multiple types of files, comprising:
extracting a multi-type file set of each target platform by using a pre-constructed multi-port data transmission channel;
constructing a data temporary storage area in a preset metadata cache, and performing data stream redirection on the multi-type file set to the data temporary storage area;
constructing a mirror image container set, and carrying out environment configuration on each container in the mirror image container set according to preset multi-type file processing environment parameters;
and according to a preset file management strategy, utilizing a preset asynchronous thread pool model in the data temporary storage area to enable the mirror image container set to carry out asynchronous thread management on the multi-type file set, so as to obtain a management result of the multi-type file set.
Optionally, the performing data stream redirection on the multi-type file set to the data temporary storage area includes:
when each target file is received, extracting a file stream of the multi-type file set according to preset buried points;
modifying the destination field parameters in each file stream into the storage address by using a redirection function in a standard input/output header file packet according to the storage address of the data temporary storage area to obtain each redirected file stream;
and transferring each target file in the multi-type file set to the data temporary storage area according to each redirected file stream and a pre-constructed cache strategy.
Optionally, the transferring, according to the redirected file streams and the pre-constructed caching policy, the target files in the multi-type file set to the data temporary storage area includes:
judging whether the space size of the storable resources in the data temporary storage area is smaller than a preset threshold value or not;
when the space of the storable resource is larger than the preset threshold, judging that the size of the space of the storable resource is sufficient;
when the space of the storable resource is equal to or smaller than the preset threshold value, judging that the size of the space of the storable resource is insufficient, and performing space release on the data temporary storage area by using a longest-used algorithm;
judging whether each target file in the multi-type file set is extracted for the first time or not;
if each target file in the multi-type file set is extracted for the first time, constructing an index directory in the data temporary storage area, and storing each target file into the index directory;
and if each target file in the multi-type file set is not extracted for the first time, inquiring an index directory corresponding to each target file, and updating each file under the index directory by using each target file.
Optionally, the extracting, by using a pre-constructed multi-port data transmission channel, a multi-type file set of each target platform includes:
extracting encrypted files in each target platform by using a pre-constructed multi-port data transmission channel;
and decrypting the encrypted file by using the pre-acquired file public key, and obtaining each target file of each target platform after the decryption process is passed.
Optionally, before extracting the encrypted file in each target platform by using the pre-constructed multi-port data transmission channel, the method further includes:
acquiring signal identifications of each target platform and the one-stop system by using a pre-constructed WiFi chunk, and connecting each target platform to the one-stop system according to each signal identification to obtain a multi-port data transmission channel;
generating corresponding public keys and secret keys by using a pre-constructed authentication center, and verifying whether the digital certificates of each target platform and the one-stop system are qualified or not;
and after each digital certificate is qualified, sending the public key to the one-stop system, and sending the secret key to each target platform.
Optionally, the constructing a mirror image container set, and performing environment configuration on each container in the mirror image container set according to preset multi-type file processing environment parameters includes:
executing the pre-constructed wharf script file to obtain a mirror image container frame;
acquiring an operating system dependency package of the one-stop system, and configuring the mirror image container framework by using the operating system dependency package to obtain a basic container;
and configuring pre-constructed multi-type file processing environment parameters for a plurality of basic containers to obtain a mirror image container set of various configuration environments.
Optionally, after obtaining the management result of the multi-type file set, the method further includes:
encoding the management result by utilizing a pre-constructed encoder to obtain encoded data;
performing matrix operation by using the pre-constructed erasure code and the encoded data to obtain encrypted data;
and distributively storing the encrypted data into a pre-constructed storage layer by utilizing a consistent hash algorithm.
In order to solve the above problem, the present invention further provides a multi-type file centralized management apparatus, including:
the data extraction module is used for extracting multi-type file sets of each target platform by utilizing a pre-constructed multi-port data transmission channel;
the data temporary storage module is used for constructing a data temporary storage area in a preset metadata cache and redirecting the data stream of the multi-type file set to the data temporary storage area;
the system comprises a container configuration module, a storage module and a processing module, wherein the container configuration module is used for constructing a mirror image container set and carrying out environment configuration on each container in the mirror image container set according to preset multi-type file processing environment parameters;
and the asynchronous thread management module is used for performing asynchronous thread management on the multi-type file set by the mirror image container set by utilizing a preset asynchronous thread pool model in the data temporary storage area according to a preset file management strategy to obtain a management result of the multi-type file set.
In order to solve the above problem, the present invention also provides an electronic device, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the multi-type fileset management method described above.
In order to solve the above problem, the present invention further provides a computer-readable storage medium, in which at least one computer program is stored, the at least one computer program being executed by a processor in an electronic device to implement the multi-type file centralized management method described above.
The embodiment of the invention temporarily stores the extracted multi-type file set through the data temporary storage area in the metadata cache, wherein the data temporary storage area is a cache space with a skip list structure, so that the quick response of data can be realized, the length of a data processing path is shortened, and the data is prevented from being re-extracted and summarized and sorted after being stored in a disk; in addition, according to the scheme, a container set capable of processing different types of files is constructed and configured, and then the multithreading of the asynchronous thread pool model enables the scheme to synchronously manage the files of the multiple types through the containers of the different types according to a preset file management strategy, so that the overall data management and control efficiency is improved. Therefore, the multi-type file centralized management method, the multi-type file centralized management device, the electronic equipment and the computer readable storage medium can solve the problem of low data management and control efficiency when different types of files are managed in one-stop mode.
Drawings
Fig. 1 is a schematic structural diagram of a one-stop system according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a multi-type file centralized management method according to an embodiment of the present invention;
FIG. 3 is a detailed flowchart illustrating a step in a multi-type file centralized management method according to an embodiment of the present invention;
FIG. 4 is a functional block diagram of a multi-type file centralized management apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device implementing the multi-type file centralized management method according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The embodiment of the application provides a multi-type file centralized management method. The executing body of the multi-type file centralized management method includes, but is not limited to, at least one of electronic devices such as a server and a terminal, which can be configured to execute the method provided by the embodiments of the present application. In other words, the multi-type file centralized management method may be performed by software or hardware installed in the terminal device or the server device, and the software may be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, and the like. The server may be an independent server, or may be a cloud server that provides basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, a middleware service, a domain name service, a security service, a Content Delivery Network (CDN), a big data and artificial intelligence platform, and the like.
In order to solve the problem of low data management and control efficiency when different types of files are managed in one-stop mode, a metadata cache-based one-stop system capable of being paralleled is constructed to perform multi-type file centralized management. Referring to fig. 1, the one-stop system 1 includes a multi-port data transmission channel 3, a data buffer 4, and is connected to a lower platform cluster 2 and an authentication center 5.
In the embodiment of the present invention, a government one-stop talent system is taken as an example, and the lower platform cluster 2 may include a unified identity authentication platform, a government affairs service network, a short message platform, a social security platform, and other platforms. And the data transmission process of the multi-port data transmission channel 3 depends on the authentication center 5 to complete data encryption transmission. Before data transmission, the authentication center 5 is required to perform digital certificate authentication on the one-stop system 1 and the lower platform cluster 2, after the authentication is passed, a public key is generated to the one-stop system 1, a private key is generated to the lower platform cluster 2, the lower platform cluster 2 encrypts files locally, and finally the files are transmitted to the data temporary storage area 4 through the multi-port data transmission channel 3. The data temporary storage area 4 comprises an asynchronous thread pool model 6 and a container set 7, and the asynchronous thread pool model 6 can be intervened through a preset file management strategy to manage various types of files, so that a management result is finally obtained.
Fig. 2 is a schematic flow chart of a multi-type file centralized management method according to an embodiment of the present invention. In this embodiment, the method for centrally managing multiple types of files includes:
and S1, extracting multi-type file sets of each target platform by using the pre-constructed multi-port data transmission channel.
In the embodiment of the invention, the multi-port data transmission channel is a bi-directional transmission multi-port transmission line and is used for data extraction or release. Taking a government one-stop talent system as an example, the target platform may be a unified identity authentication platform, a government affairs service network, a short message platform, a social security platform and other subordinate platforms, and is used to provide the bottom data of talents.
In detail, in the embodiment of the present invention, the extracting a multi-type file set of each target platform by using a pre-constructed multi-port data transmission channel includes:
extracting encrypted files in each target platform by using a pre-constructed multi-port data transmission channel;
and decrypting the encrypted file by using the pre-acquired file public key, and obtaining each target file of each target platform after the decryption process is passed.
According to the embodiment of the invention, the data in each target platform can be extracted according to the preset keywords to obtain the encrypted files, and the encrypted files need to be decrypted by using the public key to obtain each target file.
Specifically, in the embodiment of the present invention, before extracting the encrypted file in each target platform by using the pre-constructed multi-port data transmission channel, the method further includes:
acquiring signal identifications of each target platform and the one-stop system by using a pre-constructed WiFi chunk, and connecting each target platform to the one-stop system according to each signal identification to obtain a multi-port data transmission channel;
generating corresponding public keys and secret keys by using a pre-constructed authentication center, and verifying whether the digital certificates of each target platform and the one-stop system are qualified or not;
and after each digital certificate is qualified, sending the public key to the one-stop system, and sending the secret key to each target platform.
In the embodiment of the invention, the signal identification of each target platform (such as a unified identity authentication platform, a government affair service network, a short message platform, a social security platform and the like) is obtained by utilizing the pre-constructed chunk capable of capturing the WiFi signal. And independently constructing a wireless information channel through each signal identifier, and configuring data such as bandwidth, frequency spectrum and the like of the wireless information channel through a preset configuration file to obtain the multi-port data transmission channel. The signal identifier includes information that can authenticate identity, such as a user name and an IP address.
In the embodiment of the present invention, the digital certificates of each target platform and the one-stop system are queried through the signal identifier, and the digital certificates are directed to a Certificate Authority (CA) of a third party, where the CA is an authoritative, reliable, and fair third party Authority and is specially responsible for issuing and managing the digital certificates required by all entities participating in the online transaction.
When the CA passes the authentication of each target platform and the one-stop system, a secret key and a public key can be randomly generated through a secret key generator, and the secret key is respectively sent to each target platform and the public key is sent to the one-stop system. Therefore, the file can be ensured to be safely transmitted in the multi-port data transmission channel.
In addition, in another embodiment of the present invention, the multi-port data transmission channel may also be constructed by a wired connection.
S2, constructing a data temporary storage area in a preset metadata cache, and redirecting data streams of the multi-type file sets to the data temporary storage area.
The metadata cache is a data space with a Skip List structure, a data temporary storage area is arranged in the metadata cache, the response speed of data can be accelerated, and the data are prevented from being directly stored in a pre-constructed storage layer, wherein the Skip List structure (Skip List) is a randomized data structure, and the efficiency of the Skip List structure is comparable to that of a binary search tree based on parallel linked lists, so that the operation in the data temporary storage area is performed in logarithmic randomization time, and the difficulty of searching a specific value by an ordered linked List can be well solved.
As is well known, there exists a file stream in the target file transmission process, the file stream includes a standard input (stdin), a standard output (stdout) and a standard error (stderr), wherein the destination of stdout in the data extraction process is usually a display.
In detail, as shown in fig. 3, in the embodiment of the present invention, the redirecting the data stream of the multi-type file set to the data temporary storage area includes:
s21, extracting the file flow of the multi-type file set according to preset embedding points when each target file is received;
s22, modifying the destination field parameters in each file stream into the storage address by using a redirection function in a standard input/output header file packet according to the storage address of the data temporary storage area to obtain each redirected file stream;
and S23, transferring each target file in the multi-type file set to the data temporary storage area according to each redirected file stream and a pre-constructed cache strategy.
The method and the device judge whether a file enters or not by setting a buried point, and start redirection operation by a preset cooperative rule when the file enters, and further modify stdout into a storage address according to the storage address of a data temporary storage area by a redirection function (freeopen ()) in a standard input/output header file packet (< stdio.h >) according to the storage address of the data temporary storage area to obtain a redirection file stream, and then store each target file into the data temporary storage area according to the redirection file stream and a pre-constructed cache strategy.
The cache strategy is a strategy which is made according to big data processing experience and ensures that the storage space is in a better state by reasonably storing data and releasing the memory.
In detail, in the embodiment of the present invention, the transferring, by the each redirection file stream and the pre-constructed caching policy, each target file in the multi-type file set to the data temporary storage area includes:
judging whether the space size of the storable resources in the data temporary storage area is smaller than a preset threshold value or not;
when the space of the storable resource is larger than the preset threshold, judging that the size of the space of the storable resource is sufficient;
when the space of the storable resource is equal to or smaller than the preset threshold value, judging that the size of the space of the storable resource is insufficient, and performing space release on the data temporary storage area by using a longest-used algorithm;
judging whether each target file in the multi-type file set is extracted for the first time or not;
if each target file in the multi-type file set is extracted for the first time, constructing an index directory in the data temporary storage area, and storing each target file into the index directory;
and if each target file in the multi-type file set is not extracted for the first time, inquiring an index directory corresponding to each target file, and updating each file under the index directory by using each target file.
In the embodiment of the present invention, the resource occupation condition in the data temporary storage region is first determined, and when the size of the space of the storable resource is less than 25% of the preset size, the data temporary storage region needs to be released.
S3, constructing a mirror image container set, and carrying out environment configuration on each container in the mirror image container set according to preset multi-type file processing environment parameters.
In the embodiment of the invention, the mirror image container set is constructed by a Docker tool.
In detail, in the implementation of the present invention, the constructing a mirror image container set, and performing environment configuration on each container in the mirror image container set according to preset multi-type file processing environment parameters includes:
executing the pre-constructed wharf script file to obtain a mirror image container frame;
acquiring an operating system dependency package of the one-stop system, and configuring the mirror image container framework by using the operating system dependency package to obtain a basic container;
and configuring pre-constructed multi-type file processing environment parameters for a plurality of basic containers to obtain a mirror image container set of various configuration environments.
In the embodiment of the present invention, the dock script file (dockerfile) is a file command parameter script program used for constructing a dokcer image. The embodiment of the invention executes the dock script file, constructs the dock script file into a mirror image through a docker build function, runs the mirror image through a docker run function, and releases the mirror image through a docker push function to obtain the mirror image container frame. And importing the dependency package of the operating system of the one-stop system into a mirror image container framework to obtain a basic container with an environment simulating the work of the one-stop system.
Further, because the development environment, the test environment and the production environment of each target file in the file set are different, code deterioration caused by different environments is prevented.
And S4, according to a preset file management strategy, utilizing a preset asynchronous thread pool model in the data temporary storage area to enable the mirror image container set to perform asynchronous thread management on the multi-type file set, and obtaining a management result of the multi-type file set.
The file management strategy is made according to business requirements and adopts different operation means for different functions and types of data.
Furthermore, the asynchronous thread pool model is a model capable of realizing multi-thread splitting, management and operation of a task process.
Specifically, in the embodiment of the present invention, the four-core eight-thread CPU (or other CPUs) may be used to perform thread splitting processing on each container, so as to greatly increase the overall data processing efficiency, obtain and summarize the processing results of each thread, obtain the management results, and store the management results.
Further, in another embodiment of the present invention, after obtaining the management result of the multi-type file set, the method further includes:
encoding the management result by utilizing a pre-constructed encoder to obtain encoded data;
performing matrix operation by using the pre-constructed erasure code and the encoded data to obtain encrypted data;
and distributively storing the encrypted data into a pre-constructed storage layer by utilizing a consistent hash algorithm.
After the management results of the multi-type file sets are obtained, the management results can be firstly coded by using a distributed algorithm, then encrypted by using a preset Erasure Code (EC), split to obtain a plurality of data blocks, and finally, the data blocks are stored in each disk of the storage layer in a distributed manner by using a consistent hash algorithm, so that the safety of the management results is ensured. The erasure code is a data protection method, which can divide data into segments, expand redundant data blocks and encode the redundant data blocks; the consistent hash algorithm maps binary values with any length into binary values with shorter fixed lengths, so that the lengths of all data blocks are consistent, and distributed storage is facilitated.
Fig. 4 is a functional block diagram of a multi-type file centralized management apparatus according to an embodiment of the present invention.
The multi-type file centralized management apparatus 100 of the present invention may be installed in an electronic device. According to the implemented functions, the multi-type file centralized management apparatus 100 may include a data extraction module 101, a data temporary storage module 102, a container configuration module 103, and an asynchronous thread management module 104. The module of the present invention, which may also be referred to as a unit, refers to a series of computer program segments that can be executed by a processor of an electronic device and that can perform a fixed function, and that are stored in a memory of the electronic device.
In the present embodiment, the functions regarding the respective modules/units are as follows:
the data extraction module 101 is configured to extract a multi-type file set of each target platform by using a pre-constructed multi-port data transmission channel;
the data temporary storage module 102 is configured to construct a data temporary storage area in a preset metadata cache, and perform data stream redirection on the multi-type file set to the data temporary storage area;
the container configuration module 103 is configured to construct a mirror image container set, and perform environment configuration on each container in the mirror image container set according to preset multi-type file processing environment parameters;
the asynchronous thread management module 104 is configured to perform asynchronous thread management on the multi-type file set by using the preset asynchronous thread pool model in the data temporary storage area according to a preset file management policy, so as to obtain a management result of the multi-type file set.
In detail, when the modules in the multi-type file centralized management apparatus 100 according to the embodiment of the present invention are used, the same technical means as the multi-type file centralized management method described in fig. 1 to fig. 3 are adopted, and the same technical effect can be produced, which is not described herein again.
Fig. 5 is a schematic structural diagram of an electronic device implementing a multi-type file centralized management method according to an embodiment of the present invention.
The electronic device 1 may comprise a processor 10, a memory 11, a communication bus 12 and a communication interface 13, and may further comprise a computer program, such as a multi-type file aggregation management program, stored in the memory 11 and executable on the processor 10.
In some embodiments, the processor 10 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same function or different functions, and includes one or more Central Processing Units (CPUs), a microprocessor, a digital Processing chip, a graphics processor, a combination of various control chips, and the like. The processor 10 is a Control Unit (Control Unit) of the electronic device, connects various components of the electronic device by using various interfaces and lines, and executes various functions and processes data of the electronic device by running or executing programs or modules stored in the memory 11 (for example, executing a multi-type file centralized management program, etc.), and calling data stored in the memory 11.
The memory 11 includes at least one type of readable storage medium including flash memory, removable hard disks, multimedia cards, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disks, optical disks, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device, for example a removable hard disk of the electronic device. The memory 11 may also be an external storage device of the electronic device in other embodiments, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the electronic device. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device. The memory 11 may be used not only to store application software installed in the electronic device and various types of data, such as codes of a multi-type file management program, but also to temporarily store data that has been output or is to be output.
The communication bus 12 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is arranged to enable connection communication between the memory 11 and at least one processor 10 or the like.
The communication interface 13 is used for communication between the electronic device and other devices, and includes a network interface and a user interface. Optionally, the network interface may include a wired interface and/or a wireless interface (e.g., WI-FI interface, bluetooth interface, etc.), which are typically used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a Display (Display), an input unit such as a Keyboard (Keyboard), and optionally a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable, among other things, for displaying information processed in the electronic device and for displaying a visualized user interface.
Fig. 5 only shows an electronic device with components, and it will be understood by a person skilled in the art that the structure shown in fig. 5 does not constitute a limitation of the electronic device 1, and may comprise fewer or more components than shown, or a combination of certain components, or a different arrangement of components.
For example, although not shown, the electronic device may further include a power supply (such as a battery) for supplying power to each component, and preferably, the power supply may be logically connected to the at least one processor 10 through a power management device, so that functions of charge management, discharge management, power consumption management and the like are realized through the power management device. The power supply may also include any component of one or more dc or ac power sources, recharging devices, power failure detection circuitry, power converters or inverters, power status indicators, and the like. The electronic device may further include various sensors, a bluetooth module, a Wi-Fi module, and the like, which are not described herein again.
It is to be understood that the described embodiments are for purposes of illustration only and that the scope of the appended claims is not limited to such structures.
The multi-type file set management program stored in the memory 11 of the electronic device 1 is a combination of a plurality of instructions, and when running in the processor 10, can realize:
extracting a multi-type file set of each target platform by using a pre-constructed multi-port data transmission channel;
constructing a data temporary storage area in a preset metadata cache, and performing data stream redirection on the multi-type file set to the data temporary storage area;
constructing a mirror image container set, and carrying out environment configuration on each container in the mirror image container set according to preset multi-type file processing environment parameters;
and according to a preset file management strategy, utilizing a preset asynchronous thread pool model in the data temporary storage area to enable the mirror image container set to carry out asynchronous thread management on the multi-type file set, so as to obtain a management result of the multi-type file set.
Specifically, the specific implementation method of the instruction by the processor 10 may refer to the description of the relevant steps in the embodiment corresponding to the drawings, which is not described herein again.
Further, the integrated modules/units of the electronic device 1, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. The computer readable storage medium may be volatile or non-volatile. For example, the computer-readable medium may include: any entity or device capable of carrying said computer program code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM).
The present invention also provides a computer-readable storage medium, storing a computer program which, when executed by a processor of an electronic device, may implement:
extracting a multi-type file set of each target platform by using a pre-constructed multi-port data transmission channel;
constructing a data temporary storage area in a preset metadata cache, and performing data stream redirection on the multi-type file set to the data temporary storage area;
constructing a mirror image container set, and carrying out environment configuration on each container in the mirror image container set according to preset multi-type file processing environment parameters;
and according to a preset file management strategy, utilizing a preset asynchronous thread pool model in the data temporary storage area to enable the mirror image container set to carry out asynchronous thread management on the multi-type file set, so as to obtain a management result of the multi-type file set.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method can be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof.
The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
The embodiment of the application can acquire and process related data based on an artificial intelligence technology. Among them, Artificial Intelligence (AI) is a theory, method, technique and application system that simulates, extends and expands human Intelligence using a digital computer or a machine controlled by a digital computer, senses the environment, acquires knowledge and uses the knowledge to obtain the best result.
Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the system claims may also be implemented by one unit or means in software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (10)

1. A multi-type file centralized management method is applied to a pre-constructed one-stop system and comprises the following steps:
extracting a multi-type file set of each target platform by using a pre-constructed multi-port data transmission channel;
constructing a data temporary storage area in a preset metadata cache, and performing data stream redirection on the multi-type file set to the data temporary storage area;
constructing a mirror image container set, and carrying out environment configuration on each container in the mirror image container set according to preset multi-type file processing environment parameters;
and according to a preset file management strategy, utilizing a preset asynchronous thread pool model in the data temporary storage area to enable the mirror image container set to carry out asynchronous thread management on the multi-type file set, so as to obtain a management result of the multi-type file set.
2. The method of claim 1, wherein said data stream redirecting said multi-type file set into said data staging area, comprises:
when each target file is received, extracting a file stream of the multi-type file set according to preset buried points;
modifying the destination field parameters in each file stream into the storage address by using a redirection function in a standard input/output header file packet according to the storage address of the data temporary storage area to obtain each redirected file stream;
and transferring each target file in the multi-type file set to the data temporary storage area according to each redirected file stream and a pre-constructed cache strategy.
3. The method for centralized management of multiple types of files according to claim 2, wherein said transferring each target file in said multiple types of file sets to said data staging area according to said each redirected file stream and a pre-constructed caching policy comprises:
judging whether the space size of the storable resources in the data temporary storage area is smaller than a preset threshold value or not;
when the space of the storable resource is larger than the preset threshold, judging that the size of the space of the storable resource is sufficient;
when the space of the storable resource is equal to or smaller than the preset threshold value, judging that the size of the space of the storable resource is insufficient, and performing space release on the data temporary storage area by using a longest-used algorithm;
judging whether each target file in the multi-type file set is extracted for the first time or not;
if each target file in the multi-type file set is extracted for the first time, constructing an index directory in the data temporary storage area, and storing each target file into the index directory;
and if each target file in the multi-type file set is not extracted for the first time, inquiring an index directory corresponding to each target file, and updating each file under the index directory by using each target file.
4. The method for multi-type file centralized management according to claim 1, wherein said extracting multi-type file sets of each target platform using a pre-constructed multi-port data transmission channel comprises:
extracting encrypted files in each target platform by using a pre-constructed multi-port data transmission channel;
and decrypting the encrypted file by using the pre-acquired file public key, and obtaining each target file of each target platform after the decryption process is passed.
5. The method for multi-type file centralized management according to claim 4, wherein before extracting the encrypted files in each target platform by using the pre-constructed multi-port data transmission channel, the method further comprises:
acquiring signal identifications of each target platform and the one-stop system by using a pre-constructed WiFi chunk, and connecting each target platform to the one-stop system according to each signal identification to obtain a multi-port data transmission channel;
generating corresponding public keys and secret keys by using a pre-constructed authentication center, and verifying whether the digital certificates of each target platform and the one-stop system are qualified or not;
and after each digital certificate is qualified, sending the public key to the one-stop system, and sending the secret key to each target platform.
6. The method according to claim 1, wherein said constructing a mirror container set and configuring an environment for each container in the mirror container set according to preset multi-type file processing environment parameters comprises:
executing the pre-constructed wharf script file to obtain a mirror image container frame;
acquiring an operating system dependency package of the one-stop system, and configuring the mirror image container framework by using the operating system dependency package to obtain a basic container;
and configuring pre-constructed multi-type file processing environment parameters for a plurality of basic containers to obtain a mirror image container set of various configuration environments.
7. The method for multi-type fileset management according to claim 1, wherein said obtaining a result of managing the multi-type fileset further comprises:
encoding the management result by utilizing a pre-constructed encoder to obtain encoded data;
performing matrix operation by using the pre-constructed erasure code and the encoded data to obtain encrypted data;
and distributively storing the encrypted data into a pre-constructed storage layer by utilizing a consistent hash algorithm.
8. An apparatus for centralized management of multiple types of files, the apparatus comprising:
the data extraction module is used for extracting multi-type file sets of each target platform by utilizing a pre-constructed multi-port data transmission channel;
the data temporary storage module is used for constructing a data temporary storage area in a preset metadata cache and redirecting the data stream of the multi-type file set to the data temporary storage area;
the system comprises a container configuration module, a storage module and a processing module, wherein the container configuration module is used for constructing a mirror image container set and carrying out environment configuration on each container in the mirror image container set according to preset multi-type file processing environment parameters;
and the asynchronous thread management module is used for performing asynchronous thread management on the multi-type file set by the mirror image container set by utilizing a preset asynchronous thread pool model in the data temporary storage area according to a preset file management strategy to obtain a management result of the multi-type file set.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the multi-type fileset management method of any one of claims 1-7.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the multi-type file centralized management method according to any one of claims 1 to 7.
CN202111210722.6A 2021-10-18 2021-10-18 Multi-type file centralized management method, device, equipment and storage medium Pending CN113918517A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111210722.6A CN113918517A (en) 2021-10-18 2021-10-18 Multi-type file centralized management method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111210722.6A CN113918517A (en) 2021-10-18 2021-10-18 Multi-type file centralized management method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113918517A true CN113918517A (en) 2022-01-11

Family

ID=79241290

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111210722.6A Pending CN113918517A (en) 2021-10-18 2021-10-18 Multi-type file centralized management method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113918517A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115134349A (en) * 2022-06-06 2022-09-30 蚂蚁区块链科技(上海)有限公司 Method and device for executing transmission task

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180275881A1 (en) * 2017-03-27 2018-09-27 Commvault Systems, Inc. Creating local copies of data stored in online data repositories
CN110058863A (en) * 2019-03-16 2019-07-26 平安城市建设科技(深圳)有限公司 Construction method, device, equipment and the storage medium of Docker container
CN111541567A (en) * 2020-04-22 2020-08-14 彭小雪 Artificial intelligence cloud computing big data management system and method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180275881A1 (en) * 2017-03-27 2018-09-27 Commvault Systems, Inc. Creating local copies of data stored in online data repositories
CN110058863A (en) * 2019-03-16 2019-07-26 平安城市建设科技(深圳)有限公司 Construction method, device, equipment and the storage medium of Docker container
CN111541567A (en) * 2020-04-22 2020-08-14 彭小雪 Artificial intelligence cloud computing big data management system and method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈博等: "《海量小文件系统的可移植操作系统接口兼容技术》", 《计算机应用》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115134349A (en) * 2022-06-06 2022-09-30 蚂蚁区块链科技(上海)有限公司 Method and device for executing transmission task
CN115134349B (en) * 2022-06-06 2024-02-23 蚂蚁区块链科技(上海)有限公司 Method, device, medium and equipment for executing transmission task

Similar Documents

Publication Publication Date Title
CN113055380B (en) Message processing method and device, electronic equipment and medium
CN114124502B (en) Message transmission method, device, equipment and medium
CN114389889B (en) File full life cycle management method and device based on block chain technology
CN113112252B (en) Resource transfer method and device based on block chain, electronic equipment and storage medium
CN111953699A (en) Data encryption method and system based on block chain
CN112217642A (en) Data encryption sharing method and device, electronic equipment and computer storage medium
CN115270193B (en) Data file secure sharing method and device based on block chain and collaborative synchronization
CN115048664A (en) Data security storage method, device, equipment and medium based on solid state disk
CN112580079A (en) Authority configuration method and device, electronic equipment and readable storage medium
CN115840787A (en) Supply chain data sharing method, device, equipment and medium based on block chain
CN114417374A (en) Intelligent contract business card method, device, equipment and storage medium based on block chain
CN114553532A (en) Data secure transmission method and device, electronic equipment and storage medium
CN113918517A (en) Multi-type file centralized management method, device, equipment and storage medium
CN113221154A (en) Service password obtaining method and device, electronic equipment and storage medium
CN112464619A (en) Big data processing method, device and equipment and computer readable storage medium
CN116055144A (en) Data security analysis method, device, equipment and storage based on Internet of things
CN115001768A (en) Data interaction method, device and equipment based on block chain and storage medium
CN114826725A (en) Data interaction method, device, equipment and storage medium
CN115001784A (en) Data storage method and device, electronic equipment and computer readable storage medium
CN114091041A (en) Data transmission method, device, equipment and medium based on embedded equipment
CN113642020B (en) Dynamic encryption method and device for configuration file, electronic equipment and storage medium
CN113703995B (en) Front-end and back-end data interaction method and device, electronic equipment and storage medium
CN115941352B (en) Information security interaction method and device based on big data, electronic equipment and storage medium
CN117914943B (en) Data subscription and pushing method, device, equipment and medium
CN114826570A (en) Certificate acquisition method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20220111

RJ01 Rejection of invention patent application after publication