Hi Ulric, All,
How works the weight metric in pen?
Eg, if I have 3 server (A, B and C) being load balanced with pen. Servers A and B are with the default metric, or, without the setting of weight. Server C have a weight of 1. The number of clients is 10. How many clients will go each server?
Thanks in advance.
--------------------------------------------------
Yuri L. Fugikawa
Tecnologia - Votorantim | Finanças
fones: (11) 5185-1691
(11) 7152-0576
e-mail: yuri.fugikawa @ bvsistemas.com.br
--------------------------------------------------
-----Mensagem original-----
De: owner-pen_at_siag.nu [mailto:owner-pen_at_siag.nu] Em nome de Ulric Eriksson
Enviada em: quarta-feira, 2 de fevereiro de 2005 07:51
Para: August MacBeth
Cc: pen_at_siag.nu
Assunto: Re: pen weight question
On Tue, 1 Feb 2005, August MacBeth wrote:
> Hi There,
>
> Is it possible to specify weight in the cmd line rather then penctl?
> or is the best way to:
>
> lb# pen www host host host && penctl host:port server * weight * &&
> penctl host:port server * weight * etc etc etc
The best way is to use a configuration file:
lb# cat pen.cfg
server 0 address foo port 80 weight X
server 1 address bar port 80 weight Y
server 2 address baz port 80 weight Z
lb# pen www -F pen.cfg -p pen.pid
You can change the configuration file and reload it like this:
kill -HUP `cat pen.pid`
Ulric
--------------------------------------------------------------------------------------------
Esta mensagem e seus anexos podem conter informações confidenciais ou privilegiadas. Se você não é o destinatário dos mesmos você não está autorizado a utilizar o material para qualquer fim.
Solicitamos que você apague a mensagem e avise imediatamente ao remetente. O conteúdo desta mensagem e seus anexos não representam necessariamente a opinião e a intenção da empresa, não implicando em qualquer obrigação ou responsabilidade da parte da mesma.
This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose or take any action based on this message or any information herein.
If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. The contents of this message and its attachments do not necessarily express the opinion or the intention of the company, and do not implies any legal obligation or responsibilities from this company.
Received on Wed Feb 02 2005 - 13:42:06 CET
This archive was generated by hypermail 2.2.0 : Wed Feb 02 2005 - 13:42:06 CET