Re: How to set Priority !

From: Ulric Eriksson (ulric@siag.nu)
Date: Tue Sep 03 2002 - 12:37:34 CEST


On 3 Sep 2002, Erwien Samantha Y wrote:

> can u show me how to set some priority ,
>
> example.
>
> pen 80 10.32.10.26:80 10.32.10.29:80 10.32.10.32:80
>
> is that mean the first column have the highest priority ??

No, they all have the same priority. It makes no difference in which order
the servers are listed on the command line, over time they will get
(approximately) equal load.

> server address status port connections max soft max hard sent received
> 0 10.32.10.26 0 83 34421 0 0 516195975 10321908334
> 1 10.32.10.29 0 80 33155 0 0 484547423 9855180318
> 2 10.32.10.32 0 80 33785 0 0 479045031 9953306099
>
> what connection above mean ? simultaneous connections or total
> connection that server already serve.

Total number of connections served.

> Ulric .., that i want is give some server high priority to serve.
> and limit some server only can serve 100 simultaneous. (ex. 10.32.10.26
> highest priority & limit 10.32.10.29 only accept 100 simultaneous
> connections.

Here's an example where 10.32.10.26 will receive twice as many connections
as the other servers. 10.32.10.29 will never accept more than 100
simultaneous connections. 10.32.10.32 will accept 100 connections PLUS an
additional 20 for known clients (i.e. they have connected before).

pen 80 10.32.10.26:80 10.32.10.26:80 10.32.10.29:80:100 \
        10.32.10.32:80:100:120

Ulric



This archive was generated by hypermail 2.1.2 : Tue Sep 03 2002 - 12:37:59 CEST