Oreilly.Monitoring.with.Ganglia.Nov.2012.pdf

(11882 KB) Pobierz
956772067.009.png
956772067.010.png
Monitoring with Ganglia
Matt Massie, Bernard Li, Brad Nicholes,
and Vladimir Vuksan
Beijing
Cambridge
Farnham
Köln
Sebastopol
Tokyo
956772067.011.png 956772067.012.png 956772067.001.png 956772067.002.png 956772067.003.png 956772067.004.png 956772067.005.png 956772067.006.png
 
Monitoring with Ganglia
by Matt Massie, Bernard Li, Brad Nicholes, and Vladimir Vuksan
Copyright © 2013 Matthew Massie, Bernard Li, Brad Nicholes, Vladimir Vuksan. All rights reserved.
Printed in the United States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.
O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions
are also available for most titles ( http://my.safaribooksonline.com ) . For more information, contact our
corporate/institutional sales department: 800-998-9938 or corporate@oreilly.com .
Editors: Mike Loukides and Meghan Blanchette
Production Editor: Kara Ebrahim
Copyeditor: Nancy Wolfe Kotary
Proofreader: Kara Ebrahim
Indexer: Ellen Troutman-Zaig
Cover Designer: Karen Montgomery
Interior Designer: David Futato
Illustrator: Kara Ebrahim
November 2012:
First Edition.
Revision History for the First Edition:
2012-11-7 First release
Nutshell Handbook, the Nutshell Handbook logo, and the O’Reilly logo are registered trademarks of
O’Reilly Media, Inc. Monitoring with Ganglia , the image of a Porpita pacifica , and related trade dress are
trademarks of O’Reilly Media, Inc.
Many of the designations used by manufacturers and sellers to distinguish their products are claimed as
trademarks. Where those designations appear in this book, and O’Reilly Media, Inc., was aware of a
trademark claim, the designations have been printed in caps or initial caps.
While every precaution has been taken in the preparation of this book, the publisher and authors assume
no responsibility for errors or omissions, or for damages resulting from the use of the information con-
tained herein.
ISBN: 978-1-449-32970-9
[LSI]
1352302880
Table of Contents
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix
1.
Introducing Ganglia . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
It’s a Problem of Scale
1
Hosts ARE the Monitoring System
2
Redundancy Breeds Organization
3
Is Ganglia Right for You?
4
gmond: Big Bang in a Few Bytes
4
gmetad: Bringing It All Together
7
gweb: Next-Generation Data Analysis
8
But Wait! That’s Not All!
9
2.
Installing and Configuring Ganglia . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Installing Ganglia
11
gmond
11
gmetad
14
gweb
16
Configuring Ganglia
20
gmond
20
gmetad
33
gweb
38
Postinstallation
40
Starting Up the Processes
41
Testing Your Installation
41
Firewalls
41
3.
Scalability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Who Should Be Concerned About Scalability?
43
gmond and Ganglia Cluster Scalability
43
gmetad Storage Planning and Scalability
44
RRD File Structure and Scalability
44
iii
956772067.007.png 956772067.008.png
Zgłoś jeśli naruszono regulamin