|
|
|
|
|
|
| Author |
Message |
ashraf modi *nix forums beginner
Joined: 28 Dec 2005
Posts: 24
|
Posted: Wed Jun 21, 2006 7:50 am Post subject:
Re: peer weight is not working please help
|
|
|
--- Henrik Nordstrom <henrik@henriknordstrom.net>
wrote:
| Quote: | tis 2006-06-20 klockan 10:37 -0800 skrev Chris
Robertson:
1150813225.947 902 192.168.1.23 TCP_MISS/302
567
GET http://www.newscientist.com/ - NONE/-
text/html
No parent was used.
Note: there is a bug in current Squid versions not
always logging the
hierarchy field correct... Squid Bug #1605.
Regards
Henrik
Thanks for information |
Sir
what i have to do now did i go back to test old
versions what is best as your advice
some told the STABLE7 is best
please advice
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com |
|
| Back to top |
|
 |
Henrik Nordstrom *nix forums Guru
Joined: 01 Feb 2005
Posts: 2377
|
Posted: Wed Jun 21, 2006 11:02 am Post subject:
Re: peer weight is not working please help
|
|
|
ons 2006-06-21 klockan 00:50 -0700 skrev squid learner:
| Quote: |
Note: there is a bug in current Squid versions not
always logging the
hierarchy field correct... Squid Bug #1605.
Sir
what i have to do now did i go back to test old
versions what is best as your advice
some told the STABLE7 is best
please advice
|
2.5.STABLE14 is better.. if the logging troubles you then apply the
patch from Bug report #1605.
In a week or so there will be a 2.5.STABLE15 release including this
patch and a few other.
Regards
Henrik |
|
| Back to top |
|
 |
Chris Robertson *nix forums Guru
Joined: 01 Feb 2005
Posts: 373
|
Posted: Wed Jun 21, 2006 5:40 pm Post subject:
Re: peer weight is not working please help
|
|
|
squid learner wrote:
| Quote: |
I don't see a single successful request made through
a parent cache.
You need to figure out why the parent caches are not
passing you any
data. Round robin will bounce every request to a
different parent,
true, but it will not cause a request to canceled
before it is serviced.
Chris
Thanks Chris
I am not very much familer with all so i need help
all my parent are work fine if i use them direct in my
client browser
Is this client browser on the Squid machine? If not, then its very |
likely a routing problem on the Squid machine. What is the full output
of "squidclient -h proxy.jeel.com -p 8080 -v
http://www.newscientist.com/"? Let the command run to completion no
matter how long it takes.. Try the same with the other three, and post
your results. For what it's worth, I can pass traffic through
proxy.jeel.com (slowly), my connection to proxy.cyberia.net.sa is
refused, my connection to proxy.awalnet.net.sa eventually times out.
| Quote: | and about bug as explain by "Sir Henric
I dont no what to do do ire install squid or change
the version go back to STABLE6-6 or 7
Stick with 2.5STABLE14. The logging is not the cause of your trouble. |
Chris |
|
| Back to top |
|
 |
ashraf modi *nix forums beginner
Joined: 28 Dec 2005
Posts: 24
|
Posted: Fri Jun 23, 2006 6:26 am Post subject:
Re: peer weight is not working please help
|
|
|
| Quote: | Is this client browser on the Squid machine? If
not, then its very
likely a routing problem on the Squid machine.
Chris
Sir |
It is routing problem
now search try to search the remedy
as i show before i put all router in same lan
192.168.1.1<>192.168.1.2<>192.168.1.3 diff isp
the first proxy belongs to 1st router second proxy to
2nd router
Nd
add all three gate way to squid box:-
/etc/rc.d/rc.route
#! /bin/bash
# Default-Route file
#
while : ; do
route add default gw 192.168.1.1
route del default gw 192.168.1.2
route del default gw 192.168.1.3
sleep 1
route add default gw 192.168.1.2
route del default gw 192.168.1.3
route del default gw 192.168.1.1
sleep 1
route add default gw 192.168.1.3
route del default gw 192.168.1.2
route del default gw 192.168.1.1
sleep 1
done > /dev/null 2>&1 &
#end
====and then
/etc/rc.d/rc.default.route
route add (212.162.131.80( proxy ip)via default gw
192.168.1.1
' ' '' do second and third same as above
=====
so it left to second with out completing the req
now what i have to do is
i have to find some script to handle the time to not
to change the gw -up to 5 minuts or 10 minuts
====
what i want to do is near to multihoming with load
balance and fail over with 3 isp
So the one squid box take over all three isp
=====
Sir
please if you have some thing in this matter please
forward it to me
Thanks for cooperation
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com |
|
| Back to top |
|
 |
Chris Robertson *nix forums Guru
Joined: 01 Feb 2005
Posts: 373
|
Posted: Fri Jun 23, 2006 6:58 pm Post subject:
Re: peer weight is not working please help
|
|
|
squid learner wrote:
| Quote: | Is this client browser on the Squid machine? If
not, then its very
likely a routing problem on the Squid machine.
Chris
Sir
It is routing problem
now search try to search the remedy
as i show before i put all router in same lan
192.168.1.1<>192.168.1.2<>192.168.1.3 diff isp
the first proxy belongs to 1st router second proxy to
2nd router
Nd
add all three gate way to squid box:-
/etc/rc.d/rc.route
#! /bin/bash
# Default-Route file
#
while : ; do
route add default gw 192.168.1.1
route del default gw 192.168.1.2
route del default gw 192.168.1.3
sleep 1
route add default gw 192.168.1.2
route del default gw 192.168.1.3
route del default gw 192.168.1.1
sleep 1
route add default gw 192.168.1.3
route del default gw 192.168.1.2
route del default gw 192.168.1.1
sleep 1
done > /dev/null 2>&1 &
#end
So you end up with one default gateway (192.168.1.3). Junk it. |
| Quote: | ====and then
/etc/rc.d/rc.default.route
route add (212.162.131.80( proxy ip)via default gw
192.168.1.1
' ' '' do second and third same as above
=====
This is almost correct, but not quite. |
route add -host 212.162.131.80 gw 192.168.1.1
route add -host $PROXY2 gw 192.168.1.2
route add -host $PROXY3 gw 192.168.1.3
This is the simplest method of getting Squid to talk to the three ISPs.
All other off-LAN traffic (any DNS requests that the box makes itself,
external mail sent, etc.) will not be load balanced, it will be sent
over the (single) default gateway.. This should not be a problem, as
Squid should not be making DNS requests itself. Emulating multiple
default gateways is possible, (see
http://lartc.org/howto/lartc.rpdb.multiple-links.html or
http://linux-ip.net/html/adv-multi-internet.html), but might not be needed.
| Quote: | so it left to second with out completing the req
now what i have to do is
i have to find some script to handle the time to not
to change the gw -up to 5 minuts or 10 minuts
Only one default gw can be set. As I mentioned however, you can emulate |
having multiple default gateways by creating multiple default routes (as
seen in the links). Again, you might not need this added complexity.
| Quote: | ====
what i want to do is near to multihoming with load
balance and fail over with 3 isp
So the one squid box take over all three isp
=====
Sir
please if you have some thing in this matter please
forward it to me
Thanks for cooperation
Hope this sorts things out. |
Chris |
|
| Back to top |
|
 |
ashraf modi *nix forums beginner
Joined: 28 Dec 2005
Posts: 24
|
Posted: Mon Jun 26, 2006 7:12 am Post subject:
Re: peer weight is not working please help
|
|
|
--- Chris Robertson <crobertson@gci.net> wrote:
| Quote: | squid learner wrote:
Is this client browser on the Squid machine? If
not, then its very
likely a routing problem on the Squid machine.
Chris
Sir
It is routing problem
now search try to search the remedy
as i show before i put all router in same lan
192.168.1.1<>192.168.1.2<>192.168.1.3 diff isp
the first proxy belongs to 1st router second proxy
to
2nd router
Nd
add all three gate way to squid box:-
/etc/rc.d/rc.default.route
route add (212.162.131.80( proxy ip)via default gw
192.168.1.1
' ' '' do second and third same as above
=====
This is almost correct, but not quite.
route add -host 212.162.131.80 gw 192.168.1.1
route add -host $PROXY2 gw 192.168.1.2
route add -host $PROXY3 gw 192.168.1.3
This is the simplest method of getting Squid to talk
to the three ISPs.
All other off-LAN traffic (any DNS requests that the
box makes itself,
external mail sent, etc.) will not be load balanced,
it will be sent
over the (single) default gateway.. This should not
be a problem, as
Squid should not be making DNS requests itself.
Emulating multiple
default gateways is possible, (see
http://lartc.org/howto/lartc.rpdb.multiple-links.html
or
http://linux-ip.net/html/adv-multi-internet.html),
but might not be needed.
so it left to second with out completing the req
now what i have to do is
i have to find some script to handle the time to
not
to change the gw -up to 5 minuts or 10 minuts
Only one default gw can be set. As I mentioned
however, you can emulate
having multiple default gateways by creating
multiple default routes (as
seen in the links). Again, you might not need this
added complexity.
Hope this sorts things
Chris
Sir |
thanks for your kind help
now i think it is perfect
here is the log
1151329961.443 495 192.168.1.105
TCP_REFRESH_HIT/200 1814 GET
http://www.7laa.com/weeb/images/index_041.jpg -
ROUNDROBIN_PARENT/proxy.cyberia.net.sa image/jpeg
1151329961.610 680 192.168.1.105
TCP_REFRESH_MISS/200 705 GET
http://xslt.alexa.com/site_stats/js/t/a? -
ROUNDROBIN_PARENT/proxy.jeel.com
application/x-javascript
1151329963.253 1076 192.168.1.105 TCP_MISS/200 7210
GET http://www.7laa.com/weeb/images/index_010.jpg -
ROUNDROBIN_PARENT/proxy.awalnet.net.sa image/jpeg
1151329965.376 436 192.168.1.105 TCP_MISS/000 0 GET
http://www.al-wed.com/bnr/dmo3ah_468_60.gif -
ROUNDROBIN_PARENT/proxy.cyberia.net.sa -
1151329965.420 182 192.168.1.105 TCP_MISS/000 0 GET
http://ads.7laa.com/banner.php? -
ROUNDROBIN_PARENT/proxy.jeel.com -
1151329965.429 199 192.168.1.105 TCP_MISS/000 0 GET
http://ads.7laa.com/banner.php? -
ROUNDROBIN_PARENT/proxy.awalnet.net.sa -
1151329965.762 3 192.168.1.105 TCP_MEM_HIT/200
468 GET http://ads.7laa.com/banner.php? - NONE/-
text/html
1151329968.220 665 192.168.1.105
TCP_REFRESH_HIT/200 21973 GET
http://www.anaqatari.com/ -
ROUNDROBIN_PARENT/proxy.cyberia.net.sa text/html
i will check it for some time with load of 50 clients
then inform you if any prob
thanks and thanks and thanks
by the way is there any way in squid to cach songs
audio video
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam
protection around
http://mail.yahoo.com
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com |
|
| Back to top |
|
 |
ashraf modi *nix forums beginner
Joined: 28 Dec 2005
Posts: 24
|
Posted: Mon Jun 26, 2006 12:04 pm Post subject:
Re: peer weight is working
|
|
|
--- squid learner <squidlearner@yahoo.com> wrote:
| Quote: | --- Chris Robertson <crobertson@gci.net> wrote:
squid learner wrote:
Is this client browser on the Squid machine? If
not, then its very
likely a routing problem on the Squid machine.
Chris
Sir
It is routing problem
now search try to search the remedy
as i show before i put all router in same lan
192.168.1.1<>192.168.1.2<>192.168.1.3 diff isp
the first proxy belongs to 1st router second
proxy
to
2nd router
Nd
add all three gate way to squid box:-
/etc/rc.d/rc.default.route
route add (212.162.131.80( proxy ip)via default
gw
192.168.1.1
' ' '' do second and third same as above
=====
This is almost correct, but not quite.
route add -host 212.162.131.80 gw 192.168.1.1
route add -host $PROXY2 gw 192.168.1.2
route add -host $PROXY3 gw 192.168.1.3
This is the simplest method of getting Squid to
talk
to the three ISPs.
All other off-LAN traffic (any DNS requests that
the
box makes itself,
external mail sent, etc.) will not be load
balanced,
it will be sent
over the (single) default gateway.. This should
not
be a problem, as
Squid should not be making DNS requests itself.
Emulating multiple
default gateways is possible, (see
http://lartc.org/howto/lartc.rpdb.multiple-links.html
or
http://linux-ip.net/html/adv-multi-internet.html),
but might not be needed.
so it left to second with out completing the req
now what i have to do is
i have to find some script to handle the time to
not
to change the gw -up to 5 minuts or 10 minuts
Only one default gw can be set. As I mentioned
however, you can emulate
having multiple default gateways by creating
multiple default routes (as
seen in the links). Again, you might not need
this
added complexity.
Hope this sorts things
Chris
Sir
thanks for your kind help
now i think it is perfect
here is the log
1151329961.443 495 192.168.1.105
TCP_REFRESH_HIT/200 1814 GET
http://www.7laa.com/weeb/images/index_041.jpg -
ROUNDROBIN_PARENT/proxy.cyberia.net.sa image/jpeg
1151329961.610 680 192.168.1.105
TCP_REFRESH_MISS/200 705 GET
http://xslt.alexa.com/site_stats/js/t/a? -
ROUNDROBIN_PARENT/proxy.jeel.com
application/x-javascript
1151329963.253 1076 192.168.1.105 TCP_MISS/200
7210
GET http://www.7laa.com/weeb/images/index_010.jpg -
ROUNDROBIN_PARENT/proxy.awalnet.net.sa image/jpeg
1151329965.376 436 192.168.1.105 TCP_MISS/000 0
GET
http://www.al-wed.com/bnr/dmo3ah_468_60.gif -
ROUNDROBIN_PARENT/proxy.cyberia.net.sa -
1151329965.420 182 192.168.1.105 TCP_MISS/000 0
GET
http://ads.7laa.com/banner.php? -
ROUNDROBIN_PARENT/proxy.jeel.com -
1151329965.429 199 192.168.1.105 TCP_MISS/000 0
GET
http://ads.7laa.com/banner.php? -
ROUNDROBIN_PARENT/proxy.awalnet.net.sa -
1151329965.762 3 192.168.1.105 TCP_MEM_HIT/200
468 GET http://ads.7laa.com/banner.php? - NONE/-
text/html
1151329968.220 665 192.168.1.105
TCP_REFRESH_HIT/200 21973 GET
http://www.anaqatari.com/ -
ROUNDROBIN_PARENT/proxy.cyberia.net.sa text/html
i will check it for some time with load of 50
clients
then inform you if any prob
thanks and thanks and thanks
by the way is there any way in squid to cach songs
audio video
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam
protection around
http://mail.yahoo.com
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam
protection around
http://mail.yahoo.com
|
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam
protection around
http://mail.yahoo.com
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com |
|
| Back to top |
|
 |
ashraf modi *nix forums beginner
Joined: 28 Dec 2005
Posts: 24
|
Posted: Tue Jun 27, 2006 5:15 am Post subject:
Re: peer weight is working (THANKS)
|
|
|
Sir Chris Robertson
Thankyou very much
It is working excellent
For this i search nearly 50 forums and nearly 10
months i was struggling
Thanks
Is it possible to cache (store) media songs and movies
--- Chris Robertson <crobertson@gci.net> wrote:
| Quote: | squid learner wrote:
Is this client browser on the Squid machine? If
not, then its very
likely a routing problem on the Squid machine.
Chris
Sir
It is routing problem
now search try to search the remedy
as i show before i put all router in same lan
192.168.1.1<>192.168.1.2<>192.168.1.3 diff isp
the first proxy belongs to 1st router second proxy
to
2nd router
Nd
add all three gate way to squid box:-
/etc/rc.d/rc.route
#! /bin/bash
# Default-Route file
#
while : ; do
route add default gw 192.168.1.1
route del default gw 192.168.1.2
route del default gw 192.168.1.3
sleep 1
route add default gw 192.168.1.2
route del default gw 192.168.1.3
route del default gw 192.168.1.1
sleep 1
route add default gw 192.168.1.3
route del default gw 192.168.1.2
route del default gw 192.168.1.1
sleep 1
done > /dev/null 2>&1 &
#end
So you end up with one default gateway
(192.168.1.3). Junk it.
====and then
/etc/rc.d/rc.default.route
route add (212.162.131.80( proxy ip)via default gw
192.168.1.1
' ' '' do second and third same as above
=====
This is almost correct, but not quite.
route add -host 212.162.131.80 gw 192.168.1.1
route add -host $PROXY2 gw 192.168.1.2
route add -host $PROXY3 gw 192.168.1.3
This is the simplest method of getting Squid to talk
to the three ISPs.
All other off-LAN traffic (any DNS requests that the
box makes itself,
external mail sent, etc.) will not be load balanced,
it will be sent
over the (single) default gateway.. This should not
be a problem, as
Squid should not be making DNS requests itself.
Emulating multiple
default gateways is possible, (see
http://lartc.org/howto/lartc.rpdb.multiple-links.html
or
http://linux-ip.net/html/adv-multi-internet.html),
but might not be needed.
so it left to second with out completing the req
now what i have to do is
i have to find some script to handle the time to
not
to change the gw -up to 5 minuts or 10 minuts
Only one default gw can be set. As I mentioned
however, you can emulate
having multiple default gateways by creating
multiple default routes (as
seen in the links). Again, you might not need this
added complexity.
====
what i want to do is near to multihoming with load
balance and fail over with 3 isp
So the one squid box take over all three isp
=====
Sir
please if you have some thing in this matter please
forward it to me
Thanks for cooperation
Hope this sorts things out.
Chris
|
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com |
|
| Back to top |
|
 |
Chris Robertson *nix forums Guru
Joined: 01 Feb 2005
Posts: 373
|
Posted: Tue Jun 27, 2006 8:34 pm Post subject:
Re: peer weight is working (THANKS)
|
|
|
squid learner wrote:
| Quote: | Sir Chris Robertson
Thankyou very much
It is working excellent
For this i search nearly 50 forums and nearly 10
months i was struggling
Thanks
Is it possible to cache (store) media songs and movies
Glad to hear it's working for you. |
That depends on how the songs and movies are delivered. If they are
just web objects, and the cacheability engine
(http://www.ircache.net/cgi-bin/cacheability.py) labels them as
cacheable, then yes. You might have to adjust your maximum_object_size
(in squid.conf) as the default is somewhere around 4MB. If they are
streamed... I don't think such a thing is likely.
Chris |
|
| Back to top |
|
 |
ashraf modi *nix forums beginner
Joined: 28 Dec 2005
Posts: 24
|
Posted: Thu Jun 29, 2006 6:55 am Post subject:
Re: peer weight is working (THANKS)
|
|
|
--- Chris Robertson <crobertson@gci.net> wrote:
| Quote: | squid learner wrote:
Sir Chris Robertson
Thankyou very much
It is working excellent
For this i search nearly 50 forums and nearly 10
months i was struggling
Thanks
Is it possible to cache (store) media songs and
movies
Glad to hear it's working for you.
That depends on how the songs and movies are
delivered. If they are
just web objects, and the cacheability engine
(http://www.ircache.net/cgi-bin/cacheability.py)
labels them as
cacheable, then yes. You might have to adjust your
maximum_object_size
(in squid.conf) as the default is somewhere around
4MB. If they are
streamed... I don't think such a thing is likely.
Chris
Thanks again |
and a small informaition i need
as you see i give weight=1
to all peers
So if i want to give pref to some did i change it
to weight=3 for to be use more
then weight=2 next
and weight=1 for least
some places i saw the weight=70 or like this (did this
forward 70 req then go to weight=50
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com |
|
| Back to top |
|
 |
Chris Robertson *nix forums Guru
Joined: 01 Feb 2005
Posts: 373
|
Posted: Thu Jun 29, 2006 8:14 pm Post subject:
Re: peer weight is working (THANKS)
|
|
|
squid learner wrote:
| Quote: | --- Chris Robertson <crobertson@gci.net> wrote:
squid learner wrote:
Sir Chris Robertson
Thankyou very much
It is working excellent
For this i search nearly 50 forums and nearly 10
months i was struggling
Thanks
Is it possible to cache (store) media songs and
movies
Glad to hear it's working for you.
That depends on how the songs and movies are
delivered. If they are
just web objects, and the cacheability engine
(http://www.ircache.net/cgi-bin/cacheability.py)
labels them as
cacheable, then yes. You might have to adjust your
maximum_object_size
(in squid.conf) as the default is somewhere around
4MB. If they are
streamed... I don't think such a thing is likely.
Chris
Thanks again
and a small informaition i need
as you see i give weight=1
to all peers
So if i want to give pref to some did i change it
to weight=3 for to be use more
then weight=2 next
and weight=1 for least
some places i saw the weight=70 or like this (did this
forward 70 req then go to weight=50
|
Weight doesn't do what you think it does. From the old docs:
If more than one cache server has an object (based on the result of an
ICP query), Squid decides which cache to get the data from the cache
that responded fastest. If you want to prefer one cache over another,
you can add a weight value to the preferred cache's config line. Larger
values are preferred. Squid times how long each ICP request takes (in
milliseconds), and divides the time by the weight value, using the cache
with the smallest result. Your weight value should thus not be an
unreasonable value.
If you want to favor one cache_peer parent over an other, I think you
have to utilize carp-load-factor instead of round-robin, which likely
will require recompiling Squid. Run "squid -v" and look for --enable-carp.
Chris |
|
| Back to top |
|
 |
ashraf modi *nix forums beginner
Joined: 28 Dec 2005
Posts: 24
|
Posted: Tue Jul 04, 2006 6:58 am Post subject:
Re: peer weight about CARP
|
|
|
| Quote: | and a small informaition i need
as you see i give weight=1
to all peers
So if i want to give pref to some did i change it
to weight=3 for to be use more
then weight=2 next
and weight=1 for least
some places i saw the weight=70 or like this (did
this
forward 70 req then go to weight=50
Weight doesn't do what you think it does. From the
old docs:
If more than one cache server has an object (based
on the result of an
ICP query), Squid decides which cache to get the
data from the cache
that responded fastest. If you want to prefer one
cache over another,
you can add a weight value to the preferred cache's
config line. Larger
values are preferred. Squid times how long each ICP
request takes (in
milliseconds), and divides the time by the weight
value, using the cache
with the smallest result. Your weight value should
thus not be an
unreasonable value.
If you want to favor one cache_peer parent over an
other, I think you
have to utilize carp-load-factor instead of
round-robin, which likely
will require recompiling Squid. Run "squid -v" and
look for --enable-carp.
Chris
============================= |
sir
after --enable-carp in configuration
did i change this only
cache_peer proxy.jub.com parent 8080 7 no-query
round-robin weigt=1
===TO=======
cache_peer proxy.jub.com parent 8080 7 no-query carp
weight=1
Is this OK or need to do some thing more
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Thu Jan 08, 2009 12:58 pm | All times are GMT
|
|
Loans | Hotels in Krakow | Looking for Credit Cards? | Bad Credit Mortgages | Soul Calibur III Mp3
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|