Object storage usage amount statistical method and system based on ceph

A technology of object storage and statistical methods, applied in transmission systems, digital transmission systems, electrical components, etc., to achieve the effect of reducing RGW resources, saving system resources, and reducing pressure

Inactive Publication Date: 2019-10-25
SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
View PDF6 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The technical task of the present invention is to address the above deficiencies and provide a ceph-based object storage usage statistics method and system to solve the problem of how to collect tenant usage and incorporate it into the table under the premise of not requesting rgw when users query usage

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 usage amount statistical method and system based on ceph

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0042] The ceph-based object storage usage statistics method of the present invention periodically acquires and stores the tenant's storage and usage from the ceph cluster, including the following steps:

[0043] S100. Set the collection period T as one day, and divide the collection period T into twenty-four sub-periods t, where the sub-period t is one hour, and construct a statistical sub-table and a statistical table;

[0044] S200. Taking the sub-period t as the acquisition period value, periodically obtain the tenant's storage and usage from the ceph cluster through the first thread, and store the storage and usage corresponding to each sub-period t into the statistics sub-table ;

[0045] S300. Taking the cycle T as the collection cycle value, periodically obtain the storage capacity and usage amount corresponding to all sub-periods t in the cycle T from the statistics sub-table through the second thread, and collect all the sub-periods in the cycle T The storag...

Embodiment 2

[0056] A ceph-based object storage usage statistics system, including a configuration module, a first collection module, a second collection module and a query module. The configuration module is used to set the collection cycle T and divide the collection cycle T into multiple sub-cycles t, and is used to build statistical sub-tables and statistical tables. The first collection module is used to periodically obtain tenants from the ceph cluster through the first thread storage and usage, and store the storage and usage corresponding to each sub-period t in the statistics sub-table; the second acquisition module is used to periodically obtain the period T from the statistics sub-table through the second thread storage and usage corresponding to all sub-periods t in the period T, and store the storage and usage corresponding to all sub-periods t in the period T into the statistical table; the query module is used to read the statistical table to obtain the tenant's storage vo...

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 discloses an object storage usage amount statistical method and system based on ceph, belongs to the field of object storage usage amount statistics, and aims to solve the technical problem of how to collect tenant usage amount and merge the tenant usage amount into a table on the premise that a user does not request rgw when querying the usage amount. The method comprises the following steps: setting an acquisition period T, dividing the acquisition period T into a plurality of sub-periods t, and constructing a statistical sub-table and a statistical table; taking t as an acquisition period value, periodically obtaining the storage capacity and the usage amount of the tenants from the ceph cluster through a first thread, and storing the storage capacity and the usage amountcorresponding to each sub-period t into a statistical sub-table; and taking T as an acquisition period value, periodically obtaining the storage amount and the usage amount corresponding to all the sub-periods t in the period T from the statistical sub-table through a second thread, and storing the storage amount and the usage amount corresponding to all the sub-periods t in the period T into thestatistical table. The system comprises a configuration module, a first acquisition module, a second acquisition module and a query module.

Description

technical field [0001] The invention relates to the field of object storage usage statistics, in particular to a ceph-based object storage usage statistics method and system. Background technique [0002] Object storage is a service that provides unstructured file storage for Internet applications. Compared with traditional hard disk storage, object storage has the advantages of unlimited storage, high concurrent access support, and lower cost. Solve the file storage problem of the business architecture, effectively reduce the storage cost of massive files, support high concurrent access to hot data, and improve the end user access experience. At present, all major cloud platforms provide object storage services, and the usage of tenants is used as the billing basis and needs to be displayed to tenants. [0003] At present, the object storage of ceph (which is a distributed file system that can add replication and fault tolerance functions while maintaining POSIX compatibil...

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
IPC IPC(8): H04L29/08H04L12/24
CPCH04L41/14H04L67/1097
Inventor 邵士雨于昊高传集王大帅
Owner SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
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