1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2 3<html> 4 <head> 5 <meta name="generator" content="HTML Tidy, see www.w3.org"> 6 <title>Printer Load Balancing</title> 7 <meta name="GENERATOR" content= 8 "Modular DocBook HTML Stylesheet Version 1.7"> 9 <link rel="HOME" title=" LPRng Reference Manual" href= 10 "index.htm"> 11 <link rel="UP" title="Printcap Database " href= 12 "printcapref.htm"> 13 <link rel="PREVIOUS" title="Dynamic Routing " href= 14 "destinations.htm"> 15 <link rel="NEXT" title="Locations of Printcap Files " href= 16 "printcappath.htm"> 17 </head> 18 19 <body class="SECT1" bgcolor="#FFFFFF" text="#000000" link= 20 "#0000FF" vlink="#840084" alink="#0000FF"> 21 <div class="NAVHEADER"> 22 <table summary="Header navigation table" width="100%" border= 23 "0" cellpadding="0" cellspacing="0"> 24 <tr> 25 <th colspan="3" align="center">LPRng Reference Manual: 5 26 Sep 2003 (For LPRng-3.8.22)</th> 27 </tr> 28 29 <tr> 30 <td width="10%" align="left" valign="bottom"><a href= 31 "destinations.htm" accesskey="P">Prev</a></td> 32 33 <td width="80%" align="center" valign="bottom">Chapter 34 12. Printcap Database</td> 35 36 <td width="10%" align="right" valign="bottom"><a href= 37 "printcappath.htm" accesskey="N">Next</a></td> 38 </tr> 39 </table> 40 <hr align="LEFT" width="100%"> 41 </div> 42 43 <div class="SECT1"> 44 <h1 class="SECT1"><a name="LOADBALANCE">12.14. Printer Load 45 Balancing</a></h1> 46 47 <p>Options used:</p> 48 49 <ul> 50 <li> 51 <p><var class="LITERAL">ss=</var><span class= 52 "emphasis"><i class="EMPHASIS">queue served by 53 printer</i></span></p> 54 </li> 55 56 <li> 57 <p><var class="LITERAL">sv=</var><span class= 58 "emphasis"><i class="EMPHASIS">printers where jobs are 59 sent (servers)</i></span></p> 60 </li> 61 </ul> 62 <br> 63 <br> 64 65 <p>In a large site, you could have several equivalent 66 printers, which will be used by many people. The reason for 67 this is, of course, to increase the printer output by 68 enabling several jobs to be printed at once. A load balance 69 print queue is one that feeds jobs to other queues and has a 70 <var class="LITERAL">sv=q1,q2,...</var> printcap entry that 71 specifies the destination or server queues. These must be 72 print queue entries and have spool directories on the 73 server.</p> 74 75 <p>The service queues have a <var class= 76 "LITERAL">ss=</var><span class="emphasis"><i class= 77 "EMPHASIS">mainqueue</i></span> printcap entry This informs 78 the <b class="APPLICATION">lpd</b> server that the queue 79 operates under the control of the <span class="emphasis"><i 80 class="EMPHASIS">mainqueue</i></span> print queue, and is fed 81 jobs from it.</p> 82 83 <p>During normal operation, when the <b class= 84 "APPLICATION">lpd</b> server has a job to print in the <span 85 class="emphasis"><i class="EMPHASIS">mainqueue</i></span>, it 86 will check to see if there is an idle <span class= 87 "emphasis"><i class="EMPHASIS">service</i></span> queue. If 88 there is, it will transfer the job to the service queue 89 spooling directory and start the service queue printing 90 activities.</p> 91 92 <p>Even though the queues are not meant for direct use, 93 people can print directly to individual queues. This allows a 94 specific load sharing printer to be used. If you wanted to 95 <span class="emphasis"><i class="EMPHASIS">hide</i></span> 96 the load sharing printers, i.e. - not allow direct spooling 97 to them, then you would simply remove the non-server entries 98 from the printcap.</p> 99 </div> 100 101 <div class="NAVFOOTER"> 102 <hr align="LEFT" width="100%"> 103 104 <table summary="Footer navigation table" width="100%" border= 105 "0" cellpadding="0" cellspacing="0"> 106 <tr> 107 <td width="33%" align="left" valign="top"><a href= 108 "destinations.htm" accesskey="P">Prev</a></td> 109 110 <td width="34%" align="center" valign="top"><a href= 111 "index.htm" accesskey="H">Home</a></td> 112 113 <td width="33%" align="right" valign="top"><a href= 114 "printcappath.htm" accesskey="N">Next</a></td> 115 </tr> 116 117 <tr> 118 <td width="33%" align="left" valign="top">Dynamic 119 Routing</td> 120 121 <td width="34%" align="center" valign="top"><a href= 122 "printcapref.htm" accesskey="U">Up</a></td> 123 124 <td width="33%" align="right" valign="top">Locations of 125 Printcap Files</td> 126 </tr> 127 </table> 128 </div> 129 </body> 130</html> 131 132