minio/docs/site-replication
Poorna K 9ec197f2e8
Add support for adding new site(s) to site replication (#13696)
Currently, the new site is expected to be empty
2021-11-30 13:16:37 -08:00
..
README.md Add support for adding new site(s) to site replication (#13696) 2021-11-30 13:16:37 -08:00

Site Replication Guide

This feature allows multiple independent MinIO sites (or clusters) that are using the same external IDentity Provider (IDP) to be configured as replicas. In this situation the set of replica sites are referred to as peer sites or just sites. When site-replication is enabled on a set of sites, the following changes are replicated to all other sites:

  • creation and deletion of buckets and objects
  • creation and deletion of all IAM policies
  • creation of STS credentials and creation and deletion of service accounts (for users authenticated by the external IDP)
  • changes to bucket policies, bucket tags, bucket object-lock configurations (including retention and legal hold configuration) and bucket encryption configuration

The following bucket-scoped items are not replicated, and can differ between sites:

  • bucket notification configuration
  • ILM configuration

This feature is built on top of multi-site bucket replication feature. It enables bucket versioning automatically for all new and existing buckets in the replicated sites.

Pre-requisites

  1. Initially, only one of the sites being added for replication may have data. After site-replication is successfully configured, this data is replicated to the other (initially empty) sites. Subsequently, objects may be written to any of the sites, and they will be replicated to all other sites.
  2. Only the LDAP IDP is currently supported.
  3. All sites must have the same root credentials.
  4. removing a site is not allowed from a set of replicated sites once configured.
  5. SSE-S3 or SSE-KMS encryption via KMS, all sites must have access to the same KMS keys. This can be achieved via a central KES server or multiple KES servers (say one per site) connected via a central KMS server.

Configuring Site Replication

To configure site replication, ensure that all MinIO sites are using the same external IDP.

  1. Configure an alias in mc for each of the sites. For example if you have three MinIO sites, you may run:
$ mc alias set minio1 https://minio1.example.com:9000 minio1 minio1123
$ mc alias set minio2 https://minio2.example.com:9000 minio2 minio2123
$ mc alias set minio3 https://minio3.example.com:9000 minio3 minio3123
  1. Add site replication configuration with:
$ mc admin replicate add minio1 minio2 minio3
  1. Once the above command returns success, you may query site replication configuration with:
$ mc admin replicate info minio1