[FUGSPBR] Duvida no Transparent Proxy com DISKd
Ivan Marquetti Ostermann
ivan em melim.com.br
Qua Maio 15 11:31:05 BRT 2002
Vamos lá entao !!!
5000 users
25 dias rodando o server
Servidor com os usuarios obrigado a passar pelo transparente proxy
$ ls -ld /cache
drwxr-xr-x 18 nobody nogroup 512 May 7 15:23 /cache
$ ls -l /cache
total 584
drwxr-xr-x 258 nobody nogroup 3584 Apr 30 08:59 00
drwxr-xr-x 258 nobody nogroup 3584 Apr 30 08:59 01
drwxr-xr-x 258 nobody nogroup 3584 Apr 30 08:59 02
drwxr-xr-x 258 nobody nogroup 3584 Apr 30 09:00 03
drwxr-xr-x 258 nobody nogroup 3584 Apr 30 09:00 04
drwxr-xr-x 258 nobody nogroup 3584 Apr 30 09:00 05
drwxr-xr-x 258 nobody nogroup 3584 Apr 30 09:00 06
drwxr-xr-x 258 nobody nogroup 3584 Apr 30 09:00 07
drwxr-xr-x 258 nobody nogroup 3584 Apr 30 09:01 08
drwxr-xr-x 258 nobody nogroup 3584 Apr 30 09:01 09
drwxr-xr-x 258 nobody nogroup 3584 Apr 30 09:01 0A
drwxr-xr-x 258 nobody nogroup 3584 Apr 30 09:01 0B
drwxr-xr-x 258 nobody nogroup 3584 Apr 30 09:01 0C
drwxr-xr-x 258 nobody nogroup 3584 Apr 30 09:02 0D
drwxr-xr-x 258 nobody nogroup 3584 Apr 30 09:02 0E
drwxr-xr-x 258 nobody nogroup 3584 Apr 30 09:02 0F
-rw-r--r-- 1 nobody nogroup 523728 May 7 15:23 swap.state
# squid -z
2002/05/15 09:17:48| Creating Swap Directories
# df
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/ad0s1a 148823 39743 97175 29% /
/dev/ad0s1f 11909978 101770 10855410 1% /cache
/dev/ad0s1g 5888325 1611797 3805462 30% /usr
/dev/ad0s1e 992239 6601 906259 1% /var
procfs 4 4 0 100% /proc
E agora???
>Instalei um servidor BSD fazendo trasnparente proxy, com diskd
>Ele ta rodando e funcionando aparentemente mais fui dar uma olhada
>no espaço em disco e
># df
>Filesystem 1K-blocks Used Avail Capacity Mounted on
>/dev/ad0s1a 148823 39742 97176 29% /
>/dev/ad0s1f 11909978 100708 10856472 1% /cache
>/dev/ad0s1g 5888325 1611805 3805454 30% /usr
>/dev/ad0s1e 992239 6610 906250 1% /var
>procfs 4 4 0 100% /proc
>
> Notem que o /cache ta ocupando 1% apenas
>Sendo que no meu conf do squid está
>cache_dir diskd /cache 8000 16 256 Q1=64 Q2=72
>
>OU seja tem 8 giga para ele cachear
>
>disk-I/O.
>#
># cache_dir diskd Directory-Name Mbytes L1 L2 [options] [Q1=n] [Q2=n]
>#
># see argument descriptions under ufs above
>#
># Q1 specifies the number of unacknowledged I/O requests when Squid
># stops opening new files. If this many messages are in the queues,
># Squid won't open new files. Default is 64
>#
># Q2 specifies the number of unacknowledged messages when Squid
># starts blocking. If this many messages are in the queues,
># Squid blocks until it recevies some replies. Default is 72
>
>O proxy transparente foi feito no intuito de amenizar o uso do meu link
>mais pelas estatiticas nao diminuiu ai vi como tava as partiçoes e com esse
>1% acho que tem coisa errada.
>
>Onde será que estou errando !!!
>
>Obs.: NO firewall tem a linha
> add allow all from <MyServer_IP> to any
>add fwd 127.0.0.1,3128 tcp from <MyNet_IP>/24 to any 80 via xl0
>
>Ou seja quando eu dou um ipfw show varias vezes eu noto que ele acrescenta
o
>numero de pacote
>ou seja ele aumenta.
>Creio que o squid esteja funcionando entao.
>
>Obrigado pela ajuda
>
>
>______________________________________________
>http://www2.fugspbr.org/mailman/listinfo/fugspbr
______________________________________________
http://www2.fugspbr.org/mailman/listinfo/fugspbr
______________________________________________
http://www2.fugspbr.org/mailman/listinfo/fugspbr
Mais detalhes sobre a lista de discussão freebsd