Dmitriy Ryajov
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
      • Invitee
    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Versions and GitHub Sync Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
Invitee
Publish Note

Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

Your note will be visible on your profile and discoverable by anyone.
Your note is now live.
This note is visible on your profile and discoverable online.
Everyone on the web can find and read all notes of this public team.
See published notes
Unpublish note
Please check the box to agree to the Community Guidelines.
View profile
Engagement control
Commenting
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
  • Everyone
Suggest edit
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
Emoji Reply
Enable
Import from Dropbox Google Drive Gist Clipboard
   owned this note    owned this note      
Published Linked with GitHub
Subscribed
  • Any changes
    Be notified of any changes
  • Mention me
    Be notified of mention me
  • Unsubscribe
Subscribe
# Codex EC and placement requirements ## Abstract There are several concurrent requirements that our erasure coding and data placement needs to satisfy, thus we need to first understand what this requirement are before engaging in the minutia of the specific layouts. I'll try to outline the high level of this requirements and provide a few directions which I believe might be interesting to explore in this context. Our requirements are concurrent and in some cases conflicting, thus some level of compromise is expected, however, we should be careful to make the **right kind** of compromises. I've been using the following framework to aid in deciding where the compromises are most acceptable (in order of importance): 1. Integrity - the EC structure and block placement SHOULD not compromise the integrity of the dataset and by extension durability 2. Performance - the EC structure and block placement SHOULD avoid creating bottlenecks during retrieval 1. Retrieval can also be significantly accelerated by the EC code, thus the structure of the code SHOULD be maximally exploited 3. Fairness - the EC structure and block placement SHOULD strive for maximum fairness given the economic constraints of the system 1. Since retrieval is incentivized, unfair placement would lead to marketplace imbalances and create privileged and disadvantaged participants 4. Complexity - increasing complexity is justifiable only in the context of the other factors. In other words, complexity can be increased only if the alternative would be compromising on integrity, performance or fairness ## Requirements We have several high level requirements which can be classified as **immediate** and **future**. Our immediate requirements are: 1. The EC structure SHOULD maximally guarantee the integrity of the dataset 2. The block placement SHOULD avoid correlated failures 3. The block placement SHOULD avoid creating retrieval bottlenecks 4. The block placement SHOULD maximize download fairness due to the retrieval economics Our future requirements are: NOTE: We should future prove our solution with this requirements in mind. 1. The EC code and placement SHOULD support dynamic datasets. 1. The simplest and most effective strategy for dynamic datasets is append; it supports most (or all) types of modifications to the source data, thus, we should at a minimum, allow appending data (blocks) to an existing dataset 2. It SHOULD be possible to adjust the EC parameters of an already deployed dataset. For example, it SHOULD be possible to adjust the parity blocks parameters of the dataset (M) 3. In the context of the above two requirements, it follows that we SHOULD allow increasing the set of nodes storing a dataset 1. Removing nodes from the storage set is not a contemplated at this time, as it seems unfeasible 4. Lastly, appending data, changing the EC (M) parameters and/or adding new nodes, SHOULD not lead to a reordering of the blocks in the storage set. In other words, new nodes or a changed M, should not lead to a reshuffle of the blocks across all the storage nodes. ## Dataset Metadata Another factor to keep in mind is metadata. Metadata has significant storage overhead, thus, it has the potential of becoming a complicating factor if not managed carefully. In our current system, all the metadata is kept in a manifest file which is stored and distributed as a regular block in the Codex network. The manifest contains a list of hashes which comprise the dataset. A manifest can be "protected", which means that it contains additional erasure coding parameters and the parity blocks in addition to the original blocks. Note, the manifest doesn't contain the actual blocks, only the hashes of the blocks, blocks are stored independently from the manifest and several manifests could point to the same subset of blocks, which could be stored uniquely or duplicated across storage sets or other unrelated nodes. ### Future proving Manifests So far, we've been able to keep the complexity of the metadata to a minimum. Concretely block hashes are recorded sequentially and their position in the blocks list/array determines their position in the dataset. This approach has kept the complexity of retrieval to a minimum. For example, downloading a dataset simply means reading all the hashes in the `blocks` array and requesting them sequentially from the network or the local store. This might not be the case anymore once we factor in all the requirements. For example, the actual layout of the data might change based on the specific EC layout we choose, i.e. blocks might not anymore be laid out sequentially, which would require some level of correction at the access level, this seems like a reasonable overhead/complexity given all of the above requirements. It seems reasonable to think, given all the current and future requirements that we need some level of future proving our manifests. In this context, `Cid` already provide some level of control, but versioning might be a better way of signaling features? ## Proposed Roadmap Given the complexity of the requirements, I propose we address them iteratively. The current approach document in [#85](https://github.com/status-im/codex-research/pull/85) has some obvious flaws that conflict with the requirements as they are laid out above. Some proposed ideas in [#119](https://github.com/status-im/codex-research/discussions/119). ## Current Resource and Discussions - [#85](https://github.com/status-im/codex-research/pull/85) - description of the currently implemented model and some initial discussion - [#119](https://github.com/status-im/codex-research/discussions/119) - Continued layout discussions

Import from clipboard

Paste your markdown or webpage here...

Advanced permission required

Your current role can only read. Ask the system administrator to acquire write and comment permission.

This team is disabled

Sorry, this team is disabled. You can't edit this note.

This note is locked

Sorry, only owner can edit this note.

Reach the limit

Sorry, you've reached the max length this note can be.
Please reduce the content or divide it to more notes, thank you!

Import from Gist

Import from Snippet

or

Export to Snippet

Are you sure?

Do you really want to delete this note?
All users will lose their connection.

Create a note from template

Create a note from template

Oops...
This template has been removed or transferred.
Upgrade
All
  • All
  • Team
No template.

Create a template

Upgrade

Delete template

Do you really want to delete this template?
Turn this template into a regular note and keep its content, versions, and comments.

This page need refresh

You have an incompatible client version.
Refresh to update.
New version available!
See releases notes here
Refresh to enjoy new features.
Your user state has changed.
Refresh to load new user state.

Sign in

Forgot password

or

By clicking below, you agree to our terms of service.

Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
Wallet ( )
Connect another wallet

New to HackMD? Sign up

Help

  • English
  • 中文
  • Français
  • Deutsch
  • 日本語
  • Español
  • Català
  • Ελληνικά
  • Português
  • italiano
  • Türkçe
  • Русский
  • Nederlands
  • hrvatski jezik
  • język polski
  • Українська
  • हिन्दी
  • svenska
  • Esperanto
  • dansk

Documents

Help & Tutorial

How to use Book mode

Slide Example

API Docs

Edit in VSCode

Install browser extension

Contacts

Feedback

Discord

Send us email

Resources

Releases

Pricing

Blog

Policy

Terms

Privacy

Cheatsheet

Syntax Example Reference
# Header Header 基本排版
- Unordered List
  • Unordered List
1. Ordered List
  1. Ordered List
- [ ] Todo List
  • Todo List
> Blockquote
Blockquote
**Bold font** Bold font
*Italics font* Italics font
~~Strikethrough~~ Strikethrough
19^th^ 19th
H~2~O H2O
++Inserted text++ Inserted text
==Marked text== Marked text
[link text](https:// "title") Link
![image alt](https:// "title") Image
`Code` Code 在筆記中貼入程式碼
```javascript
var i = 0;
```
var i = 0;
:smile: :smile: Emoji list
{%youtube youtube_id %} Externals
$L^aT_eX$ LaTeX
:::info
This is a alert area.
:::

This is a alert area.

Versions and GitHub Sync
Get Full History Access

  • Edit version name
  • Delete

revision author avatar     named on  

More Less

Note content is identical to the latest version.
Compare
    Choose a version
    No search result
    Version not found
Sign in to link this note to GitHub
Learn more
This note is not linked with GitHub
 

Feedback

Submission failed, please try again

Thanks for your support.

On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

Please give us some advice and help us improve HackMD.

 

Thanks for your feedback

Remove version name

Do you want to remove this version name and description?

Transfer ownership

Transfer to
    Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

      Link with GitHub

      Please authorize HackMD on GitHub
      • Please sign in to GitHub and install the HackMD app on your GitHub repo.
      • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
      Learn more  Sign in to GitHub

      Push the note to GitHub Push to GitHub Pull a file from GitHub

        Authorize again
       

      Choose which file to push to

      Select repo
      Refresh Authorize more repos
      Select branch
      Select file
      Select branch
      Choose version(s) to push
      • Save a new version and push
      • Choose from existing versions
      Include title and tags
      Available push count

      Pull from GitHub

       
      File from GitHub
      File from HackMD

      GitHub Link Settings

      File linked

      Linked by
      File path
      Last synced branch
      Available push count

      Danger Zone

      Unlink
      You will no longer receive notification when GitHub file changes after unlink.

      Syncing

      Push failed

      Push successfully