Successfully reported this slideshow.

Serf@devops pune

1

Share

Upcoming SlideShare
cover-letter-2016-base+hist
cover-letter-2016-base+hist
Loading in …3
×
1 of 19
1 of 19

Serf@devops pune

1

Share

Download to read offline

Description

Open Source Cluster Management Tool

Transcript

  1. 1. SERF@DEVOPS PUNE RAHUL KHENGARE
  2. 2. Agenda  What is Serf  Installation  Get Used To  Use Cases  Demo  Limitations
  3. 3. Target Audience  Having some knowledge of cluster environment  Managed Clusters environment  Eager to Learn SERF
  4. 4. SERF (By Hashicorp)  OPEN SOURCE  Decentralized  Fault-tolerant  Highly Available  Uses Gossip Protocol to communicate with nodes  Extremely Light Weight (5-10 MB Memory Footprint)  Available for Linux, Mac OS X, and Windows
  5. 5. SERF USED FOR  Cluster Membership Management  Failure Detection and Recovery  Event Propagation  Orchestration
  6. 6. Installation  Download SERF from https://www.serfdom.io/downloads.html  Unzip and put binary in /usr/local/bin or /usr/bin folder (in LINUX)
  7. 7. SERF AGENT  Core process  Maintains membership information  Propagates events  Invokes event handlers  Detects failures  Run on every node that is part of cluster
  8. 8. RUN SERF AGENT  SERF AGENT
  9. 9. Cluster Membership Management  JOIN CLUSTER  CLUSTER STATUS  LEAVE CLUSTER  CLUSTER STATUS
  10. 10. Failure Detection and Recovery  MEMBER FAILED  RECOVER MEMBER
  11. 11. Custom Event Propagation  Dispatches a custom user event  Nodes in the cluster listen custom events  Reacts to them  Execute Event Handlers  Doesn’t send response back to originator
  12. 12. Event Handler Script
  13. 13. Custom Event Propagation  Event Handler Execution  Dispatch Custom User Event
  14. 14. SERVICE ORCHESTRATION  Dispatches a query  Nodes in the cluster listen query  Reacts to them  Execute Event Handlers  Send response back  Gathering Responses at originator
  15. 15. USE CASES  Webservers and load balancers  Memcached and Redis clusters  Triggering deployments  Updating DNS records  Simple Observability  A Building Block for Service Discovery
  16. 16. DEMO  Setting up high availability configuration(Webserver) Serf1 eth0 172.26.126.82 VIP 172.26.126.84 Apache Serf2 eth0 172.26.126.74 SERF AGENT SERF AGENT Apache GOSSIP PROTOCOL
  17. 17. Limitations  Under heavy development  Events are eventually consistent  Payload size is limited  Queries may not be delivered to all nodes  Responses and acknowledgements may not be receive by query originator
  18. 18. ANY QUESTIONS?
  19. 19. Thank You!!!

Description

Open Source Cluster Management Tool

Transcript

  1. 1. SERF@DEVOPS PUNE RAHUL KHENGARE
  2. 2. Agenda  What is Serf  Installation  Get Used To  Use Cases  Demo  Limitations
  3. 3. Target Audience  Having some knowledge of cluster environment  Managed Clusters environment  Eager to Learn SERF
  4. 4. SERF (By Hashicorp)  OPEN SOURCE  Decentralized  Fault-tolerant  Highly Available  Uses Gossip Protocol to communicate with nodes  Extremely Light Weight (5-10 MB Memory Footprint)  Available for Linux, Mac OS X, and Windows
  5. 5. SERF USED FOR  Cluster Membership Management  Failure Detection and Recovery  Event Propagation  Orchestration
  6. 6. Installation  Download SERF from https://www.serfdom.io/downloads.html  Unzip and put binary in /usr/local/bin or /usr/bin folder (in LINUX)
  7. 7. SERF AGENT  Core process  Maintains membership information  Propagates events  Invokes event handlers  Detects failures  Run on every node that is part of cluster
  8. 8. RUN SERF AGENT  SERF AGENT
  9. 9. Cluster Membership Management  JOIN CLUSTER  CLUSTER STATUS  LEAVE CLUSTER  CLUSTER STATUS
  10. 10. Failure Detection and Recovery  MEMBER FAILED  RECOVER MEMBER
  11. 11. Custom Event Propagation  Dispatches a custom user event  Nodes in the cluster listen custom events  Reacts to them  Execute Event Handlers  Doesn’t send response back to originator
  12. 12. Event Handler Script
  13. 13. Custom Event Propagation  Event Handler Execution  Dispatch Custom User Event
  14. 14. SERVICE ORCHESTRATION  Dispatches a query  Nodes in the cluster listen query  Reacts to them  Execute Event Handlers  Send response back  Gathering Responses at originator
  15. 15. USE CASES  Webservers and load balancers  Memcached and Redis clusters  Triggering deployments  Updating DNS records  Simple Observability  A Building Block for Service Discovery
  16. 16. DEMO  Setting up high availability configuration(Webserver) Serf1 eth0 172.26.126.82 VIP 172.26.126.84 Apache Serf2 eth0 172.26.126.74 SERF AGENT SERF AGENT Apache GOSSIP PROTOCOL
  17. 17. Limitations  Under heavy development  Events are eventually consistent  Payload size is limited  Queries may not be delivered to all nodes  Responses and acknowledgements may not be receive by query originator
  18. 18. ANY QUESTIONS?
  19. 19. Thank You!!!

More Related Content

Related Books

Free with a 30 day trial from Scribd

See all

×