HomeMogDBMogDB StackUqbar

Documentation:v2.0

Supported Versions:

Scale Down MogDB Clusters

Overview

The scaledown command allows you to shrink the replica configuration of a cluster. For example:

List the target sub-nodes.

mgo scaledown mycluster --query

Scale down specific sub-nodes.

mgo scaledown mycluster --target=mycluster-replica-xxxx
mgo scaledown [flags]

Options

  -h, --help            Help information for scaledown
      --no-prompt       No command line confirmation prompt
      --query           Print the target replica candidate list
      --target string   Scale down comma-separated list of sub-nodes

Options Inherited From The Parent Command

      --apiserver-url string      The URL of the mogDB Operator apiserver that will handle requests from the mgo client. please note that the URL should not end in "/"
      --debug                     Enable debug output for debugging
      --disable-tls               Disable TLS authentication for MogDB Operator
      --exclude-os-trust          Exclude CA certificates from the OS default trust store
      --k8s-node string          Specify k8s node, default local k8s node
      --mgo-ca-cert string       Connection to MogDB Operator apiserver CA certificate file path.
      --mgo-client-cert string   Path to the client certificate file used to authenticate to the MogDB Operator apiserver
      --mgo-client-key string    Path to the client key file used to authenticate to the MogDB Operator apiserver
  -n, --namespace string          Namespace for mgo requests
Copyright © 2011-2024 www.enmotech.com All rights reserved.