Changing the storage tier for S3 metadata

To improve S3 storage performance, you can place NS and OS journals on a faster storage tier than is used for data. The amount of space required for S3 metadata on a separate tier can be calculated as 0.5% – 1% of S3 data size.

Prerequisites

To change the storage tier for S3 metadata

Admin panel

  1. Open the Storage services > S3 > Settings screen, and then click Storage policies.
  2. In the Metadata storage policy section, select the desired storage tier.
  3. Click Save to apply your changes.

Command-line interface

Use the following command:

vinfra service s3 cluster change [--metadata-tier {0,1,2,3}]
--metadata-tier {0,1,2,3}
Storage tier

For example, to change the storage tier to 2 for S3 metadata, run:

# vinfra service s3 cluster change --metadata-tier 2

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: 2                                    |
| name            | cluster1                                   |
| nodes           | - id: ca334b1d-20a1-1241-96a5-eb9acadb8ecd |
|                 | - id: ab36b523-91dc-e78d-53a7-88baed44541e |
| np              |                                            |
| nusers          | 0                                          |
| protocol        | scheme: https                              |
| redundancy      | m: 1                                       |
|                 | n: 2                                       |
|                 | type: raid6                                |
| s3gw_domain     | dns.example.com                            |
| tier            | 0                                          |
+-----------------+--------------------------------------------+