mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
extend server config.yaml to support per pool set drive count (#19663)
This is to support deployments migrating from a multi-pooled
wider stripe to lower stripe. MINIO_STORAGE_CLASS_STANDARD
is still expected to be same for all pools. So you can satisfy
adding custom drive count based pools by adjusting the storage
class value.
```
version: v2
address: ':9000'
rootUser: 'minioadmin'
rootPassword: 'minioadmin'
console-address: ':9001'
pools: # Specify the nodes and drives with pools
-
args:
- 'node{11...14}.example.net/data{1...4}'
-
args:
- 'node{15...18}.example.net/data{1...4}'
-
args:
- 'node{19...22}.example.net/data{1...4}'
-
args:
- 'node{23...34}.example.net/data{1...10}'
set-drive-count: 6
```
This commit is contained in:
@@ -29,14 +29,34 @@ type Opts struct {
|
||||
} `yaml:"sftp"`
|
||||
}
|
||||
|
||||
// ServerConfigVersion struct is used to extract the version
|
||||
type ServerConfigVersion struct {
|
||||
Version string `yaml:"version"`
|
||||
}
|
||||
|
||||
// ServerConfigCommon struct for server config common options
|
||||
type ServerConfigCommon struct {
|
||||
RootUser string `yaml:"rootUser"`
|
||||
RootPwd string `yaml:"rootPassword"`
|
||||
Addr string `yaml:"address"`
|
||||
ConsoleAddr string `yaml:"console-address"`
|
||||
CertsDir string `yaml:"certs-dir"`
|
||||
Options Opts `yaml:"options"`
|
||||
}
|
||||
|
||||
// ServerConfigV1 represents a MinIO configuration file v1
|
||||
type ServerConfigV1 struct {
|
||||
ServerConfigVersion
|
||||
ServerConfigCommon
|
||||
Pools [][]string `yaml:"pools"`
|
||||
}
|
||||
|
||||
// ServerConfig represents a MinIO configuration file
|
||||
type ServerConfig struct {
|
||||
Version string `yaml:"version"`
|
||||
RootUser string `yaml:"rootUser"`
|
||||
RootPwd string `yaml:"rootPassword"`
|
||||
Addr string `yaml:"address"`
|
||||
ConsoleAddr string `yaml:"console-address"`
|
||||
CertsDir string `yaml:"certs-dir"`
|
||||
Pools [][]string `yaml:"pools"`
|
||||
Options Opts `yaml:"options"`
|
||||
ServerConfigVersion
|
||||
ServerConfigCommon
|
||||
Pools []struct {
|
||||
Args []string `yaml:"args"`
|
||||
SetDriveCount uint64 `yaml:"set-drive-count"`
|
||||
} `yaml:"pools"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user