42
We are watching us HA monitoring setup Martin Čaj Linux system administrator SUSE LINUX, s.r.o. Prague Czech republic [email protected]

We are watching us - LinuxDays · 11 Services implementing HA on their own Prefer the integrated solution For example Mysql, DHCP, Named Services can run independent on the node Keep

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: We are watching us - LinuxDays · 11 Services implementing HA on their own Prefer the integrated solution For example Mysql, DHCP, Named Services can run independent on the node Keep

We are watching usHA monitoring setup

Martin Čaj

Linux system administrator

SUSE LINUX, s.r.o.

Prague

Czech republic

[email protected]

Page 2: We are watching us - LinuxDays · 11 Services implementing HA on their own Prefer the integrated solution For example Mysql, DHCP, Named Services can run independent on the node Keep

What we are watching ?

Page 3: We are watching us - LinuxDays · 11 Services implementing HA on their own Prefer the integrated solution For example Mysql, DHCP, Named Services can run independent on the node Keep

3

Server rooms

Page 4: We are watching us - LinuxDays · 11 Services implementing HA on their own Prefer the integrated solution For example Mysql, DHCP, Named Services can run independent on the node Keep

4

Server rooms

Page 5: We are watching us - LinuxDays · 11 Services implementing HA on their own Prefer the integrated solution For example Mysql, DHCP, Named Services can run independent on the node Keep

5

• 3 locations in Europe and USA

• 520 hosts

• 5525 services totally

• 1787 are passive checks

What do we really have.

Page 6: We are watching us - LinuxDays · 11 Services implementing HA on their own Prefer the integrated solution For example Mysql, DHCP, Named Services can run independent on the node Keep

Introduction to monitoring and HA

Page 7: We are watching us - LinuxDays · 11 Services implementing HA on their own Prefer the integrated solution For example Mysql, DHCP, Named Services can run independent on the node Keep

7

We are using Open Source projects

Page 8: We are watching us - LinuxDays · 11 Services implementing HA on their own Prefer the integrated solution For example Mysql, DHCP, Named Services can run independent on the node Keep

8

We are using Open Source projects

Page 9: We are watching us - LinuxDays · 11 Services implementing HA on their own Prefer the integrated solution For example Mysql, DHCP, Named Services can run independent on the node Keep

9

High Availability tools

Page 10: We are watching us - LinuxDays · 11 Services implementing HA on their own Prefer the integrated solution For example Mysql, DHCP, Named Services can run independent on the node Keep

10

• The server setup two servers Processor 2x Intel(R) i3-2120 3.30GHz ( 2 cores with 4 Threads )

Memory 16GB RAM

1TB classical disk and 240 GB SSD disk

Stonith IPMI support on both server

HA software setup The pacemaker official web: http://clusterlabs.org/

The book sleha http://goo.gl/NskwNo

High availability setup for OpenVPN http://goo.gl/jpexTt

The cluster setup

Page 11: We are watching us - LinuxDays · 11 Services implementing HA on their own Prefer the integrated solution For example Mysql, DHCP, Named Services can run independent on the node Keep

11

Services implementing HA on their own Prefer the integrated solution

For example Mysql, DHCP, Named

Services can run independent on the node Keep running independent (but monitor)

For example ido2db, NSCA, Gearman, Apache

You can run more then one DRBD via Pacemaker Helps to run on different storage (SSD)

Helps with load balancing

Basic rules

Page 12: We are watching us - LinuxDays · 11 Services implementing HA on their own Prefer the integrated solution For example Mysql, DHCP, Named Services can run independent on the node Keep

Deep into the setup

Page 13: We are watching us - LinuxDays · 11 Services implementing HA on their own Prefer the integrated solution For example Mysql, DHCP, Named Services can run independent on the node Keep

13

• Simple, safe and elegant solution few lines in the config files

Services (using MySQL) are using the local Mysql database

• Link http://goo.gl/rNaR5Z

MySQL cluster replicationMaster <=> Master mode

Page 14: We are watching us - LinuxDays · 11 Services implementing HA on their own Prefer the integrated solution For example Mysql, DHCP, Named Services can run independent on the node Keep

14

• Apache Listen on all ip address (current and future) No need restart during the migration Data in /srv are changing during the migration

• NSCA Listen on all ip address (current and future) Check Result directory migrate with master server Be sure the hosts sending NSCA results to master all the time

• Gearmen See next slide ;-)

Independent running services

Page 15: We are watching us - LinuxDays · 11 Services implementing HA on their own Prefer the integrated solution For example Mysql, DHCP, Named Services can run independent on the node Keep

15

Row 1 Row 2 Row 3 Row 40

2

4

6

8

10

12

Column 1

Column 2

Column 3

Gearman

Page 16: We are watching us - LinuxDays · 11 Services implementing HA on their own Prefer the integrated solution For example Mysql, DHCP, Named Services can run independent on the node Keep

16

Gearman

Page 17: We are watching us - LinuxDays · 11 Services implementing HA on their own Prefer the integrated solution For example Mysql, DHCP, Named Services can run independent on the node Keep

17

Gearman

Page 18: We are watching us - LinuxDays · 11 Services implementing HA on their own Prefer the integrated solution For example Mysql, DHCP, Named Services can run independent on the node Keep

18

Gearman

Page 19: We are watching us - LinuxDays · 11 Services implementing HA on their own Prefer the integrated solution For example Mysql, DHCP, Named Services can run independent on the node Keep

19

Gearman

Page 20: We are watching us - LinuxDays · 11 Services implementing HA on their own Prefer the integrated solution For example Mysql, DHCP, Named Services can run independent on the node Keep

20

Gearman

Page 21: We are watching us - LinuxDays · 11 Services implementing HA on their own Prefer the integrated solution For example Mysql, DHCP, Named Services can run independent on the node Keep

21

Gearman

Page 22: We are watching us - LinuxDays · 11 Services implementing HA on their own Prefer the integrated solution For example Mysql, DHCP, Named Services can run independent on the node Keep

22

Gearman

Page 23: We are watching us - LinuxDays · 11 Services implementing HA on their own Prefer the integrated solution For example Mysql, DHCP, Named Services can run independent on the node Keep

23

• The Check_MK-Project Collection of extensions for the IT-Monitoring Its 100% Open-Source under the GNU GPL Using auto-detection for list of services on hosts Link http://goo.gl/9ZaHrM

Passive checks viacheck_MK

Page 24: We are watching us - LinuxDays · 11 Services implementing HA on their own Prefer the integrated solution For example Mysql, DHCP, Named Services can run independent on the node Keep

24

Check_MK

Page 25: We are watching us - LinuxDays · 11 Services implementing HA on their own Prefer the integrated solution For example Mysql, DHCP, Named Services can run independent on the node Keep

What happen if there is a problem ?

Page 26: We are watching us - LinuxDays · 11 Services implementing HA on their own Prefer the integrated solution For example Mysql, DHCP, Named Services can run independent on the node Keep

26

A problem in the server room

Page 27: We are watching us - LinuxDays · 11 Services implementing HA on their own Prefer the integrated solution For example Mysql, DHCP, Named Services can run independent on the node Keep

27

Monitoring issues...

Page 28: We are watching us - LinuxDays · 11 Services implementing HA on their own Prefer the integrated solution For example Mysql, DHCP, Named Services can run independent on the node Keep

28

Escalations

Page 29: We are watching us - LinuxDays · 11 Services implementing HA on their own Prefer the integrated solution For example Mysql, DHCP, Named Services can run independent on the node Keep

29

Escalations

Page 30: We are watching us - LinuxDays · 11 Services implementing HA on their own Prefer the integrated solution For example Mysql, DHCP, Named Services can run independent on the node Keep

30

Escalations

Page 31: We are watching us - LinuxDays · 11 Services implementing HA on their own Prefer the integrated solution For example Mysql, DHCP, Named Services can run independent on the node Keep

31

Escalations

Page 32: We are watching us - LinuxDays · 11 Services implementing HA on their own Prefer the integrated solution For example Mysql, DHCP, Named Services can run independent on the node Keep

Different ways to communicate

Page 33: We are watching us - LinuxDays · 11 Services implementing HA on their own Prefer the integrated solution For example Mysql, DHCP, Named Services can run independent on the node Keep

33

Mails ?

Page 34: We are watching us - LinuxDays · 11 Services implementing HA on their own Prefer the integrated solution For example Mysql, DHCP, Named Services can run independent on the node Keep

34

Mails

Page 35: We are watching us - LinuxDays · 11 Services implementing HA on their own Prefer the integrated solution For example Mysql, DHCP, Named Services can run independent on the node Keep

35

Web page

Page 36: We are watching us - LinuxDays · 11 Services implementing HA on their own Prefer the integrated solution For example Mysql, DHCP, Named Services can run independent on the node Keep

36

• nagios-eventhandlers-send_messages generate notification Emails or IRC messages with Nagios Link http://goo.gl/JojZYR

IRC bot

Page 37: We are watching us - LinuxDays · 11 Services implementing HA on their own Prefer the integrated solution For example Mysql, DHCP, Named Services can run independent on the node Keep

37

GSM Gateway

• GMS Modem Siemens ES75i Modem ES75

● Its 100% Open-Source under the GNU GPL ● http://goo.gl/iXvNl9

Page 38: We are watching us - LinuxDays · 11 Services implementing HA on their own Prefer the integrated solution For example Mysql, DHCP, Named Services can run independent on the node Keep

38

SUSE is Growing and We're Hiring!Open source is in our genes.

We ARE enterpriseLinux and more.

Explore the job opportunities athttps://www.suse.com/company/careers/

Page 39: We are watching us - LinuxDays · 11 Services implementing HA on their own Prefer the integrated solution For example Mysql, DHCP, Named Services can run independent on the node Keep

Thank you.

39

Time for questions ?

Martin ČajIRC nickname: mcaj

Email: [email protected]

Page 40: We are watching us - LinuxDays · 11 Services implementing HA on their own Prefer the integrated solution For example Mysql, DHCP, Named Services can run independent on the node Keep

40

Page 41: We are watching us - LinuxDays · 11 Services implementing HA on their own Prefer the integrated solution For example Mysql, DHCP, Named Services can run independent on the node Keep

Corporate HeadquartersMaxfeldstrasse 590409 NurembergGermany

+49 911 740 53 0 (Worldwide)www.suse.com

Join us on:www.opensuse.org

41

Page 42: We are watching us - LinuxDays · 11 Services implementing HA on their own Prefer the integrated solution For example Mysql, DHCP, Named Services can run independent on the node Keep

Unpublished Work of SUSE LLC. All Rights Reserved.This work is an unpublished work and contains confidential, proprietary and trade secret information of SUSE LLC. Access to this work is restricted to SUSE employees who have a need to know to perform tasks within the scope of their assignments. No part of this work may be practiced, performed, copied, distributed, revised, modified, translated, abridged, condensed, expanded, collected, or adapted without the prior written consent of SUSE. Any use or exploitation of this work without authorization could subject the perpetrator to criminal and civil liability.

General DisclaimerThis document is not to be construed as a promise by any participating company to develop, deliver, or market a product. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. SUSE makes no representations or warranties with respect to the contents of this document, and specifically disclaims any express or implied warranties of merchantability or fitness for any particular purpose. The development, release, and timing of features or functionality described for SUSE products remains at the sole discretion of SUSE. Further, SUSE reserves the right to revise this document and to make changes to its content, at any time, without obligation to notify any person or entity of such revisions or changes. All SUSE marks referenced in this presentation are trademarks or registered trademarks of Novell, Inc. in the United States and other countries. All third-party trademarks are the property of their respective owners.