Restart Process

This is a NuoDB Manager command. See NuoDB Manager.

Description

After shutting down a running process (TE or SM) on an existing database restart process will start it again with the same configuration and on the same host where it was running. You can also shut down a running TE process on an existing database and then restart a process with the same configuration on a new host; this only works for TEs, not SMs.

Note: For managed databaseWhen a NuoDB-provided template is used to create a database then that database is a managed database. Databases created from the Automation Console are always managed databases. You can also use the NuoDB Manager command line tool to create a managed database.s created with NuoDB 2.1 or later, it is no longer necessary to take a snapshot of your database to stop and restart processes. Simply use the NuoDB Manager shutdown database and start database commands (See Shutdown Database and Start Database) or stop and start processes in the Automation Console.

Syntax

restart process 
    host existing_hostname 
    pid process_id 
    [ newhost new_hostname ] 
    [ timeout timeout_value ]

Parameters

Useful Properties

restartTimeout

See NuoDB Manager Properties.

Interactive Example

Restart SM specified by pid 8039:

nuodb [domain] > restart process 
Host: localhost 
Process ID: 8039
Timeout (duration ms/s/m/h/d/w) (default: 10000ms): 
New Host (optional):
Started: [SM] local/10.1.37.60:48005 (DEFAULT_REGION) [ pid = 19799 ] [ db = test ] [ nodeId = 1 ] RUNNING

Scripting Example

The same restart process command can be executed with --command as follows:

nuodbmgr --broker host --password password \
    --command "restart process host localhost pid 8039"