serf
TRANSCRIPT
![Page 1: Serf](https://reader036.vdocuments.mx/reader036/viewer/2022070516/586fdcb31a28ab18428b65af/html5/thumbnails/1.jpg)
![Page 2: Serf](https://reader036.vdocuments.mx/reader036/viewer/2022070516/586fdcb31a28ab18428b65af/html5/thumbnails/2.jpg)
What ???
Solução descentralizada para:
- Cluster- Detecção de falhas- Orquestração
![Page 3: Serf](https://reader036.vdocuments.mx/reader036/viewer/2022070516/586fdcb31a28ab18428b65af/html5/thumbnails/3.jpg)
![Page 4: Serf](https://reader036.vdocuments.mx/reader036/viewer/2022070516/586fdcb31a28ab18428b65af/html5/thumbnails/4.jpg)
![Page 5: Serf](https://reader036.vdocuments.mx/reader036/viewer/2022070516/586fdcb31a28ab18428b65af/html5/thumbnails/5.jpg)
Membership - Building Block for Service Discovery
Mantém lista de clusters para executar scripts
Balancear carga
Notificar um load balancer (online ou offline)
![Page 6: Serf](https://reader036.vdocuments.mx/reader036/viewer/2022070516/586fdcb31a28ab18428b65af/html5/thumbnails/6.jpg)
FAILURE DETECTION
Detectar rapidamente falhas e notifição cluster.
Utiliza a técnica de random probing que prove uma forma eficiente de escalar um cluster de qualquer tamanho.
![Page 7: Serf](https://reader036.vdocuments.mx/reader036/viewer/2022070516/586fdcb31a28ab18428b65af/html5/thumbnails/7.jpg)
CUSTOM EVENTS
Trasmite eventos e consultas personalizadas, podendo usar esses eventos para implantar processos de restar processo
![Page 8: Serf](https://reader036.vdocuments.mx/reader036/viewer/2022070516/586fdcb31a28ab18428b65af/html5/thumbnails/8.jpg)
Comparison
![Page 9: Serf](https://reader036.vdocuments.mx/reader036/viewer/2022070516/586fdcb31a28ab18428b65af/html5/thumbnails/9.jpg)
- Não pode ser utilizada como Ferramenta direta
- Demora p/ detectar falhas
- Resposta lenta qndo uma falha é encontrada
- Desempenho pode degradar em certas condições de rede.
![Page 10: Serf](https://reader036.vdocuments.mx/reader036/viewer/2022070516/586fdcb31a28ab18428b65af/html5/thumbnails/10.jpg)
Fabric
- Trasmite mensagem nodo a nodo
- Limitado na velocidade de exec p/ descobrir q um nó caiu.
![Page 11: Serf](https://reader036.vdocuments.mx/reader036/viewer/2022070516/586fdcb31a28ab18428b65af/html5/thumbnails/11.jpg)
Use case
Web Servers and Load Balancers
it is trivial to create a Serf cluster consisting of web servers and load balancers.
![Page 12: Serf](https://reader036.vdocuments.mx/reader036/viewer/2022070516/586fdcb31a28ab18428b65af/html5/thumbnails/12.jpg)
Use case
Clustering Memcached or Redis
Servers such as Memcached or Redis can be easily clustered by creating a Serf cluster for
these nodes
![Page 13: Serf](https://reader036.vdocuments.mx/reader036/viewer/2022070516/586fdcb31a28ab18428b65af/html5/thumbnails/13.jpg)
Use case
Triggering Deploys
Can send custom events to a Serf cluster. you can use Serf's event system to trigger things
such as deploys
![Page 14: Serf](https://reader036.vdocuments.mx/reader036/viewer/2022070516/586fdcb31a28ab18428b65af/html5/thumbnails/14.jpg)
Use caseSimple Observability
Serf provider queries which can be used as a simple request/response mechanism.it can be used very simply to provide cluster
and application observability
![Page 15: Serf](https://reader036.vdocuments.mx/reader036/viewer/2022070516/586fdcb31a28ab18428b65af/html5/thumbnails/15.jpg)
Use case
Building Block for Service Discovery
Serf mantém uma lista de nós up-to-date e informações sobre esses nós
![Page 16: Serf](https://reader036.vdocuments.mx/reader036/viewer/2022070516/586fdcb31a28ab18428b65af/html5/thumbnails/16.jpg)
https://labs.ctl.io/decentralizing-docker-how-to-use-serf-with-docker/
![Page 17: Serf](https://reader036.vdocuments.mx/reader036/viewer/2022070516/586fdcb31a28ab18428b65af/html5/thumbnails/17.jpg)