Start/Stop Accelerator
The commands involved in this tutorial are ncmgr info, ncmgr start and ncmgr stop.
You should use ncmgr,
especially when starting Accelerator, because it checks for and
applies any daemon and DB schema changes when moving to a new version.
Note: Please
remember to uses the shell where you set the NC_QUEUE
environment variable to the name of your training tutorial queue.
View Accelerator Status
Use command ncmgr info to get a
summary information of all taskers and current running
jobs.
% ncmgr info
ncmgr: message: NC vncdexin@alpaca
1 001 alpaca 1/0 146198 Unlim. IDLE
2 002 cheetah 1/0 235294 Unlim. IDLE
3 004 bison 1/1 99206 Unlim FULL
2s: vw vwrap sleep 60 > vnc long
4 000 pluto 1/0 75312 Unlim. IDLE
5 003 rhino 1/0 181818 Unlim. IDLE
Start Accelerator
-
Execute ncmgr
to see if Accelerator is already running.
% ncmgr start ncmgr: USER ERROR: NC vncdexin@alpaca already running.
-
If not already running, start Accelerator. In production
use, it is important to check the number of file descriptors available to
vovserver.
% ncmgr start ncmgr: message: Checking the license... ncmgr: message: ... the license is good. ncmgr: message: Starting NC ncmgr: message: with name vncdexin ncmgr: message: on host alpaca ncmgr: message: in directory /home/dexin/ftadmin ncmgr: message: as user dexin ncmgr: message: with 1024 file descriptors Do you want to proceed? (yes/[no]) > yes ncmgr: message: Waiting for server to be ready ... ncmgr: message: Sanity check... ncmgr: message: NC vncdexin@alpaca is ready.
Stop Accelerator
Run the following:
% ncmgr stop
ncmgr: message: Checking if NC vncdexin@alpaca is running...
ncmgr: message:
You are about to stop NC vncdexin@alpaca in directory /home/dexin/ftadmin
Would you like to proceed (yes/[no]) ? > yes
ncmgr: message: Stopping taskers and server ...
ncmgr: message: NC vncdexin@alpaca has been stopped.
Restart Your Accelerator Queue
You should restart your queue so that it will be running for later exercises.
Run the following:
% ncmgr start
ncmgr: message: Checking the license...
ncmgr: message: Checking the license...
ncmgr: message: ... the license is good.
ncmgr: message: Starting NC
ncmgr: message: with name vncdexin
ncmgr: message: on host alpaca
ncmgr: message: in directory /home/dexin/ftadmin
ncmgr: message: as user dexin
Do you want to proceed? (yes/[no]) > yes
ncmgr: message: Waiting for server to be ready ...
ncmgr: message: Sanity check...
ncmgr: message: NC vncdexin@alpaca is ready.