cluster backend add
Man Page | doveadm-cluster-backend(1) |
---|
Adds a new backend to cluster.
Appearance
doveadm cluster site add
adds a new site.
This will add a new site, in online
status. You can specify site load balancer hostname, which is used when connections are routed from site to site. Tag is optional and will be used to match users and backends to a site shard. UUID should only be used when re-adding a site.
Generally speaking, there is no need to initialize user groups. If a group does not exist yet, and a user of that groups logs in, the group is created automatically.
In case the need to manually create user groups arises, the doveadm cluster site init
command can be used.
This command initializes a site by creating cluster_default_group_count
user groups in GeoDB.
If --update
is passed, this command removes existing groups and recreates them. It can thereby shrink or grow the number of groups depending on cluster_default_group_count
. Users also get their groups unassigned when running with --update
.
Note
Running with --update
deletes existing groups and can take a while to run, so do NOT use this in a production environment.
Proxies within the same site have identical configuration. Adding a new proxy can be done by just launching a new proxy server and adding it into the load balancer's proxy pool.
Dovecot doesn't explicitly keep track of the proxies. However, they usually show up in the proxy_dest_stats
table in GeoDB. It may be useful to manually remove those rows eventually.
Remove the proxy server from the load balancer's proxy pool. Wait for a while so at least some of the connections finish on their own. Shutdown the server to forcibly disconnect the rest of the connections.
doveadm cluster backend add
adds a new backend.
You can usually use just --self
when adding the host you are on. Site (cluster_local_site
) and hostname (cluster_backend_name
) are inferred from config. The host will be added in standby mode. UUID should only be used when re-adding a backend.
doveadm cluster backend update
--status
changes a backend status between offline/standby/online.
offline
backend is online again, it changes the status automatically to online
.standby
backends are not automatically touched.offline
nor standby
backends receive any new connections. Existing connections are not kicked/moved, so normally backends shouldn't be set standby
before the users are moved out.doveadm cluster backend update
--load-factor
changes load-factor for a backend.
This can be used to (temporarily) reduce load from backend. Normally, load should always be set to 100
. This is primarily used by the controller, which starts the group moves.
This setting is not accurate, so setting it to 99
or 78
will not have the expected effect.
Recommended values are 100
, 50
, and 0
for draining the host.
doveadm cluster backend evacuate
evacuates a backend with full speed:
If you're not in a hurry to evacuate the backend immediately, it's better to only set the load factor to 0 and let the controller move the groups out of the backend slowly.
NOTE
This command exits without waiting for the moves to complete.
doveadm who
)doveadm cluster backend remove
)Controller attempts to prevent backend from becoming overloaded by automatically moving groups out, but this may not always happen fast enough. To make it happen faster, you can change backend load-factor to a smaller number or even to 0 to remove all users from the backend. If this still isn't fast enough, use doveadm cluster backend evacuate
command.
⚠️ TODO
Provide non-k8s information here
doveadm cluster group move
moves a group within a site.
The move is started by running the doveadm cluster group access
command on the source backend.
NOTE
This command exits without waiting for the move to complete.
doveadm cluster group list
lists all groups.
doveadm cluster group status
shows the current status of the group for a site.
doveadm cluster user status
shows the current status for a user.
doveadm cluster user access
accesses a backend as a given user and prints which backend it was.
This command can also cause a connection to the other site. This command is mainly used internally, but may be helpful also for debugging.
doveadm cluster user move
moves the given user to the given group, and optionally to a different site.
The move is started by running the doveadm cluster user access
command on the source backend.
NOTE
This command exits without waiting for the move to complete.
Controller supports autoscaling. There are two autoscalers to choose from:
This is the default scaler, and returns number of backends in site.
This scaler calls method get_desired_number_of_backends(site)
and expects it to return number of desired backends.
Controller offers feature control via the admin UI or HTTP API. The features that can be switched 'on', 'dryrun' or 'off' are:
/metrics
HTTP endpoint.Feature settings are recorded in a table (cluster_settings
) in GeoDB and are disabled by default. If the table is not present, all features are enabled for backward-compatibility.
To manage feature settings via the admin page, navigate to Site features
page from the left pane. Note that you can only change feature settings of the local site via controller admin UI. To manage the features via the controller API, see OpenAPI documentation.
⚠️ TODO
⚠️ TODO
cluster backend add
Man Page | doveadm-cluster-backend(1) |
---|
Adds a new backend to cluster.
cluster backend evacuate
Man Page | doveadm-cluster-backend(1) |
---|
Start moving all user groups to other backends.
cluster backend list
Man Page | doveadm-cluster-backend(1) |
---|
Lists all backends in this cluster, including other sites.
cluster backend remove
Man Page | doveadm-cluster-backend(1) |
---|
Remove a backend from cluster.
cluster backend status
Man Page | doveadm-cluster-backend(1) |
---|
Shows the current status of the backend.
cluster backend update
Man Page | doveadm-cluster-backend(1) |
---|
Update a cluster backend's status.
cluster geodb refresh
Man Page | doveadm-cluster-geodb(1) |
---|
Refreshes local caches from GeoDB
cluster group access
Man Page | doveadm-cluster-group(1) |
---|
Perform cluster lookup for the cluster_backend_test_username
user as if it belonged to the specified group.
cluster group list
Man Page | doveadm-cluster-group(1) |
---|
List all user groups.
cluster group move
Man Page | doveadm-cluster-group(1) |
---|
Initiate a user group move.
cluster group status
Man Page | doveadm-cluster-group(1) |
---|
Display current status of a user group.
cluster group update
Man Page | doveadm-cluster-group(1) |
---|
Updates group settings.
cluster kick
Man Page | doveadm-cluster-kick(1) |
---|
Disconnect user’s connections from the cluster.
cluster site add
Man Page | doveadm-cluster-site(1) |
---|
Adds a new site to cluster.
cluster site init
Man Page | doveadm-cluster-site(1) |
---|
Initialise site by creating user groups.
cluster site list
Man Page | doveadm-cluster-site(1) |
---|
List all sites.
cluster site remove
Man Page | doveadm-cluster-site(1) |
---|
Remove a site.
cluster site status
Man Page | doveadm-cluster-site(1) |
---|
Site status.
cluster site update
Man Page | doveadm-cluster-site(1) |
---|
Update site status and load balancer.
cluster tag create
Man Page | doveadm-cluster-tag(1) |
---|
Creates a new tag for cluster.
cluster tag delete
Man Page | doveadm-cluster-tag(1) |
---|
Delete a tag.
cluster tag list
Man Page | doveadm-cluster-tag(1) |
---|
List all tags.
cluster tag update
Man Page | doveadm-cluster-tag(1) |
---|
Change tag name.
cluster user access
Man Page | doveadm-cluster-user(1) |
---|
Perform cluster lookup for the user (or users).
cluster user delete
Man Page | doveadm-cluster-user(1) |
---|
Deletes a record from GeoDB.
cluster user move
Man Page | doveadm-cluster-user(1) |
---|
Initiates moving user to a different user group.
cluster user status
Man Page | doveadm-cluster-user(1) |
---|
Displays status information of a user.