LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-02-2007, 01:48 AM   #1
adam_blackice
Member
 
Registered: Apr 2006
Location: /*Egypt */ //cairo
Distribution: Ubuntu 7.04 , SLED 10 , Fedora , RHEL 5
Posts: 312

Rep: Reputation: 32
question about squid


hello all

am a server admin. in aweb hosting company ...,

i have installed squid and i configured it but i want to know if i have to put the ip address of the server in http_port option or not ? i made it with the port only 8080 that is enough ?

and how can i measure the performance of the squid ?..

Thanx
 
Old 08-02-2007, 07:51 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
You don't need the IP address. In mine, I have: http_port 3128

Performance in what way? Are you trying to see if your users have reduced access times for pages in the cache? Are you checking whether your overall network bandwidth usage is less?

Last edited by gilead; 08-02-2007 at 07:52 PM.
 
Old 08-02-2007, 08:12 PM   #3
adam_blackice
Member
 
Registered: Apr 2006
Location: /*Egypt */ //cairo
Distribution: Ubuntu 7.04 , SLED 10 , Fedora , RHEL 5
Posts: 312

Original Poster
Rep: Reputation: 32
thanx for your replay u used port : http_port 3128 but i use 8080 that makes different


simply i said that i want to make http caching to cache the requested pages for the users on the web server how that could be done ? and how i determine the performance of caching process

thanks for u
 
Old 08-02-2007, 11:21 PM   #4
gani
Member
 
Registered: Jun 2004
Location: Metro Manila, Philippines
Distribution: Linuxmint, Slackware
Posts: 356

Rep: Reputation: 34
If you want squid to be transparent to your clients bind it only at 127.0.0.1

Code:
http_port 127.0.0.1:3128 transparent
If you want it non-transparent, bind it at your gateway's internal NIC's IP. I'm sure to be prudent, we don't want squid as well running on our gateway's external/public NIC.

Squid automatically store objects on its cache, both in RAM and disk and to achieve performance, you can tune it and it's self documented in the squid.conf or you may refer to squd-cache.org WiKi.

Code:
#  TAG: cache_mem       (bytes)
#       NOTE: THIS PARAMETER DOES NOT SPECIFY THE MAXIMUM PROCESS SIZE.
#       IT ONLY PLACES A LIMIT ON HOW MUCH ADDITIONAL MEMORY SQUID WILL
#       USE AS A MEMORY CACHE OF OBJECTS. SQUID USES MEMORY FOR OTHER
#       THINGS AS WELL. SEE THE SQUID FAQ SECTION 8 FOR DETAILS.
#
#       'cache_mem' specifies the ideal amount of memory to be used
#       for:
#               * In-Transit objects
#               * Hot Objects
#               * Negative-Cached objects
#
#       Data for these objects are stored in 4 KB blocks.  This
#       parameter specifies the ideal upper limit on the total size of
#       4 KB blocks allocated.  In-Transit objects take the highest
#       priority.
#
#       In-transit objects have priority over the others.  When
#       additional space is needed for incoming data, negative-cached
#       and hot objects will be released.  In other words, the
#       negative-cached and hot objects will fill up any unused space
#       not needed for in-transit objects.

#       If circumstances require, this limit will be exceeded.
#       Specifically, if your incoming request rate requires more than
#       'cache_mem' of memory to hold in-transit objects, Squid will
#       exceed this limit to satisfy the new requests.  When the load
#       decreases, blocks will be freed until the high-water mark is
#       reached.  Thereafter, blocks will be used to store hot
#       objects.
#
#Default:
# cache_mem 8 MB
-----------
 
Old 08-03-2007, 06:34 AM   #5
adam_blackice
Member
 
Registered: Apr 2006
Location: /*Egypt */ //cairo
Distribution: Ubuntu 7.04 , SLED 10 , Fedora , RHEL 5
Posts: 312

Original Poster
Rep: Reputation: 32
what is the mean of the squid being transparent ?.

and if i want to make HTTP caching on the web server am going to use 127.0.0.1:3128 instead of port 8080 which is reserved for http

and thanks very Much
 
Old 08-03-2007, 10:35 PM   #6
gani
Member
 
Registered: Jun 2004
Location: Metro Manila, Philippines
Distribution: Linuxmint, Slackware
Posts: 356

Rep: Reputation: 34
Reverse proxy is maybe what you are trying to setup.

http://wiki.squid-cache.org/SquidFaq/ReverseProxy

--------
 
Old 08-05-2007, 06:29 PM   #7
adam_blackice
Member
 
Registered: Apr 2006
Location: /*Egypt */ //cairo
Distribution: Ubuntu 7.04 , SLED 10 , Fedora , RHEL 5
Posts: 312

Original Poster
Rep: Reputation: 32
thanx
but
and what about the port 3128 instead of the default port 80 ?
 
Old 08-05-2007, 09:23 PM   #8
gani
Member
 
Registered: Jun 2004
Location: Metro Manila, Philippines
Distribution: Linuxmint, Slackware
Posts: 356

Rep: Reputation: 34
Quote:
Excerpt from the squid WiKi:

An accelerator caches incoming requests for outgoing data (i.e., that which you publish to the world). It takes load away from your HTTP server and internal network. You move the server away from port 80 (or whatever your published port is), and substitute the accelerator, which then pulls the HTTP data from the "real" HTTP server (only the accelerator needs to know where the real server is). The outside world sees no difference (apart from an increase in speed, with luck).
If it would accelerate a public web server accessed from outside, this is a reverse proxy or http accelerator and it uses the standard http port 80.

Then if its to accelerate or cache in http requests going outside to the internet from within a local network, this is a forward proxy that normally uses port 3128.

---------
 
Old 08-06-2007, 06:37 AM   #9
adam_blackice
Member
 
Registered: Apr 2006
Location: /*Egypt */ //cairo
Distribution: Ubuntu 7.04 , SLED 10 , Fedora , RHEL 5
Posts: 312

Original Poster
Rep: Reputation: 32
thanksSSSSSSSSSSSSSSSSSSSSSss

you are very helpful and the last thanks question iam going to set up the squid on my web server so itis better to make the ip of the option http_port = 127.0.0.1 or the ip of the server
 
Old 08-06-2007, 10:57 PM   #10
gani
Member
 
Registered: Jun 2004
Location: Metro Manila, Philippines
Distribution: Linuxmint, Slackware
Posts: 356

Rep: Reputation: 34
Quote:
iam going to set up the squid on my web server so itis better to make the ip of the option http_port = 127.0.0.1 or the ip of the server
In this case I think you will have to bind it at your server's IP. You try figuring it out.

Welcome!

-------
 
Old 08-07-2007, 01:48 AM   #11
adam_blackice
Member
 
Registered: Apr 2006
Location: /*Egypt */ //cairo
Distribution: Ubuntu 7.04 , SLED 10 , Fedora , RHEL 5
Posts: 312

Original Poster
Rep: Reputation: 32
thankssssss
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
squid question ilnli Linux - Software 2 11-13-2005 11:54 PM
Squid Question offaxis Linux - Networking 1 09-27-2004 07:46 PM
Squid Question kemplej Linux - Networking 0 04-22-2004 04:28 PM
Squid Question cli_man Linux - Software 1 10-06-2003 10:57 PM
Squid question andresurzagasti Linux - Networking 1 09-13-2002 04:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration