Skip to content

img0

EC Storage Policy

Instructions

  1. Login to the CMC as an Admin User
  2. Select Cluster Tab
  3. Select Storage Policies Sub-Tab
  4. Click + Create Storage Policy
  5. Type “EC42” as Policy Name
  6. Type “Erasure Coding 4 + 2” under description
  7. Leave Number of Datacenters as 1
  8. Ensure EC Within Single Datacenter is selected
  9. Change Erasure Coding K + M Value to 4+2 after viewing the available options

Enable EC3+2

By default, EC3+2 Storage Policy is disabled. In circumstances where this policy is desired (small clusters / performance requirements), it can be enabled through hsctl. Once enabled we can investigate a Hybrid Policy

Warning

You should never use Storage Policy that is unsupported by Cloudian. Doing so may invalidate support and can cause significant performance issues. When in doubt, discuss options with your SE.

In our case, we have more than 5 nodes which will allow us to use EC3+2 policy.

Instructions

  1. SSH into your Config Controller Node (node1) as sa_admin and start a new session or sessionless shell
  2. Issue the following command to modify the default Erasure Coding setting to include EC 3+2

    hsctl config set hyperstore.storagePolicy.EC.singleDC=3:2,4:2,6:2,8:2,9:3,12:4
    

  3. Next we need to apply the new setting.

    hsctl config apply hyperstore
    

  4. Finally we restart the s3 service to commit the new setting.

    hsctl service restart s3 --nodes=ALL
    

Note

We do not need to restart the CMC service as the setting will dynamically be applied in the relevant field


Warning

Remember to exit the ssh session on completion


Create EC Storage Policy

Instructions

  1. Login as Admin User
  2. Select Cluster Tab
  3. Select Storage Policies Sub-Tab
  4. Click + Create Storage Policy
  5. Type “ec32hybrid” as Policy Name
  6. Type “Erasure Coding 3+2” under description
  7. Leave Number of Datacenters as 1
  8. Ensure EC Within Single Datacenter is selected
  9. Check or Change Erasure Coding K + M Value to 3+2

Instructions

  1. Select a Hybrid Policy Threshold of 32KiB
  2. Leave all other settings on their default and click Save

Create EC bucket

Instructions

  1. Login as User Account or use View User Data as admin user.
  2. Click +Add New Bucket
  3. Type “myhybridbucket” in Bucket Name
  4. Select ec32hybrid Storage Policy
  5. Click Create

Upload Data to bucket

Note

We are now going to upload 2 files, one below and one above the hybrid threshold


Instructions

  1. Click Objects Tab
  2. Select “myhybridbucket
  3. Click Upload File
  4. Upload the 5k and 50k File
  5. Click Start Upload
  6. Ensure Upload completes successfully

Locate EC Object

Instructions

  1. Login as Admin User
  2. Select Analytics Tab
  3. Select Object Locator Sub-Tab
  4. Type “myhybridbucket” in Bucket Name
  5. Type 50k in Object Name
  6. Click Find
  7. Validate Type as “EC
  8. Validate that there are 5 Separate Fragments (3 + 2)

Instructions

  1. Login as Admin User
  2. Select Analytics Tab
  3. Select Object Locator Sub-Tab
  4. Type “myhybridbucket” in Bucket Name
  5. Type 5k in Object Name
  6. Click Find
  7. Validate Type as “Replica
  8. Validate that there are 3 Replicas (2m-1)