This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

HD for Cache proxy

Hi there.
I have about 550 home user, which use an extensive usage in web surfing.
In order to accelerate the speed I have tried enabling the HTTP Caching.
It seems to work fine for a while, but after a day it start slowing down.
I'm having Dell server with 4 GB ram (Astaro 7.402) , and I don't see any problem with the CPU or Ram usage.
After consulting a bit, someone told me that it might be Read/Wright speed of the hard disk, and it would be good idea to apply dedicate fast disk just for the HTTP Caching.
Has anyone ever try it?
Is it possible to configure Astaro to use a dedicate disk fore just for HTTP Caching?
[:S]


This thread was automatically locked due to age.
Parents
  • The 'iostat' command might help you determine if the disk is overloaded.

    A 10k or 15k RPM drive, or multiple drives in raid 0 or 10 would probably be best if it is a disk bottleneck.

    Reducing the logging for the http proxy might help as well.

    1 or 2 people here have hacked Astaro to mount a separate disk for logging, the same could be done for cache, but it would void your support.

    Barry
  • Hi Barry and thanks alot.

    I'm getting "bash: iostat: command not found"

    Any idea why?
  • Have you checked to be sure that your hard disk controller has lots of buffer and battery-backed-write-back-cache as Barry suggested?
     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
  • Hi.

    Dell SAS 5/IR controller.
    8-port 3Gb/s Serial Attached SCSI (SAS) controller.

    The SAS controler seems OK to me.
    Also like I said, there is no problem in any Other situation like downloading files, streaming and other protocols, which working pretty fast[:S].
  • As you can see - it's quite a monster... [:)]


    Well, I disagree with BangkokBob - with 4 logical CPUs, the load average is totally acceptable.

    We had a problem with similar symptoms here... manifested by the ASL downloading files over and over and saturating our bandwidth.  We fixed it by a combination of deleting the download_* files in /var/storage/chroot-http/tmp, clearing the cache and rebooting, multiple times - eventually the downloads went away.

    I used iftop to establish the Astaro was pulling a lot of traffic from Akamai, which was an eye-opener, because the Mb/s figures on the home page of webadmin were massively wrong.  The Astaro was showing very little traffic on webadmin, yet our Cisco ASA firewall on the outside of the Astaro was showing 45mbps of traffic - the moment the proxy was disabled the traffic went away, when it was enabled, it came back within seconds.

    I pored through the http logs but came to the conclusion that whatever it was, was not being logged or was not restarting at the request of a proxy client.

    Regards,
    Stuart
  • We're HP bigots, so know very little about Dell, but I expect the approach Dell uses would be simikar to HP and IBM.  In my experience, a RAID adapter with battery-backed-write-back-cache costs $100 to $300 more than one without.  The word "battery" doesn't appear in the documentation for your adapter, so I suspect that it's not what Barry suggested.

    CHeers - Bob
     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
  • Hi Bob.

    Well, I guess you right.

    I'll might consider buying a better SAS adapter, and 15K HD.

    From your experience, how much battery-backed controller would excel the performance?
    Since I don't see too much pressure on the HD, and all other services seems to work very well, would it speed up the use of the cache?

    It would be quite annoying spending money, just to find out that the http cache performance still the same...
  • I don't know well enough how to read the information Barry requested.  With a BBWBC, the controller will move on to a new read/write sooner because it doesn't need to wait for a write confirmation.  Storage Advisors  Blog Archive  Write-back cache: Battery vs Disk

    I still think you could benefit from reserving part of the outbound bandwidth for surfing requests.  It's possible that you have a problem that can't be solved, but I would try reserving 128KB for each of the four DSL adapters.

    Cheers - Bob
     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
  • Hi, have you talked to Astaro or your reseller yet?

    Barry
  • Hi, have you talked to Astaro or your reseller yet?

    Barry


    Yes.

    It was there suggestion that it might be something to do with HD speed and I should try either faster HD or Raid 0.
  • If you're adding another drive, since you don't need more storage, I would think that RAID 10 would give you the most benefit.

    Cheers - Bob
     
    Sophos UTM Community Moderator
    Sophos Certified Architect - UTM
    Sophos Certified Engineer - XG
    Gold Solution Partner since 2005
    MediaSoft, Inc. USA
  • If you're adding another drive, since you don't need more storage, I would think that RAID 10 would give you the most benefit.

    Cheers - Bob


    Raid 0 - minimum 2 Disks. (have to by only one more)
    Raid 10 minimum 4 Disks. (Have to by at least 3 more).

    Of course - Raid 10 Is fault tolerance, which Raid 0 isn't.
    Beside, my controller doesn't support Raid 10.
Reply
  • If you're adding another drive, since you don't need more storage, I would think that RAID 10 would give you the most benefit.

    Cheers - Bob


    Raid 0 - minimum 2 Disks. (have to by only one more)
    Raid 10 minimum 4 Disks. (Have to by at least 3 more).

    Of course - Raid 10 Is fault tolerance, which Raid 0 isn't.
    Beside, my controller doesn't support Raid 10.
Children