Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
CentOS High Performance

You're reading from   CentOS High Performance Create high availability clusters to enhance system performance using CentOS 7

Arrow left icon
Product type Paperback
Published in Jan 2016
Publisher
ISBN-13 9781785288685
Length 146 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Gabriel C√°nepa Gabriel C√°nepa
Author Profile Icon Gabriel C√°nepa
Gabriel C√°nepa
Arrow right icon
View More author details
Toc

Table of Contents (8) Chapters Close

Preface 1. Cluster Basics and Installation on CentOS 7 FREE CHAPTER 2. Installing Cluster Services and Configuring Network Components 3. A Closer Look at High Availability 4. Real-world Implementations of Clustering 5. Monitoring the Cluster Health 6. Measuring and Increasing Performance Index

Monitoring the node status

As you can guess, perhaps the first thing that you always need to check is the status of each node—whether they are online or offline. Otherwise, there is little point in proceeding with further availability and performance analysis.

If you have a network management system (such as Zabbix or Nagios) server, you can easily monitor the status of your cluster members and receive alerts when they are unreachable. If not, you must come up with a supplementary solution of your own (which may not be as effective or errorproof) that you can use to detect when a node has gone offline.

One such solution is a simple bash script (we will name it pingreport.sh, save it inside /root/scripts, and make it executable with chmod +x /root/scripts/pingreport.sh) which will periodically ping your nodes from another host and report via an e-mail to the system administrator if one of them is offline in order for you to take appropriate action. The following shell script does just...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image