Table of Contents |
---|
minLevel | 2 |
---|
outline | true |
---|
style | none |
---|
|
The purpose cluster management CLI command is to perform following subtasks associated within a cluster:
...
Usage: This section explains the usage of TQL CLI cluster management options
Please refer to Environment Variable section before starting to use the command tool.
Cluster Setup
Code Block |
---|
firstline | 1 |
---|
title | TQL CLI Cluster Setup Command |
---|
linenumbers | true |
---|
|
$ bin/tql -cluster -setup inputtype=file,path=<file path>
|
...
Code Block |
---|
language | text |
---|
firstline | 1 |
---|
title | TQL CLI Cluster Setup Command Input File Format |
---|
linenumbers | true |
---|
|
{
"ClusterSetup": {
"ClusterId": "TestTenant123",
"ShortName": "TestTenant123",
"Description": "test tenant to check setup from cli",
"InitialDirectory": "/home/ec2-user/TestTenant123",
"Installer": {
"InstallerBundleFile": "/home/ec2-user/yourbundleinstaller.zip",
"VersionNumber": "6.14"
},
"Instances": {
"InstanceDetails": [{
"HostName": "",
"IPAddress": "18.216.147.127",
"Port": "8081",
"RuntimeMemory":"2"
},{
"HostName": "",
"IPAddress": "18.216.147.127",
"Port": "8082",
"RuntimeMemory":"2"
}]
},
"LogFilesDirectory": "/home/ec2-user/logsDirectory1",
"LogServer":{
"ClusterId" : "TestTenant123",
"SetupDirectory": "/home/ec2-user/LogServerTest11",
"LogFilesDirectory": "/home/ec2-user/logsDirectory1",
"Host": "deconfig.atomiton.com",
"IPAddress": "18.216.147.127",
"InstanceDetails": "18.216.147.127:8081,18.216.147.127:8082"
}
}
}
|
Cluster Start
Code Block |
---|
firstline | 1 |
---|
title | TQL CLI Cluster Start Command |
---|
linenumbers | true |
---|
|
$ bin/tql -cluster -start tenantid=<tenantId>,memoryInGB=<value | Optional Parameter>
|
To start the cluster instances: Specify the tenantid, and optionally size of memory in GB.
Cluster Stop
Code Block |
---|
firstline | 1 |
---|
title | TQL CLI Cluster Stop Command |
---|
linenumbers | true |
---|
|
$ bin/tql -cluster -stop tenantid=<tenantId>
|
To stop the cluster instances: Specify the tenantid.
Cluster Status
Code Block |
---|
firstline | 1 |
---|
title | TQL CLI Cluster Status Command |
---|
linenumbers | true |
---|
|
$ bin/tql -cluster -status tenantid=<tenantId>
|
To check the status of the cluster specify the tenantid
Cluster Delete
Code Block |
---|
firstline | 1 |
---|
title | TQL CLI Cluster Delete Command |
---|
linenumbers | true |
---|
|
$ bin/tql -cluster -delete tenantid=<tenantId> |
To delete the cluster specify the tenantid. Instances will be stopped and the data deleted from file system.
Cluster List
Code Block |
---|
firstline | 1 |
---|
title | TQL CLI Cluster List Command |
---|
linenumbers | true |
---|
|
$ bin/tql -cluster -list |
...