Changing the redundancy scheme for S3 data

If you use redundancy by replication for your S3 data, you can update the chosen redundancy scheme by changing the storage policy. Such a configurable redundancy scheme ensures high scalability and maximum efficiency of object storage. With redundancy by erasure coding, however, changing the redundancy scheme used for S3 data is disabled.

Limitations

  • Changing the encoding redundancy scheme is disabled, because it may decrease cluster performance. Re-encoding demands a significant amount of cluster resources for a long period of time. If you still want to change the redundancy scheme, contact the technical support team.

Prerequisites

To change the storage policy for S3 data

Admin panel

  1. Open the Storage services > S3 > Settings screen, and then click Storage policies.
  2. In the Data storage policy section, select the desired storage tier, failure domain, or data redundancy mode.
  3. Click Save to apply your changes.

Command-line interface

Use the following command:

vinfra service s3 cluster change [--tier {0,1,2,3}] [--replicas <norm>]
                                 [--failure-domain {0,1,2,3,4}]
--tier {0,1,2,3}
Storage tier

--replicas <norm>

Storage replication mapping in the format:

  • norm: number of replicas to maintain
--failure-domain {0,1,2,3,4}
Storage failure domain

For example, to change the storage tier to 0, the replica scheme to 3, and the failure domain to host, run:

# vinfra service s3 cluster change --tier 0 --replicas 3 --failure-domain 1

The updated parameters will be shown in the vinfra service s3 show output:

# vinfra service s3 show
+-----------------+--------------------------------------------+
| Field           | Value                                      |
+-----------------+--------------------------------------------+
| failure_domain  | 1                                          |
| id              | 0100000000000002                           |
| metadata_policy | failure_domain: 1                          |
|                 | redundancy:                                |
|                 |   m: 1                                     |
|                 |   n: 2                                     |
|                 |   type: raid6                              |
|                 | tier: 1                                    |
| name            | cluster1                                   |
| nodes           | - id: ca334b1d-20a1-1241-96a5-eb9acadb8ecd |
|                 | - id: ab36b523-91dc-e78d-53a7-88baed44541e |
|                 | - id: 8d362265-3009-c548-087d-bad7a466bf1e |
| np              |                                            |
| nusers          | 0                                          |
| protocol        | scheme: https                              |
| redundancy      | m: 3                                       |
|                 | type: raid1                                |
| s3gw_domain     | dns.example.com                            |
| tier            | 0                                          |
+-----------------+--------------------------------------------+