minio/internal/bucket/lifecycle
Harshavardhana 76b21de0c6
feat: decommission feature for pools (#14012)
```
λ mc admin decommission start alias/ http://minio{1...2}/data{1...4}
```

```
λ mc admin decommission status alias/
┌─────┬─────────────────────────────────┬──────────────────────────────────┬────────┐
│ ID  │ Pools                           │ Capacity                         │ Status │
│ 1st │ http://minio{1...2}/data{1...4} │ 439 GiB (used) / 561 GiB (total) │ Active │
│ 2nd │ http://minio{3...4}/data{1...4} │ 329 GiB (used) / 421 GiB (total) │ Active │
└─────┴─────────────────────────────────┴──────────────────────────────────┴────────┘
```

```
λ mc admin decommission status alias/ http://minio{1...2}/data{1...4}
Progress: ===================> [1GiB/sec] [15%] [4TiB/50TiB]
Time Remaining: 4 hours (started 3 hours ago)
```

```
λ mc admin decommission status alias/ http://minio{1...2}/data{1...4}
ERROR: This pool is not scheduled for decommissioning currently.
```

```
λ mc admin decommission cancel alias/
┌─────┬─────────────────────────────────┬──────────────────────────────────┬──────────┐
│ ID  │ Pools                           │ Capacity                         │ Status   │
│ 1st │ http://minio{1...2}/data{1...4} │ 439 GiB (used) / 561 GiB (total) │ Draining │
└─────┴─────────────────────────────────┴──────────────────────────────────┴──────────┘
```

> NOTE: Canceled decommission will not make the pool active again, since we might have
> Potentially partial duplicate content on the other pools, to avoid this scenario be
> very sure to start decommissioning as a planned activity.

```
λ mc admin decommission cancel alias/ http://minio{1...2}/data{1...4}
┌─────┬─────────────────────────────────┬──────────────────────────────────┬────────────────────┐
│ ID  │ Pools                           │ Capacity                         │ Status             │
│ 1st │ http://minio{1...2}/data{1...4} │ 439 GiB (used) / 561 GiB (total) │ Draining(Canceled) │
└─────┴─────────────────────────────────┴──────────────────────────────────┴────────────────────┘
```
2022-01-10 09:07:49 -08:00
..
action_string.go Add basic scanner metrics (#13317) 2021-10-02 09:31:05 -07:00
and.go rename all remaining packages to internal/ (#12418) 2021-06-01 14:59:40 -07:00
error.go rename all remaining packages to internal/ (#12418) 2021-06-01 14:59:40 -07:00
expiration_test.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
expiration.go rename all remaining packages to internal/ (#12418) 2021-06-01 14:59:40 -07:00
filter_test.go rename all remaining packages to internal/ (#12418) 2021-06-01 14:59:40 -07:00
filter.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
lifecycle_test.go run gofumpt cleanup across code-base (#14015) 2022-01-02 09:15:06 -08:00
lifecycle.go feat: decommission feature for pools (#14012) 2022-01-10 09:07:49 -08:00
noncurrentversion_test.go Newer noncurrent versions (#13815) 2021-12-14 09:41:44 -08:00
noncurrentversion.go Newer noncurrent versions (#13815) 2021-12-14 09:41:44 -08:00
prefix.go rename all remaining packages to internal/ (#12418) 2021-06-01 14:59:40 -07:00
rule_test.go rename all remaining packages to internal/ (#12418) 2021-06-01 14:59:40 -07:00
rule.go rename all remaining packages to internal/ (#12418) 2021-06-01 14:59:40 -07:00
tag.go rename all remaining packages to internal/ (#12418) 2021-06-01 14:59:40 -07:00
transition_test.go Add immediate inline tiering support (#13298) 2021-10-01 11:58:17 -07:00
transition.go feat: decommission feature for pools (#14012) 2022-01-10 09:07:49 -08:00