From owner-freebsd-questions@FreeBSD.ORG Sun Jan 1 18:56:18 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EA59C16A41F for ; Sun, 1 Jan 2006 18:56:17 +0000 (GMT) (envelope-from scrappy@hub.org) Received: from hub.org (hub.org [200.46.204.220]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6AE4A43D58 for ; Sun, 1 Jan 2006 18:56:17 +0000 (GMT) (envelope-from scrappy@hub.org) Received: from localhost (unknown [200.46.204.144]) by hub.org (Postfix) with ESMTP id D66DF62C877; Sun, 1 Jan 2006 14:56:16 -0400 (AST) Received: from hub.org ([200.46.204.220]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 40644-07; Sun, 1 Jan 2006 14:56:16 -0400 (AST) Received: from ganymede.hub.org (blk-222-82-85.eastlink.ca [24.222.82.85]) by hub.org (Postfix) with ESMTP id 24CA862C854; Sun, 1 Jan 2006 14:56:16 -0400 (AST) Received: by ganymede.hub.org (Postfix, from userid 1000) id F1B1739ECE; Sun, 1 Jan 2006 14:56:15 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by ganymede.hub.org (Postfix) with ESMTP id F0B48390E4; Sun, 1 Jan 2006 14:56:15 -0400 (AST) Date: Sun, 1 Jan 2006 14:56:15 -0400 (AST) From: "Marc G. Fournier" To: Francisco Reyes In-Reply-To: Message-ID: <20060101145325.X1088@ganymede.hub.org> References: <20051227211433.J1087@ganymede.hub.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by amavisd-new at hub.org Cc: freebsd-questions@freebsd.org Subject: Re: "Load Balancing": How Busy are the servers? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Jan 2006 18:56:18 -0000 For all the technology, I was kinda hoping for some 'scientific formula' :) Now, I really hate to ask, but how do you use vmstat to get a feel for how busy the disk subsystem is? What are you looking for? On Sat, 31 Dec 2005, Francisco Reyes wrote: > Marc G. Fournier writes: > >> 1. What variables on a server should be monitored to determine how busy a >> server is? > > I am a fairly new sysadmin.. who inheritted nearly 20 machines, so take my > comments with a gain of salt. Before that the most I ever had was 7, mostly > DB, FreeBSD machines :-) .. and.. Hi Marc. :) > > I think it comes down to primarily 3 factors > * RAM > * CPU > * DISK > > If you are hitting Swap, you are either running too many programs/services or > too many users. > > Same for CPU > > Disk are different in that the same number of disks can perform different > based on what raid controller and what type of RAID. > > I use top and load average to determine if a machine is up to capacity in > memory/cpu. > > I use vmstat to determine if the disk subsystem is falling behind. > > BIG NOTE: The one thing that I have yet to really pay much attention is the > network performance. Fortunately we just hired someone who has significantly > more experience on that area. :-) > > >> 2. Are there any tools that I can run to give me a point in time "summary" >> of how busy a server is based on these several factors? > > I think there are lots of tools. Some vary from SNMP capture/graphing, to > custom made tools done in-house. I think it's a combination of how difficult > it is to setup vs what you need to monitor. > At work we are just starting to roll out an SNMP tool. The new hire is > leading the effort so I am not very familiar with the setups.. the one thing > I see so far is that ultimately, there usually are things that one needs to > monitor that is unique to your organization and you need to either integrate > a program into the tool or do your own independant monitoring of that > particular resource. > > I think the ISP list may be a good resource since the needs of the average > user are different from ISPs/companies with numerous machines. >> Basically, I'd like to keep track of multiple servers and be able to say >> "this server is running >75% of capacity, time to upgrade or move things >> off of it" ... if its possible ... ? > > In my opinion, for the most part, the answer is yes. The problem is usually > how long it's going to take you to setup the environment to monitor the > servers. > > The program we went with was chosen because the new hire was familiar with > it, but a search on the archives for "monitoring tools" will give you a long > list of programs and opinions of which are easier. > > If I had the time, I think I would likely write my own tool. This way I will > be able to measure exactly what I want. Right now I thik we will cover most > basics with the tool we are going with, but will need to still do our own > custom apps to monitor a number of resources and metrics. > > > ---- Marc G. Fournier Hub.Org Networking Services (http://www.hub.org) Email: scrappy@hub.org Yahoo!: yscrappy ICQ: 7615664