Showing posts with label Systems Engineering. Show all posts
Showing posts with label Systems Engineering. Show all posts

Friday, May 28, 2010

Managing 100s of Linux and Solaris machines with clusterit

I’m copying this through Blog O’ Matty, I will post my test for the app as soon as I get time ! But since it’s important and want to postpone it.

 

“

I use numerous tools to perform my SysAdmin duties. One of my favorite tools it clusterit, which is a suite of programs that allows you to run commands across one or more machines in parallel. To begin using the awesomeness that is clusterit, you will first need to download and install the software. This is as easy as:

$ wget http://prdownloads.sourceforge.net/clusterit/clusterit-2.5.tar.gz

$ tar xfvz clusterit*.gz

$ cd clusterit* && ./configure –prefix=/usr/local/clusterit && make && make install

Once the software is installed, you should have a set of binaries and manual pages in /usr/local/clusterit. To use the various tools in the clusterit/bin directory, you will first need to create one or more cluster files. Each cluster file contains a list of hosts you want to manage as a group, and each host is separated by a newline. Here is an example:

$ cat servers
foo1
foo2
foo3
foo4
foo5

The cluster file listed above contains 5 servers named foo1 – foo5. To tell clusterit you want to use this list of hosts, you will need to export the file via the $CLUSTER environment variable:

$ export CLUSTER=/home/matty/clusters/servers

Once you specify the list of hosts you want to use in the $CLUSTER variable, you can start using the various tools. One of the handiest tools is dsh, which allows you to run commands across the hosts in parallel:

$ dsh uptime

foo1  :   2:17pm  up 8 day(s), 23:37,  1 user,  load average: 0.06, 0.06, 0.06
foo2 : 2:17pm up 8 day(s), 23:56, 0 users, load average: 0.03, 0.03, 0.02
foo3 : 2:17pm up 7 day(s), 23:32, 1 user, load average: 0.27, 2.04, 3.21
foo4 : 2:17pm up 7 day(s), 23:33, 1 user, load average: 3.98, 2.07, 0.96
foo5 : 2:17pm up 5:06, 0 users, load average: 0.08, 0.09, 0.09


In the example above I ran the uptime command across all the servers listed in file that is referenced by the CLUSTER variable! You can also do more complex activities through dsh:



$ dsh ‘if uname -a | grep SunOS >/dev/null; then echo Solaris; fi’


foo1 : Solaris


foo2 : Solaris


foo3 : Solaris


foo4 : Solaris


foo5 : Solaris



This example uses dsh to run uname across a batch of servers, and prints the string Solaris if the keyword “SunOS” is found in the uname output. Clusterit also comes with a distributed scp command called pcp, which you can use to copy a file to a number of hosts in parallel:



$ pcp /etc/services /tmp



services                   100%  616KB 616.2KB/s   00:00
services 100% 616KB 616.2KB/s 00:00
services 100% 616KB 616.2KB/s 00:00
services 100% 616KB 616.2KB/s 00:00
services 100% 616KB 616.2KB/s 00:00


$ openssl md5 /etc/services


MD5(/etc/services)= 14801984e8caa4ea3efb44358de3bb91



$ dsh openssl md5 /tmp/services


foo1 : MD5(/tmp/services)= 14801984e8caa4ea3efb44358de3bb91


foo2 : MD5(/tmp/services)= 14801984e8caa4ea3efb44358de3bb91


foo3 : MD5(/tmp/services)= 14801984e8caa4ea3efb44358de3bb91


foo4 : MD5(/tmp/services)= 14801984e8caa4ea3efb44358de3bb91


foo5 : MD5(/tmp/services)= 14801984e8caa4ea3efb44358de3bb91



In this example I am using pcp to copy the file /etc/services to each host, and then using dsh to create a checksum of the file that was copied. Clusterit also comes with a distributed top (dtop), distributed df (pdf) as well as a number of job control tools! If you are currently performing management operations using the old for stanza:



for i in `cat hosts`
do
ssh $host 'run_some_command'
done


You really owe it to yourself to set up clusterit. You will be glad you did!”

Saturday, May 8, 2010

Red Hat Enterprise Linux 6 Beta Now Available

If you didn’t hear it yet, Red Hat had announced its new major release to its customer yesterday evening.

 

 

Nothing impressive for me, however, we finally have RHEL6 on the stage !

Thursday, October 15, 2009

All what I do is part of the top 50 Jobs in the US, what about you?

I was surprised by an email forwarded by one of my colleagues that “Systems Engineering” is the best job in the US.

Yes, that was announced on CNNMoney recently and that does not stop there.. I found that I combine #1, #5 and #48 !!

Read on this article, and please let me know about you .

Saturday, September 12, 2009

Intel Nehalm is now mainstream with a radical overhaul in architecture

Intel finally brings its Nehalem architecture to its mainstream desktop PC line with today's Core i5/i7 and P55 chipset launch. In contrast to most previous launches, the chipset is actually a big deal this time around, marking as it does Intel's most radical overhaul of basic PC system architecture since the introduction of AGP.

Pre-Nehalm Era

image

Nehalm Core i5/i7

image

If you may have noticed, no more “North” and “South” bridges, only one ship called the “Platform Chipset” P55 and is now the only chipset besides the BIOS ship making Intel kind of analogues with AMD.

The GPU is now inside the CPU die .

Now the Question is, does that bring an added value in terms of performance?

In terms of Windows 7 and Gaming it is surprisingly worse according to the benchmarks !

Read on the details here on the Ars Technica article.

However the prior 5500 generation of Nehalm is bringing a performance boost of 500 times on the previous generation according to a white-paper from Intel, and 1000 times! in terms of virtualization performance if used in a special platform announced by an alliance of computing vendors including HP and Intel.

Waiting for other benchmarks for the Desktop platform specifically on Linux to see how it adds value and perform.

Thursday, September 10, 2009

This is quite clear Oracle! Thanks .

image

This is an advert that Oracle is placing in the Wall Street Journal on Thursday 10th September 2009. It has also hit many web sites, such as Yahoo Finance - Oracle page.

This might indicate that SUN SPARC and Solaris are not dead yet; however many big enterprises had already announced that they are phasing out SPARC/Solaris for the next version of there software packages.

IBM had unintentionally helped SUN and thus its future competitor: Oracle by buying: “Quick Transit” or “Transitive Corporation” which runs SPARC/Solaris binaries and applications including Oracle on Linux.

I have installed the Solaris version of Oracle 9 binaries for SPARC on RHEL 4.4 smoothly and as claimed, it worked even faster than Solaris on SPARC!

However, just one month after this, IMB acquired Transitive and stopped its production initially for 6 months. Then building it’s virtualization platform: PowerVM on it.

Now, PowerVM just helps you run Linux X86 apps on the Power Architecture of IBM, and that’s it!

Unless IBM releases this again for SPARC, it’d be doing good for SUN/Oracle.

Now let’s cross our fingers and watch if what proclaimed above will come true .

Friday, November 14, 2008

Hardware: USB 3.0 to Transfer 25GB in 70 Seconds

Hardware: USB 3.0 to Transfer 25GB in 70 Seconds: "SB 3.0 will be unveiled next Monday, and so far the new specs for the protocol look incredible, promising 25GB transfers in a mere 70 seconds. To put that in perspective, the same transfer would take 13.9 minutes with the current USB 2.0 protocol and 9.3 hours on USB 1.0. Looks like the future of wired syncs and backups is bright and blazing."

Sunday, October 26, 2008

Thursday, October 2, 2008

Double your broadband speed with the BT I-Plate

Double your broadband speed with the BT I-Plate Tool that costs just £12 and improves broadband speeds forever.

One week on though and we have to say we're mightily pleased. We're now averaging 1.4Mbps (that's over a three-fold increase) and our results are encouragingly consistent.

: TechRadar

This is my next "buy" gadget for the end of this year .

read more | digg story