admin api basic authorization would be enabled when the acounts
field in config file was not empty.
GET /pools/
no parameter
POST /token/:namespace
- description: description of the token
- pool: optional, Default: "default"
DELETE /token/:namespace/:token
- pool: optional, Default: "default"
GET /token/:namespace
- pool: optional, Default: "default"
GET /info
- pool: optional, 默认 "default"
GET /metrics
no parameter
Assume the old pool (default) config was below:
[Pool]
[Pool.default]
Addr = "localhost:6379"
would migrate to new redis, just add the new configuration:
[Pool]
[Pool.default]
Addr = "localhost:6379"
MigrateTo = "migrate"
[Pool.migrate]
Addr = "localhost:6389"
New write requests would redirect to the new pool and read reqeusts would try to consume the old pool first. We can remove the old pool configuration if the redis key and queue size wasn't changed, and recofingure the pool as below:
[Pool]
[Pool.default]
Addr = "localhost:6389" # use new redis after migrated