Take the system offline

When you take the system offline, the system does not queue any new work or transactions. The state only allows maintenance tasks to run. By default, the system finishes the queries and transactions that are active at the time the offline command is issued.

To make the transition to the offline state, enter:
[nz@nzhost ~]$ nzsystem offline 
Are you sure you want to take the system offline (y|n)? [n] y
Enter y to continue. The transition completes quickly on an idle system, but it can take much longer if the system is busy processing active queries and transactions. When the transition completes, the system enters the offline state, which you can confirm with the nzstate command as follows:
[nz@nzhost ~]$ nzstate
System state is 'Offline'.

You can use the -now option to force a transition to the offline state, which causes the system to abort any active queries and transactions. As a best practice, use the nzsession show -activeTxn command to display a list of the current active transactions before you force the system to terminate them.