Storage Method
This section describes the data classification, attributes, and storage methods
Data Classification
There are two data categories in CESS: idle and active.
Idle data: Storage nodes use idle data to prove how much storage space they have. Idle data is generated by the TEE Worker of the consensus node in the trusted execution environment, which is unique and verifiable. Storage nodes request idle data from the consensus node and report it to the blockchain network. The blockchain network increases the idle space of storage nodes and calculates rewards for each challenge.
Active data: Active data is user uploaded data and is permanently stored in storage nodes. When a storage node stores an active data, it is necessary to delete a random idle data and replace it with the active data, as the benefits of storing active data is higher than that of idle data. CESS network encourages storage nodes to store more active data.
Data attributes
CESS is an object-based storage service, where all data includes two types of attributes: metadata and data content.
Metadata: It is a description of data content, including data length, data unique identifier, data owner, data location index, etc. The structure of the metadata is defined bellow:
Data content: is the content stored of the data itself.
Storage method
The following figure shows the file directory structure after the storage node is running. The directory is located in the user specified folder in the configuration file, and has three levels of directory structure. The first level directory is the name of the storage node's signature account, the second level directory is fixed as bucket
, and the third level directory includes cache
, file
, log
, space
, and temp
directories. The space
directory stores idle data, while the file
directory stores active data.
Was this helpful?