Solved

Parameters of Varnish!

Posted on 2014-02-16
3
140 Views
Last Modified: 2014-12-22
Hi All,

At present, I have 02 Varnish Caching Server with the information spec:

- Server Caching 1:
CPU: Six-Core (24CPUs)
RAM: 16GB
HDD: 02 x 300 (Raid 1) SAS 15K Rpm, IOPS: 3Gbs

- Server Caching 2:
CPU: Quad-Core (16CPUs)
RAM: 16GB
HDD: 02 x 250 (Raid 1) SATA 7.2K Rpm

My questions:
1. About threads for each server above: (/etc/sysconfig/varnish)
    + theard_pools for each server? (someone who set for this parameter = 2)
    + theard_min_pools = ? (default 100)
    + theard_max_pools = ? (default 1000)
   + thread_pool_add_delay = ? (default = 3)

2. If server has more than 32GBRAM, which is the better "Malloc OR Storage"? Please give me your advices about this issue.

3.Other Parameters: (/etc/varnish/default.vcl)
        .max_connections = 1024; (if server has 20K concurrent user, this patameter?)
        .saintmode_threshold = 20; (please give me your advices)
        .first_byte_timeout = 300s; (please give me your advices)

Thanks in advance,

LDVHAI.
0
Comment
Question by:ldvhai
3 Comments
 
LVL 47

Expert Comment

by:dlethe
ID: 39863981
This is an awful config.  All that CPU power and each system has 2 whole disk drives each?  The second one even uses a pair of crappy SATA drives that cost all of $25.00 for the manufacturer to make?

Get rid of all those extra cores and invest in updating the disk drives.  You'll be at 1% CPU utilization and 100% disk utilization otherwise.   Add more HDDs, go a pair of RAID1s or a RAID1, or even a pair of SSDs.

P.S. Don't use any fake raid controller embedded on the motherboard.  Use the native LINUX md driver.  That will do read load balancing.  The fakeraid chip sets won't. so you'll leave 50% of the read performance on the table otherwise.
0
 
LVL 61

Accepted Solution

by:
gheist earned 500 total points
ID: 39868904
15000 rpm = 250 IOps
RAID0 and booting from USB stick would double that.

What network card? 100Mbps half duplex?
0
 
LVL 2

Author Comment

by:ldvhai
ID: 39869038
Hi Gheist,

The Network card on my system is 1000Mbps & Full Duplex

I didn't understand the mean:

"15000 rpm = 250 IOps
RAID0 and booting from USB stick would double that.
"

Please explain me this issue.

Thanks so much.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now