Object storage method, gateway, device and medium

An object storage and object technology, applied in structured data retrieval, file/folder operations, database indexing, etc., can solve the problem of low storage performance, reduce hardware costs, avoid hard disk read and write bottlenecks, and improve storage performance Effect

Pending Publication Date: 2021-11-23
重庆紫光华山智安科技有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of the shortcomings of the prior art described above, the purpose of this application is to provide an object storage method, gate

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Object storage method, gateway, device and medium
  • Object storage method, gateway, device and medium
  • Object storage method, gateway, device and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0050] see figure 1 , which is a flow chart of an object storage method provided by this application, including:

[0051] Step S101, obtaining the target video file to be stored from the user client;

[0052] Wherein, the user client is one of the application software, and the application software is a software program provided to meet the application requirements of users in different fields and problems. functions of various applications such as Figure 5 As shown, the gateway receives the target video file to be stored through the file interface of the application software.

[0053] The target video file is a video file shot by a camera device, a smart phone, a tablet device, a wearable device, or a computer device with a camera. The target video file is a large file, generally larger than 1GB. , finance, conference, business, monitoring and other fields to collect target video files.

[0054] Step S102, dividing the target video file into a plurality of objects conforming

Embodiment 2

[0112] Taking the video surveillance file storage structure as an example, its directory structure includes: root directory - camera subdirectory - date subdirectory - video files.

[0113] For example, a file name / carmera1 / 20210719 / 12093503.mp4, the file size is 1GB. The operation process of the video file received by the gateway is as follows:

[0114] (1) Create the carmera1 directory

[0115] Object storage generally has the concept of a storage bucket, which represents a namespace. In this embodiment, we do not focus on how to implement object storage. It is assumed that all created objects are in the same namespace;

[0116] The gateway will upload an object in the object storage, and the object name is / carmera1; where / is a special character, indicating that the object is a directory, and other special characters can be customized;

[0117] No real files are saved in the Carmera1 directory, so this object does not contain file content (if the gateway does no

Embodiment 3

[0140] For some files that may be modified and written, the following methods can be used to achieve.

[0141] Modification and writing generally occur inside the small file. Assume that the segment length of the small file is 4K, the file directory is / carmera3 / index / 20210713 / , the file name is 16380734.index, and the file size is 2MB. The data that needs to be modified and inserted is 1MB offset 200 bytes of data at . Then follow the steps below:

[0142] (1) Open the file

[0143] Open the file in write mode, the gateway creates a file handle in memory, the handle includes object name, segment length, write offset;

[0144] Find the same object name in the object storage, build the objects with the same object name into an object set, and set the write offset of the handle as the file length;

[0145]The way to find the same object is to only match the part of the object name that does not contain the $ serial number. In this example, a total of 512 objects from car

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides an object storage method, a gateway, a device and a medium. The method comprises the following steps: acquiring a to-be-stored target video file; segmenting the target video file into a plurality of objects conforming to a preset storage length, wherein the preset storage length is any segment length; creating a directory according to the number and names of the objects segmented by the target video file and the attribute of the target video file; and storing the cut objects according to corresponding paths of the inventory. According to the method, the target video file is divided into a plurality of small objects from a large file, and the objects are stored in a manner of uploading the plurality of small objects, so that on one hand, cache accumulation is avoided, and on the other hand, cache data are not stored in a local hard disk of a gateway, and the phenomenon of hard disk read-write bottleneck is avoided; and meanwhile, according to the file size, the segment length is defined at will, the storage requirements of different files are met, a large-capacity high-performance disk does not need to be arranged, the hardware cost is reduced, and the storage performance is improved.

Description

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Owner 重庆紫光华山智安科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products