Shutdown Domain

This is a NuoDB Manager command. See NuoDB Manager.

Description

Disables enforcement and stops all processes in a domain. If a process has no connections or all its connections are idle, the process proceeds to shut down. If a process has active connections, the shutdown occurs after they have completed, or when the timeout (shutdownTimeout, softShutdownTimeout) has expired.

Syntax

shutdown domain 
    [ dbTimeout dbtimeout_value ] 
    [ softTimeout soft_timeout_value ]

Parameters

Useful Properties

shutdownTimeout

softShutdownTimeout

See NuoDB Manager Properties.

Interactive Example

Given a domain with 3 hosts and 2 databases (test and test2), shutdown all processes in the domain.

nuodb [domain] > show domain summary
 
Hosts:
[broker] * ec2-52-24-143-83.us-west-2.compute.amazonaws.com/52.24.143.83:48004 (us-west-2) CONNECTED
[broker] ip-172-31-13-183/52.24.2.248:48004 (us-west-2) CONNECTED
[broker] ip-172-31-14-56/52.24.98.113:48004 (us-west-2) CONNECTED
 
Database: test, template [Single Host] MET, processes [1 TE, 1 SM], ACTIVE
[SM] ip-172-31-14-171/52.24.143.83:48005 (us-west-2) [ pid = 19336 ] [ nodeId = 1 ] RUNNING
[TE] ip-172-31-14-171/52.24.143.83:48006 (us-west-2) [ pid = 19354 ] [ nodeId = 2 ] RUNNING
 
Database: test2, template [Minimally Redundant] MET, processes [2 TE, 2 SM], ACTIVE
[SM] ip-172-31-14-171/52.24.143.83:48007 (us-west-2) [ pid = 19381 ] [ nodeId = 3 ] RUNNING
[TE] ip-172-31-13-183/52.24.2.248:48005 (us-west-2) [ pid = 5735 ] [ nodeId = 2 ] RUNNING
[SM] ip-172-31-14-56/52.24.98.113:48005 (us-west-2) [ pid = 25896 ] [ nodeId = 1 ] RUNNING
[TE] ip-172-31-14-56/52.24.98.113:48006 (us-west-2) [ pid = 25919 ] [ nodeId = 4 ] RUNNING
 
nuodb [domain] > shutdown domain
Timeout per database (ms/s/m/h/d/w) (optional): 
Remote process shutdown timeout (ms/s/m/h/d/w) (optional): 
Shutdown databases [test, test2]:
Shutdown database test
Shutdown database test2
 
nuodb [domain] > show domain summary
 
Hosts:
[broker] * ec2-52-24-143-83.us-west-2.compute.amazonaws.com/52.24.143.83:48004 (us-west-2) CONNECTED
[broker] ip-172-31-13-183/52.24.2.248:48004 (us-west-2) CONNECTED
[broker] ip-172-31-14-56/52.24.98.113:48004 (us-west-2) CONNECTED
 
Database: test, template [Single Host] UNMET STOPPED
Database: test2, template [Minimally Redundant] UNMET STOPPED

Scripting Example

The same shutdown domain command can be executed with --command as follows:

nuodbmgr --broker host --password password \
    --command "shutdown domain"