Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents
minLevel2
outlinetrue
stylenone


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
firstline1
titleTQL CLI Cluster Setup Command
linenumberstrue
$ bin/tql -cluster -setup inputtype=file,path=<file path>

...

Code Block
languagetext
firstline1
titleTQL CLI Cluster Setup Command Input File Format
linenumberstrue
{
   "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
firstline1
titleTQL CLI Cluster Start Command
linenumberstrue
$ 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
firstline1
titleTQL CLI Cluster Stop Command
linenumberstrue
$ bin/tql -cluster -stop tenantid=<tenantId>

To stop the cluster instances: Specify the tenantid.

Cluster Status

Code Block
firstline1
titleTQL CLI Cluster Status Command
linenumberstrue
$ bin/tql -cluster -status tenantid=<tenantId>

 To check the status of the cluster specify the tenantid


Cluster Delete

Code Block
firstline1
titleTQL CLI Cluster Delete Command
linenumberstrue
$ 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
firstline1
titleTQL CLI Cluster List Command
linenumberstrue
$ bin/tql -cluster -list

...