heartbeat
TRANSCRIPT
![Page 1: Heartbeat](https://reader034.vdocumento.com/reader034/viewer/2022042816/559af44e1a28abb8708b47ff/html5/thumbnails/1.jpg)
HEARTBEAT
Realizado por:Andrés González Suárez
![Page 2: Heartbeat](https://reader034.vdocumento.com/reader034/viewer/2022042816/559af44e1a28abb8708b47ff/html5/thumbnails/2.jpg)
¿Qué es?
● Es un servicio de agrupamiento de cluster, es decir, permite a un grupo de máquinas monitorizarse entre sí.
● Cuando un Master Server se viene abajo, un servidor secundario toma control de los servicios.
![Page 3: Heartbeat](https://reader034.vdocumento.com/reader034/viewer/2022042816/559af44e1a28abb8708b47ff/html5/thumbnails/3.jpg)
¿Cómo funciona?
● Heartbeat es un demonio que trabaja enviando latidos (ping), los cuales verifican si el server principal está activo o no.
● Si pasado cierto tiempo, no se recibe ping de respuesta por parte del server principal, Heartbeat determina que está caido y activa al server secundario para que tome el control.
![Page 4: Heartbeat](https://reader034.vdocumento.com/reader034/viewer/2022042816/559af44e1a28abb8708b47ff/html5/thumbnails/4.jpg)
Implementación
![Page 5: Heartbeat](https://reader034.vdocumento.com/reader034/viewer/2022042816/559af44e1a28abb8708b47ff/html5/thumbnails/5.jpg)
Instalación
![Page 6: Heartbeat](https://reader034.vdocumento.com/reader034/viewer/2022042816/559af44e1a28abb8708b47ff/html5/thumbnails/6.jpg)
Instalación
![Page 7: Heartbeat](https://reader034.vdocumento.com/reader034/viewer/2022042816/559af44e1a28abb8708b47ff/html5/thumbnails/7.jpg)
Configuración
![Page 8: Heartbeat](https://reader034.vdocumento.com/reader034/viewer/2022042816/559af44e1a28abb8708b47ff/html5/thumbnails/8.jpg)
Configuración
![Page 9: Heartbeat](https://reader034.vdocumento.com/reader034/viewer/2022042816/559af44e1a28abb8708b47ff/html5/thumbnails/9.jpg)
Configuración
![Page 10: Heartbeat](https://reader034.vdocumento.com/reader034/viewer/2022042816/559af44e1a28abb8708b47ff/html5/thumbnails/10.jpg)
Configuración
![Page 11: Heartbeat](https://reader034.vdocumento.com/reader034/viewer/2022042816/559af44e1a28abb8708b47ff/html5/thumbnails/11.jpg)
Configuración
![Page 12: Heartbeat](https://reader034.vdocumento.com/reader034/viewer/2022042816/559af44e1a28abb8708b47ff/html5/thumbnails/12.jpg)
Configuración
![Page 13: Heartbeat](https://reader034.vdocumento.com/reader034/viewer/2022042816/559af44e1a28abb8708b47ff/html5/thumbnails/13.jpg)
Ejecución● Debemos iniciar los dos nodos con:
● /etc/init.d/heartbeat start
● Abrimos el navegador e introducimos la URL.
● Una vez ejecutada y que vemos que funciona, paramos el nodo1.
● Si, en el navegador, refrescamos la página, estaremos viendo el contenido del nodo2.
![Page 14: Heartbeat](https://reader034.vdocumento.com/reader034/viewer/2022042816/559af44e1a28abb8708b47ff/html5/thumbnails/14.jpg)
Video de ejemplo
http://www.youtube.com/watch?v=_qRWS6q6zHo
![Page 15: Heartbeat](https://reader034.vdocumento.com/reader034/viewer/2022042816/559af44e1a28abb8708b47ff/html5/thumbnails/15.jpg)
¡GRACIAS!