SlideShare una empresa de Scribd logo
1 de 19
SERF@DEVOPS PUNE
RAHUL KHENGARE
Agenda
 What is Serf
 Installation
 Get Used To
 Use Cases
 Demo
 Limitations
Target Audience
 Having some knowledge of cluster environment
 Managed Clusters environment
 Eager to Learn SERF
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
SERF USED FOR
 Cluster Membership Management
 Failure Detection and Recovery
 Event Propagation
 Orchestration
Installation
 Download SERF from https://www.serfdom.io/downloads.html
 Unzip and put binary in /usr/local/bin or /usr/bin folder (in LINUX)
SERF AGENT
 Core process
 Maintains membership information
 Propagates events
 Invokes event handlers
 Detects failures
 Run on every node that is part of cluster
RUN SERF AGENT
 SERF AGENT
Cluster Membership Management
 JOIN CLUSTER
 CLUSTER STATUS
 LEAVE CLUSTER
 CLUSTER STATUS
Failure Detection and Recovery
 MEMBER FAILED
 RECOVER MEMBER
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
Event Handler Script
Custom Event Propagation
 Event Handler Execution
 Dispatch Custom User Event
SERVICE ORCHESTRATION
 Dispatches a query
 Nodes in the cluster listen query
 Reacts to them
 Execute Event Handlers
 Send response back
 Gathering Responses at originator
USE CASES
 Webservers and load balancers
 Memcached and Redis clusters
 Triggering deployments
 Updating DNS records
 Simple Observability
 A Building Block for Service Discovery
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
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
ANY QUESTIONS?
Thank You!!!

Más contenido relacionado

Destacado (6)

#UNselfie Toolkit AUS
#UNselfie Toolkit AUS#UNselfie Toolkit AUS
#UNselfie Toolkit AUS
 
Digital media & Your Job Search
Digital media & Your Job SearchDigital media & Your Job Search
Digital media & Your Job Search
 
Rocce, minerali e pigmenti
Rocce, minerali e pigmentiRocce, minerali e pigmenti
Rocce, minerali e pigmenti
 
Gettysburg address
Gettysburg addressGettysburg address
Gettysburg address
 
]Plano nacional de educação 2014 2024
]Plano nacional de educação 2014 2024]Plano nacional de educação 2014 2024
]Plano nacional de educação 2014 2024
 
Sanguinaria canadensis (Bloodroot)
Sanguinaria canadensis (Bloodroot)Sanguinaria canadensis (Bloodroot)
Sanguinaria canadensis (Bloodroot)
 

Similar a Serf@devops pune

Multi site Clustering with Windows Server 2008 Enterprise
Multi site Clustering with Windows Server 2008 EnterpriseMulti site Clustering with Windows Server 2008 Enterprise
Multi site Clustering with Windows Server 2008 Enterprise
Paulo Freitas
 
Lichtenberg bosc2010 wordseeker
Lichtenberg bosc2010 wordseekerLichtenberg bosc2010 wordseeker
Lichtenberg bosc2010 wordseeker
BOSC 2010
 
Effect of Virtualization on OS Interference
Effect of Virtualization on OS InterferenceEffect of Virtualization on OS Interference
Effect of Virtualization on OS Interference
Eric Van Hensbergen
 
Linux26 New Features
Linux26 New FeaturesLinux26 New Features
Linux26 New Features
guest491c69
 
Distributed file systems
Distributed file systemsDistributed file systems
Distributed file systems
Sri Prasanna
 

Similar a Serf@devops pune (20)

OpenSolaris Introduction
OpenSolaris IntroductionOpenSolaris Introduction
OpenSolaris Introduction
 
Multi site Clustering with Windows Server 2008 Enterprise
Multi site Clustering with Windows Server 2008 EnterpriseMulti site Clustering with Windows Server 2008 Enterprise
Multi site Clustering with Windows Server 2008 Enterprise
 
Cl116
Cl116Cl116
Cl116
 
Lichtenberg bosc2010 wordseeker
Lichtenberg bosc2010 wordseekerLichtenberg bosc2010 wordseeker
Lichtenberg bosc2010 wordseeker
 
Centralized logging with Flume
Centralized logging with FlumeCentralized logging with Flume
Centralized logging with Flume
 
Cl306
Cl306Cl306
Cl306
 
Effect of Virtualization on OS Interference
Effect of Virtualization on OS InterferenceEffect of Virtualization on OS Interference
Effect of Virtualization on OS Interference
 
How devops exhausts itself, and what will happen next
How devops exhausts itself, and what will happen nextHow devops exhausts itself, and what will happen next
How devops exhausts itself, and what will happen next
 
Linux26 New Features
Linux26 New FeaturesLinux26 New Features
Linux26 New Features
 
Distributed file systems
Distributed file systemsDistributed file systems
Distributed file systems
 
RHCE (RED HAT CERTIFIED ENGINEERING)
RHCE (RED HAT CERTIFIED ENGINEERING)RHCE (RED HAT CERTIFIED ENGINEERING)
RHCE (RED HAT CERTIFIED ENGINEERING)
 
Presentation on nfs,afs,vfs
Presentation on nfs,afs,vfsPresentation on nfs,afs,vfs
Presentation on nfs,afs,vfs
 
Ceh v5 module 18 linux hacking
Ceh v5 module 18 linux hackingCeh v5 module 18 linux hacking
Ceh v5 module 18 linux hacking
 
test
testtest
test
 
HeartBeat
HeartBeatHeartBeat
HeartBeat
 
Security Walls in Linux Environment: Practice, Experience, and Results
Security Walls in Linux Environment: Practice, Experience, and ResultsSecurity Walls in Linux Environment: Practice, Experience, and Results
Security Walls in Linux Environment: Practice, Experience, and Results
 
Learning Your Way Around Alfresco [A Developer's Intro, Part 1. by Jeff Potts]
Learning Your Way Around Alfresco [A Developer's Intro, Part 1. by Jeff Potts]Learning Your Way Around Alfresco [A Developer's Intro, Part 1. by Jeff Potts]
Learning Your Way Around Alfresco [A Developer's Intro, Part 1. by Jeff Potts]
 
opensource Monitoring Tool , an overview
opensource Monitoring Tool , an overviewopensource Monitoring Tool , an overview
opensource Monitoring Tool , an overview
 
Linux world
Linux worldLinux world
Linux world
 
Maven Overview
Maven OverviewMaven Overview
Maven Overview
 

Más de Rahul Khengare (6)

Container Security Using Microsoft Defender
Container Security Using Microsoft DefenderContainer Security Using Microsoft Defender
Container Security Using Microsoft Defender
 
AzurePolicy DevOps Pune Feb23
AzurePolicy DevOps Pune Feb23AzurePolicy DevOps Pune Feb23
AzurePolicy DevOps Pune Feb23
 
CIS Security Benchmark
CIS Security BenchmarkCIS Security Benchmark
CIS Security Benchmark
 
You2.0
You2.0You2.0
You2.0
 
Introduction to micro-services @DevOps pune Meetup
Introduction to micro-services @DevOps pune Meetup Introduction to micro-services @DevOps pune Meetup
Introduction to micro-services @DevOps pune Meetup
 
DPI2012
DPI2012DPI2012
DPI2012
 

Último

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Último (20)

Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 

Serf@devops pune

  • 2. Agenda  What is Serf  Installation  Get Used To  Use Cases  Demo  Limitations
  • 3. Target Audience  Having some knowledge of cluster environment  Managed Clusters environment  Eager to Learn SERF
  • 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. SERF USED FOR  Cluster Membership Management  Failure Detection and Recovery  Event Propagation  Orchestration
  • 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. SERF AGENT  Core process  Maintains membership information  Propagates events  Invokes event handlers  Detects failures  Run on every node that is part of cluster
  • 8. RUN SERF AGENT  SERF AGENT
  • 9. Cluster Membership Management  JOIN CLUSTER  CLUSTER STATUS  LEAVE CLUSTER  CLUSTER STATUS
  • 10. Failure Detection and Recovery  MEMBER FAILED  RECOVER MEMBER
  • 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
  • 13. Custom Event Propagation  Event Handler Execution  Dispatch Custom User Event
  • 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. USE CASES  Webservers and load balancers  Memcached and Redis clusters  Triggering deployments  Updating DNS records  Simple Observability  A Building Block for Service Discovery
  • 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. 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