Skip to content

img0

EC Storage Policy

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 the settings. 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 5 nodes which will allow us to use EC3+2 policy.

Instructions

  1. SSH into your Config / Installer node (Node 1) as sa_admin and start a new session or sessionless shell
  2. Issue the following command to open the configuration file mts.properties.erb
    hspkg config --edit mts.properties.erb
    
  3. In the 'vi' editor, type /cloudian.protection.policy to search for the config option
  4. Under the line "cloudian.protection.policy.max=25" add in the following text
    cloudian.protection.policy.ec.schemes=3:2,4:2,6:2,8:2,9:3,12:4
    
  5. Press Esc key to ensure you are not in edit mode
  6. Then Press Shift Key + Z + Z to save and quit the file mts.properties.erb

Instructions

  1. Run the cloudianInstall.sh script
    hspkg install
    
  2. Choose option 2) Cluster Management then option b) Push Configuration Setting to Cluster
  3. remember to press return to select all nodes

Instructions

  1. Select option c) Manage Services
  2. Select option 5) S3 Service then type restart and Enter to restart services

Note

Restarting the 'S3 Service' using the cloudianInstall.sh script also restarts the Admin service


Warning

Remember to exit the script all the way before closing the ssh session


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 to 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)