Changing the redundancy scheme for 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.

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>[:min] | --encoding <M>+<N>]
                                 [--failure-domain {0,1,2,3,4}]
--tier {0,1,2,3}
Storage tier

--replicas <norm>[:min]

Storage replication mapping in the format:

  • norm: number of replicas to maintain
  • min: minimum required number of replicas (optional)
--encoding <M>+<N>

Storage erasure coding mapping in the format:

  • M: number of data blocks
  • N: number of parity blocks
--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                                          |
+-----------------+--------------------------------------------+