[squid-users] squidclient and Host header?

2007-09-01 Thread Monty Ree

Hello, list.

I have used purge using squidclient like below.

squidclient -v -m purge -r -p 80 -h example.com 
http://example.com/test.jpg


But squidclient doesn't include Host header, so I would like to add Host 
header like below.


squidclient -v -m purge -r -p 80 -h example.com -H 'Host: example.com' 
http://example.com/test.jpg


But it seems doesn't work well..

Anyone who knows how to add Host filed using squidclient?


Thanks in advance.

_
특별한 누군가를 찾고 싶다면 MSN 친구사귀기!  
http://match.kr.msn.com/channel/index.aspx?trackingid=1002127 



[squid-users] each mrtg graph per domain?

2007-07-20 Thread Monty Ree

Hello all.

I have setup and serviced squid 2.6.STABLE4 at linux  for reverse proxy for 
multiple domains well.


# squid.conf example. 

cache_peer  cp.abc.com  parent  800no-query 
originserver name=cp.abc.com

cache_peer_domain   cp.abc.com  abc.com
acl cp.abc.comdstdomain abc.com
http_access allow cp.abc.com

cache_peer  cp.xyz.com  parent  800no-query 
originserver name=cp.xyz.com

cache_peer_domain   cp.xyz.com  xyz.com
acl cp.xyz.comdstdomain xyz.com
http_access allow cp.xyz.com

and I would like to see each mrtg(bps graph) per each domain(abc.com , 
xyz.com)


Is it possible?


Thanks for your help.

_
특별한 누군가를 찾고 싶다면 MSN 친구사귀기!  
http://match.kr.msn.com/channel/index.aspx?trackingid=1002127 



[squid-users] please recommend high performance squid-like solution?

2007-07-18 Thread Monty Ree

Hello, list.

I'm searching squid-like reverse cache solution which can caching like 
squid.

Surely squid itself is good but as I know squid is a bit slow.

So is there any high performance solution(freeware or cheap commercial) 
which you can recommend?



Thanks for your time...

_
오늘 무슨 일이 생길까 궁금하시죠? MSN 운세에서 확인하세요. 
http://fortune.msn.co.kr/ 



[squid-users] Access Denied error occurred randomly.

2006-11-30 Thread Monty Ree
Hello, 


I have used squid 2.6 stable4 for reverse proxy for 10 domains.
It works well, but from time to time I can meet Access Denied error.

Then if I execute /usr/local/squid/sbin/squid -k reconfigure,  works 
again well without error.


But after sometime,  Access Denied error occurs again..

I don't know, why this happen.. is it a bug?

More curious thing is that this error happens only for last configured 
domains.

I have installed other versions but the result was same...

Anyone who have experienced like me??


Thanks again..

_
전세계인이 함께하는 웹 메일 서비스인 MSN Hotmail을 만나 보세요.
http://www.hotmail.com/ 



[squid-users] only Access Denied error to log?

2006-11-30 Thread Monty Ree

Hello, all.

I would like to leave logs only Access Denied 403(forbidden) error 
related.

Anyone who can help me?
How can I set squid.conf to leave only Access Denied error to log file?

Thanks for your help in advance.

_
오늘 무슨 일이 생길까 궁금하시죠? MSN 운세에서 확인하세요. 
http://fortune.msn.co.kr/ 



[squid-users] How can I set error_log?

2006-11-07 Thread Monty Ree
Hello, 

I would like to monitor separate error_log like 404(Not Found), 
403(Forbbidden) as apache.


So is there any directive or method that I can save these errors to file 
like 


/usr/local/squid/var/logs/error_log??


Thanks for your help...

_
언제 어디서나 편리한 MSN SMS 서비스를 이용하세요.  
http://im.msn.co.kr/new/function/function_01_02.asp 



Re: [squid-users] leaving each log file per domain at squid

2006-10-23 Thread Monty Ree

 I have setup squid 2.6 for reverse proxy about several domains.
 So I would like to leave each log messages to separate files per
 cache_peer_domain.
 Is there any method to do this?

Yes. See access_log and dstdomain acl.



Thanks for your kind answer.
If I have tow peer domains(www.abc.com, www.xyz.com),  
Can you  give me an example to leave a log about www.abc.com?



Thanks again.

_
MSN Messenger를 통해 온라인상에 있는 친구와 대화를 나누세요.   
http://messenger.msn.co.kr  



[squid-users] Max membufs value at COSS?

2006-10-21 Thread Monty Ree

Hello...

my squid is below..

linux kernel : 2.6.18
squid : 2.6.STABLE4-20060928
Memory : 4G RAM
CPU : AMD Opteron 

COSS config at squid.conf 
cache_dir coss /cache/coss 25000 block-size=2048 max-size=100 
membufs=500


I can see lots of log at /var/log/squid/cache.log 

storeCossCreateMemOnlyBuf: no free membufs.  
You may need to increase the value of membufs on the /cache/coss cache_dir


So I changed mebufs=700 like below..
cache_dir coss /cache/coss 25000 block-size=2048 max-size=100 
membufs=500


and refreshed squid 
But error messages like below...

But squid daemon is not down in spite of the error...

-

FATAL: COSS ERROR: Squid will likely use too much memory if it ever used 
500MB worth of buffers

Squid Cache (Version 2.6.STABLE4-20060928): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
--


What's the problem? or no problem?
Can't  I set over 500  to membufs?
and What can I do solve this problem??


Thanks for your help~~

_
MSN Messenger를 통해 온라인상에 있는 친구와 대화를 나누세요.   
http://messenger.msn.co.kr  



[squid-users] leaving each log file per domain at squid

2006-10-21 Thread Monty Ree

Hello...

I have setup squid 2.6 for reverse proxy about several domains.
So I would like to leave each log messages to separate files per 
cache_peer_domain.

Is there any method to do this?

So thanks for your help..

_
책상위에 다리 올리고 느긋하게 즐긴다... MSN 온라인 상영관   
http://vod.msn.co.kr  



[squid-users] Recommendable value of cache_mem?

2006-09-26 Thread Monty Ree

Hello

I have 4G RAM squid..
What is the recommendable value of this variable?

cache_mem
cache_swap_low
cache_swap_high

Thanks for help..

_
싸게 싸게 MSN공동구매   
http://www.waawaa.com/cobuy/cobuy_default.asp?siteid=10160 



Re: [squid-users] Any kernel patch to improve performance?

2006-09-04 Thread Monty Ree

Hello Henrik Nordstrom.


Performance for Squid now generally isn't CPU bound..

Thanks for your answer.
But my ab result say, performance is related with CPU  intensively.

For example, my ab result here.

# ab -k -n 2000 -c 300 some_image_file
kenel 2.6.x , squid  2.6stable3, same network and same config file.

# opteron 275 dual core  
Requests per second:7604.56 [#/sec] (mean)


# Xeon 2,8G single 
Requests per second:4597.70 [#/sec] (mean)



Thanks in advance.

_
보다 빠르고 보기 편한 뉴스. 오늘의 화제는 MSN 뉴스에서 확인하세요.   
http://www.msn.co.kr/news/  



[squid-users] Any kernel patch to improve performance?

2006-09-03 Thread Monty Ree

Hello, all.

I think that lots of kernel patch project is to improve performance 2.6 
based.

So is there any recommendable kernel patch project ?

I have googled and found some like below..

http://members.optusnet.com.au/ckolivas/kernel/
http://people.redhat.com/~mingo/realtime-preempt/

etc


Thanks in advance.

_
MSN Messenger를 통해 온라인상에 있는 친구와 대화를 나누세요.   
http://messenger.msn.co.kr  



[squid-users] dns issue in the point of performance?

2006-08-31 Thread Monty Ree

Hello, all.

I have installed bind DNS at squid server.
So what is the better in the point of performane to use bind DNS or 
internal squid DNS?


Thanks in advance.

_
확인하자. 오늘의 운세 무료 사주, 궁합, 작명, 전생 가이드   
http://www.msn.co.kr/fortune/default.asp  



[squid-users] curious error log epoll related???

2006-08-29 Thread Monty Ree

Hello, all.

When I execute squid it doesn't work.

my system is centos 3.7(x86_64) kernel 2.6.17 / 2.6.18-rc5 (AMD-275)
squid is 2.6 s2, s3 all same...

strings /usr/local/squid/sbin/squid | grep epoll
epoll_wait
epoll_ctl
epoll_create
epoll ctl
Using epoll for the IO loop
comm_epoll.c
comm_select_init: epoll_create(): %s
   IO loop method: epoll
commSetEvents: epoll_ctl(%s): failed on fd=%d: %s
comm_select: epoll failure: %s

# squid -v
'--enable-epoll' '--disable-poll' '--disable-select' '--enable-async-io' 
'--with-pthreads' '--enable-storeio=coss' '--enable-large-cache-files' 
'--enable-snmp' '--enable-coss-aio-ops' '--with-large-files' 
'--disable-ident-lookups' '--prefix=/usr/local/squid'



below is cache.log.
How to solve this?


2006/08/29 18:22:26| commSetEvents: epoll_ctl(EPOLL_CTL_ADD): failed on 
fd=13: (38) Function not implemented
2006/08/29 18:22:26| Accepting accelerated HTTP connections at 0.0.0.0, 
port 80, FD 13.
2006/08/29 18:22:26| commSetEvents: epoll_ctl(EPOLL_CTL_ADD): failed on 
fd=14: (38) Function not implemented

2006/08/29 18:22:26| Accepting ICP messages at 0.0.0.0, port 3130, FD 14.
2006/08/29 18:22:26| commSetEvents: epoll_ctl(EPOLL_CTL_ADD): failed on 
fd=15: (38) Function not implemented

2006/08/29 18:22:26| Select loop Error. Retry 10
FATAL: Select Loop failed!
Squid Cache (Version 2.6.STABLE3): Terminated abnormally.
CPU Usage: 0.028 seconds = 0.008 user + 0.020 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
2006/08/29 18:22:26| Not currently OK to rewrite swap log.
2006/08/29 18:22:26| storeDirWriteCleanLogs: Operation aborted.

_
증권 정보 가장 빠르고 편하게 보실 수 있습니다. MSN 증권/투자   
http://www.msn.co.kr/stock/  



Re: [squid-users] curious error log epoll related???

2006-08-29 Thread Monty Ree

Thanks for your answer.
But I have selected epoll.

.config file say, 


CONFIG_EPOLL=y

I have executed well, centos 4.3 based.

Thanks in advance.


From: Adrian Chadd [EMAIL PROTECTED]
To: Monty Ree [EMAIL PROTECTED]
CC: squid-users@squid-cache.org
Subject: Re: [squid-users] curious error log epoll related???
Date: Tue, 29 Aug 2006 17:35:27 +0800

It does seem like your kernel doesn't have epoll support compiled in.




Adrian


On Tue, Aug 29, 2006, Monty Ree wrote:
 Hello, all.

 When I execute squid it doesn't work.

 my system is centos 3.7(x86_64) kernel 2.6.17 / 2.6.18-rc5 (AMD-275)
 squid is 2.6 s2, s3 all same...

 strings /usr/local/squid/sbin/squid | grep epoll
 epoll_wait
 epoll_ctl
 epoll_create
 epoll ctl
 Using epoll for the IO loop
 comm_epoll.c
 comm_select_init: epoll_create(): %s
IO loop method: epoll
 commSetEvents: epoll_ctl(%s): failed on fd=%d: %s
 comm_select: epoll failure: %s

 # squid -v
 '--enable-epoll' '--disable-poll' '--disable-select' 

'--enable-async-io'

 '--with-pthreads' '--enable-storeio=coss' '--enable-large-cache-files'
 '--enable-snmp' '--enable-coss-aio-ops' '--with-large-files'
 '--disable-ident-lookups' '--prefix=/usr/local/squid'


 below is cache.log.
 How to solve this?


 2006/08/29 18:22:26| commSetEvents: epoll_ctl(EPOLL_CTL_ADD): failed on
 fd=13: (38) Function not implemented
 2006/08/29 18:22:26| Accepting accelerated HTTP connections at 0.0.0.0,
 port 80, FD 13.
 2006/08/29 18:22:26| commSetEvents: epoll_ctl(EPOLL_CTL_ADD): failed on
 fd=14: (38) Function not implemented
 2006/08/29 18:22:26| Accepting ICP messages at 0.0.0.0, port 3130, FD 

14.

 2006/08/29 18:22:26| commSetEvents: epoll_ctl(EPOLL_CTL_ADD): failed on
 fd=15: (38) Function not implemented
 2006/08/29 18:22:26| Select loop Error. Retry 10
 FATAL: Select Loop failed!
 Squid Cache (Version 2.6.STABLE3): Terminated abnormally.
 CPU Usage: 0.028 seconds = 0.008 user + 0.020 sys
 Maximum Resident Size: 0 KB
 Page faults with physical i/o: 0
 2006/08/29 18:22:26| Not currently OK to rewrite swap log.
 2006/08/29 18:22:26| storeDirWriteCleanLogs: Operation aborted.

 _
 증권 정보 가장 빠르고 편하게 보실 수 있습니다. MSN 증권/투자
 http://www.msn.co.kr/stock/


_
메신저에서 문자를 바로 보내보세요 
http://phonebuddy.msn.co.kr/m_main.aspx?part=W 



[squid-users] How to hide squid version information?

2006-08-27 Thread Monty Ree

Hello, all.

I would like to hide squid version or server information for security 
reason. 
So I set via off at squid.conf file. But via information is seen as ever.


Is there any directive or method like ServerTokens at apache?


Thanks in advance.

_
행운의 주인공이 이번엔 나일꺼야, 진짜루... 인터넷 복권   
http://www.msn.co.kr/money/interlotto/  



[squid-users] MaxClients of the squid?

2006-08-24 Thread Monty Ree

Hello, all.

I have tested some commercial reverse proxy solution with squid.
and I must set the number of the max session at config like MaxClients at 
apache.


So, is there any max client limit at squid?
When the squid can't service any more?

I can't find any directive related this..

Thanks in advance.

_
증권 정보 가장 빠르고 편하게 보실 수 있습니다. MSN 증권/투자   
http://www.msn.co.kr/stock/  



[squid-users] Lots of TIME_WAIT why?

2006-08-24 Thread Monty Ree

Hello, all.

I have tested squid using ab like below.

# ab -k -n 1000 -c 100 http://squid.test.com/

as you know -k means Use HTTP KeepAlive feature

and I can see over 1,000 TIME_WAIT when I execute netstat -na.
But I can't see TIME_WAIT any more at commercial cache.

Why squid doesn't use Keepalive function?

# squid.conf (linux kernel 2.6.17)
client_persistent_connections on
server_persistent_connections on


Thanks in advacne for your comment.

_
전세계인이 함께하는 웹 메일 서비스인 MSN Hotmail을 만나 보세요.
http://loginnet.passport.com/login.srf?id=2svc=mailcbid=24325msppjph=1lc=1042 





[squid-users] include at squid.conf supported?

2006-08-24 Thread Monty Ree

Hello, all.

I would like to include some config file at squid.conf.
So I set like this at squid.conf to include vhosts.conf file.

Include /usr/local/squid/etc/vhosts.conf

or Include etc/vhosts.conf

or Include ./vhosts.conf

squid.conf and vhosts.conf file is at same 
directory(/usr/local/squid/etc/).


But, this is not work.

How to include some config file at squid.conf ?


Thanks in advacne..

_
고.. 감.. 도.. 사.. 랑.. 만.. 들.. 기.. MSN 러브   
http://www.msn.co.kr/love/  



[squid-users] COSS losing cached data after squid restart?

2006-08-23 Thread Monty Ree

Hello, list.

I have read a book which titled Squid, the Definite Guide.
That say like this.

coss doesn't support rebuilding cached data from disk well.
When you restart sqyud, you might find that it fails to read the coss 
swap.state files, thus 
losing any cached data.


I guess that I should change or add cache_peer or cache_peer_domain 
once ot twice per day for some reason. Then, coss is not suit for me??



Thanks in advance.

_
메신저에서 문자를 바로 보내보세요 
http://phonebuddy.msn.co.kr/m_main.aspx?part=W 



[squid-users] How to set multiple namebased virtual reverse proxy?

2006-08-21 Thread Monty Ree

Hello, list.

I would like to set reverse(accelerator mode) cache using squid by 
namebased virtualhost.

So I set squid.conf like below, and works well.

IP of the www.test.com and www.example.com is set squid IP.
and origin server is test.com and example.com.(different server) 

www.test.com  IN A1.1.1.1 
www.example.com   IN A1.1.1.1 


1.1.1.1 is a IP of squid.

and test.com is 1.1.1.2 , example.com is 2.2.2.2 


Is there any problem to set this?


http_port   80vhost
http_access   allow all
http_reply_access   allow all

cache_peer  test.com  parent  80  0   no-query 
originserver name=web1

cache_peer_domain   web1  www.test.com

cache_peer  example.com  parent  80  0   no-query 
originserver name=web2

cache_peer_domain   web2  www.example.com

_
고.. 감.. 도.. 사.. 랑.. 만.. 들.. 기.. MSN 러브   
http://www.msn.co.kr/love/  



[squid-users] the lastest benchmark document?

2006-08-14 Thread Monty Ree

Hello, all.

I'm a beginner of the squid.
and I would like to search squid performance document.
But old documents only.
I heard that the lastest squid has good performance(especially 2.6),right?  



So anyone who have any performance benchmark materials especially reverse 
proxy related?

if possible, benchmark testing with commercial solutions would be good.


So thanks in advance.

_
MSN Messenger를 통해 온라인상에 있는 친구와 대화를 나누세요.   
http://messenger.msn.co.kr