old-www/LDP/LG/issue33/wilson_l1.html

39 lines
933 B
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>LJ 55: Sample GNQS Commands</title>
</head>
<body bgcolor="#FFFFFF" text="000000">
<IMG SRC="../gx/ljtop.gif" Alt="Linux Journal">
<p>
<h4>Listing 1. Sample GNQS Commands</h4>
<p>
<pre>
#Create a batch processing queue:
qmgr create batch_queue web-queue
#Submit a job
qsub -q web-queue &lt;&lt;EOF
command -args data
EOF
#View queue status
qmgr show queue
web-queue@webserver; type=BATCH; [ENABLED, INACTIVE]; pri=16 lim=1
0 exit; 0 run; 0 stage; 0 queued; 0 wait; 0 hold; 0 arrive;
#Create a network queue on webserver.genome, run<\n>
#on two cpu servers, round robin load balanced
qmgr create pipe_queue web-queue
add destination=job-queue@cpu1.genome,job-queue@cpu2.genome web-queue
set lb_out web-queue
(on each cpu server)
qmgr create batch_queue job-queue run_limit=1
set lb_in job-queue
qmgr set scheduler webserver.genome
</pre>
<p>
</body>
</html>