View Single Post
Old 15th October 2005, 19:07
themachine themachine is offline
Senior Member
Join Date: Oct 2005
Location: Texas, USA
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts

Originally Posted by matehortua
i want to know what are the hardware prerequisites for a server that is using ISPconfig

to be more precise how do i make an analisys of the "work" my server does (traffic, ram, HD, swap, proccesor load etc...) whit any new (domain DNS, host web, mail users ) and what would be a good HWconfig.

This isn't all that easy to determine without testing. For most vhoster's I would say that hard drive space is the biggest requirement. Adding RAM and upgrading CPU is quite easy down the road. I see many customers hosting 1500+ sites on less than: 80G IDE hard drive, 1024MB RAM, AMD XP3000+ CPU. All standard desktop hardware which is fairly cheap to get a config like that. Personally, if your doing this as a business I would put your money into SCSI RAID for the hard disks, or if not... please maintain a solid backup solution. Hosters don't realize that IDE drives don't last long when your maxing them out all day, every day. BACKUP!!!!! CONSISTENT AND TESTED BACKUPS!!!!


SAR: Sar is an excellent utility for everything. It runs cron jobs at 10 minute intervals to give you an idea what load was on the server at that time, and catalogs them by day.

# sar

00:00:01  cpu %usr  %sys  %nice  %idle									_cpu_
00:10:01  all	2	 0	  0	 98
00:20:01  all	2	 0	  0	 98
00:30:01  all	0	 0	  0	100
00:40:01  all	2	 0	  0	 98
00:50:01  all	2	 0	  0	 98
01:00:01  all	0	 0	  0	100

# sar -p

00:00:01   pagein/s pageout/s	 swapin/s swapout/s		 fork/s	  _page_
00:10:01	   4.47	 40.12		 0.00	  0.00		   0.39
00:20:01	   0.01	 35.91		 0.00	  0.00		   0.29
00:30:01	   0.02	 32.86		 0.00	  0.00		   0.22
00:40:01	   1.66	 43.78		 0.00	  0.00		   0.54
00:50:01	   2.71	 28.13		 0.04	  0.00		   0.27
01:00:01	   0.00	 33.20		 0.00	  0.00		   0.23

# sar -r

00:00:01  memtot memfree buffers   cached  slabmem	  swptot swpfree  _mem_
00:10:01	503M	 15M	 47M	 154M	   0M	   1027M	953M
00:20:01	503M	 19M	 47M	 153M	   0M	   1027M	953M
00:30:01	503M	 17M	 48M	 154M	   0M	   1027M	953M
00:40:01	503M	 10M	 49M	 156M	   0M	   1027M	953M
00:50:01	503M	 10M	 50M	 159M	   0M	   1027M	953M
01:00:01	503M	  7M	 51M	 160M	   0M	   1027M	953M

# sar --help
sar: invalid option -- -
usage: sar [-flags] t [n]			  or
	   sar [-flags] [-s hh:mm] [-e hh:mm] [-i sec] [-n day# | -f file]
		-A	  all flags
		-S	  time-stamp for every output-line
		-u	  cpu (default flag)
		-P	  process load
		-d	  disk
		-D	  disk-partition
		-r	  memory & swap
		-p	  paging & swapping
		-I	  interrupts
		-v	  kernel-resources
		-y	  tty activity
		-l	  net-interf (general)
		-L	  net-interf (errors)
		-w	  ip   v4	(general)
		-W	  ip   v4	(errors)
		-t	  tcp  v4	(general)
		-T	  tcp  v4	(errors)
		-U	  udp  v4
		-m	  icmp v4	(general)
		-M	  icmp v4	(per type)
		-g	  ip   v6	(general)
		-G	  ip   v6	(errors)
		-j	  tcp  v6	(general)
		-h	  udp  v6
		-k	  icmp v6	(general)
		-K	  icmp v6	(per type)
		-N	  nfs		(general)
		-E	  nfs		(errors)
		-V	  nfs		(server)
		-R	  nfs-rpc	(%calls)

You can even specify the DAY/HOUR/MINUTE.  So if your server crashed at say 12:45 on the 10th of this month, you could:

# sar -s 12:30 -n 10

Linux  2.4.27  #1 Wed Apr 6 10:05:14 CDT 2005  i686  10/10/2005

12:30:01  cpu %usr  %sys  %nice  %idle									_cpu_
12:40:01  all	2	 0	  0	 98
12:50:02  all	2	 0	  0	 98
13:00:01  all	0	 0	  0	100

IPTRAF: Iptraf is a great utility for network traffic monitoring. This will give you an idea of how much bandwidth you are taking in/putting out in a kb/s format.
Reply With Quote