Back to Redis

Create

content/operate/rs/references/cli-utilities/rladmin/cluster/create.md

latest2.4 KB
Original Source

Creates a new cluster. The node where you run rladmin cluster create becomes the first node of the new cluster.

sh
cluster create
        name <cluster name>
        username <admin email>
        password <admin password>
        [ node_uid <node UID> ] 
        [ rack_aware ]
        [ rack_id <node rack ID> ]
        [ second_rack_id <node's second rack ID> ]
        [ license_file <file> ]
        [ ephemeral_path <path> ]
        [ persistent_path <path> ]
        [ ccs_persistent_path <path> ]
        [ register_dns_suffix ]
        [ flash_enabled ]
        [ flash_path <path> ]
        [ addr <IP.address> ]
        [ external_addr <IP.address.1> [<IP.address.2> ... <IP.address.N>] ]

Parameters

ParameterType/ValueDescription
addrIP addressThe node's internal IP address (optional)
ccs_persistent_pathfilepath (default: /var/opt/redislabs/persist)Path to the location of CCS snapshots (optional)
ephemeral_pathfilepath (default: /var/opt/redislabs)Path to the ephemeral storage location (optional)
external_addrlist of IP addressesA space-delimited list of the node's external IP addresses (optional)
flash_enabledEnables flash storage (optional)
flash_pathfilepath (default: /var/opt/redislabs/flash)Path to the flash storage location (optional)
license_filefilepathPath to the RLEC license file (optional)
namestringCluster name
node_uidintegerUnique node ID (optional)
passwordstringAdmin user's password
persistent_pathfilepath (default: /var/opt/redislabs/persist)Path to the persistent storage location (optional)
rack_awareActivates or deactivates rack awareness (optional)
rack_idstringThe rack's unique identifier (optional)
register_dns_suffixEnables database mapping to both internal and external IP addresses (optional)
second_rack_idstringThe unique identifier of the node's second rack ID for two-dimensional rack awareness (optional)
usernameemail addressAdmin user's email address

Returns

Returns ok if the new cluster was created successfully. Otherwise, it returns an error message.

Example

sh
$ rladmin cluster create name cluster.local \
        username [email protected] \
        password admin-password
Creating a new cluster... ok