SlideShare une entreprise Scribd logo
1  sur  34
Télécharger pour lire hors ligne
Xabier Arbulu Insausti
Software Engineer at
Suse
xarbulu@suse.com
Having fun with
openSUSE, Raspberries
and
HA cluster
Let me present myself
● From the Basque Country (Spain) but living in the Canary Islands.
● Studied computer science in the University of Basque Country (UPV).
● Working at Suse since last October in the
SLES4SAP and HA team as software engineer
(with Python, Salt and Terraform mainly).
● Hobbies: Surf, time in nature, friki things
(anime, videogames, etc) .
How this project
started?
Christmas dinner 2018...
My brother and I got a new job. Now he works in a
company that builds elevators. So as always:
My parents:
“Oh!! I see. And how fast they move?
How many people can use them?
Which material do you use?”
So they talk about that until...
Dad: “Xabi, sorry, we could talk about what you do,
but,
you know...”
Me: “You don’t know what I do, right?
Mmm... you work with a computer, don’t you?
So I decided to do
something to make
them understand
what I do!
Let’s do something
cool!
Something visual!
But not more SAP for this time,
please...
Maybe out of budget...
Let’s do a High Available webcams service! I can
use Motion for that.
Motion: https://motion-project.github.io/
So I decided to do something
simpler…
And I started
working...
“Oh man, and now I have to configure all the
raspberry pi-s…
And redo everything every time I fail… So
annoying”
“Dude! But you are working with Salt all the time!
Create some states to configure everything!
But...
And finally the project was born!
https://github.com/arbulu89/ha-webcams-raspberry
Who knows about HA
and Salt?
Open Source High Availability
Cluster Stack
https://clusterlabs.org/
Old but Gold!!!
Salt
https://docs.saltstack.com/en/latest/
https://github.com/saltstack/salt
So, what’s the project
about?
But let’s show the project using a
demo
What can go wrong?
Let’s leverage Salt for everything!
● Configure the Salt Master using Salt
● Configure the nodes Salt Minion using salt (WTF!!)
– salt-ssh
● Configure HA and Motion using Salt
Configure Salt Master
1. Install Salt Master
2. Auto accept Salt Minions connection
3. Install HA salt formula
https://github.com/arbulu89/ha-webcams-
raspberry/tree/master/salt/setup
But… What is a salt formula?
Basically, a bunch of states
to configure certain
components (HA for
example).
IDEMPOTENCY ASSURED!
HA salt formula
https://github.com/SUSE/habootstrap-formula
● Create the cluster
● Join to the cluster
● Configure resource
agents
● etc
Configure the nodes with salt-ssh
We can use salt-ssh to run salt states in nodes
without salt-minion. Isn’t it great?!!!
We need to define a roster for that:
And finally configure Motion and HA
Now we have everything ready, we only need run
Motion and HA cluster states. Easy!
High Available Cluster!!
And what about HA?
HA cluster will assure that there is
not downtime!
● What if the Motion daemon stops working?
– I will restart the daemon!
● What if the node crashes?
– I will migrate Motion daemon to the 2n node
● But the IP address to monitor the service will be
different!
– I will create a virtual address and migrate with Motion
How are going to do that?
Simple! HA cluster monitors resources (instead of
machines).
We can monitor a systemd daemon for example.
Disclaimer!!!
So, you will be thinking: “Hey! Why are you not just
using the 2 webcams together?!!”
Remember! This is just a demonstration to
show how to use Salt and HA in a more visual
way.
So… Mom, Dad, do
you understand now
what I do?
You do… webcams?
We will try other time again….
Join Us at www.opensuse.org
License
This slide deck is licensed under the Creative Commons Attribution-ShareAlike 4.0
International license.
It can be shared and adapted for any purpose (even commercially) as long as Attribution
is given and any derivative work is distributed under the same license.
Details can be found at https://creativecommons.org/licenses/by-sa/4.0/
General Disclaimer
This document is not to be construed as a promise by any participating organisation 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.
openSUSE 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 openSUSE products remains at the sole discretion of
openSUSE. Further, openSUSE 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 openSUSE marks referenced in this presentation are
trademarks or registered trademarks of SUSE LLC, in the United States and other
countries. All third-party trademarks are the property of their respective owners.
Credits
Template
Richard Brown
rbrown@opensuse.org
Design & Inspiration
openSUSE Design Team
http://opensuse.github.io/branding-
guidelines/

Contenu connexe

Similaire à Having fun-with-os-ha

SW Drupal Summit - Upgrading 6 to 7
SW Drupal Summit - Upgrading 6 to 7SW Drupal Summit - Upgrading 6 to 7
SW Drupal Summit - Upgrading 6 to 7
Amye Scavarda
 
Tylers Summative Reaction
Tylers Summative ReactionTylers Summative Reaction
Tylers Summative Reaction
holaitsnoraxo
 

Similaire à Having fun-with-os-ha (20)

Intro to podcasting
Intro to podcastingIntro to podcasting
Intro to podcasting
 
Productive data engineer speaker notes
Productive data engineer speaker notesProductive data engineer speaker notes
Productive data engineer speaker notes
 
Learn to Code and Have Fun Doing It!
Learn to Code and Have Fun Doing It! Learn to Code and Have Fun Doing It!
Learn to Code and Have Fun Doing It!
 
Holland Open
Holland OpenHolland Open
Holland Open
 
Tema1unidad3semana9
Tema1unidad3semana9Tema1unidad3semana9
Tema1unidad3semana9
 
SW Drupal Summit - Upgrading 6 to 7
SW Drupal Summit - Upgrading 6 to 7SW Drupal Summit - Upgrading 6 to 7
SW Drupal Summit - Upgrading 6 to 7
 
Code Bootcamp for Kids- Learn Programming -Texavi AnalystZone by Pardha Sarad...
Code Bootcamp for Kids- Learn Programming -Texavi AnalystZone by Pardha Sarad...Code Bootcamp for Kids- Learn Programming -Texavi AnalystZone by Pardha Sarad...
Code Bootcamp for Kids- Learn Programming -Texavi AnalystZone by Pardha Sarad...
 
Georgia Tech Hack Day
Georgia Tech Hack DayGeorgia Tech Hack Day
Georgia Tech Hack Day
 
Presentations and Videos
Presentations and VideosPresentations and Videos
Presentations and Videos
 
Responsive Web Design Process
Responsive Web Design ProcessResponsive Web Design Process
Responsive Web Design Process
 
How Open Source / Open Technology Could Help On Your Project
How Open Source / Open Technology Could Help On Your ProjectHow Open Source / Open Technology Could Help On Your Project
How Open Source / Open Technology Could Help On Your Project
 
How long will it take me to become a Web Designer/Developer?
How long will it take me to become a Web Designer/Developer?How long will it take me to become a Web Designer/Developer?
How long will it take me to become a Web Designer/Developer?
 
openSUSE Leap & Flatpak
openSUSE Leap & FlatpakopenSUSE Leap & Flatpak
openSUSE Leap & Flatpak
 
Hue: The Hadoop UI - Hadoop Singapore
Hue: The Hadoop UI - Hadoop SingaporeHue: The Hadoop UI - Hadoop Singapore
Hue: The Hadoop UI - Hadoop Singapore
 
Converging Big Data and Application Infrastructure by Steven Poutsy
Converging Big Data and Application Infrastructure by Steven PoutsyConverging Big Data and Application Infrastructure by Steven Poutsy
Converging Big Data and Application Infrastructure by Steven Poutsy
 
GUI Prototyping / Wireframing with Pencil
GUI Prototyping / Wireframing with PencilGUI Prototyping / Wireframing with Pencil
GUI Prototyping / Wireframing with Pencil
 
LVPHP.org
LVPHP.orgLVPHP.org
LVPHP.org
 
Tylers Summative Reaction
Tylers Summative ReactionTylers Summative Reaction
Tylers Summative Reaction
 
DevstackPY
DevstackPYDevstackPY
DevstackPY
 
Tambah Keren dengan openSUSE
Tambah Keren dengan openSUSETambah Keren dengan openSUSE
Tambah Keren dengan openSUSE
 

Dernier

CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
VictorSzoltysek
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
masabamasaba
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Medical / Health Care (+971588192166) Mifepristone and Misoprostol tablets 200mg
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
masabamasaba
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
shinachiaurasa2
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
masabamasaba
 

Dernier (20)

call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM TechniquesAI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
AI Mastery 201: Elevating Your Workflow with Advanced LLM Techniques
 
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
%+27788225528 love spells in Colorado Springs Psychic Readings, Attraction sp...
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
Abortion Pill Prices Tembisa [(+27832195400*)] 🏥 Women's Abortion Clinic in T...
 
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
%+27788225528 love spells in Atlanta Psychic Readings, Attraction spells,Brin...
 
%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare%in Harare+277-882-255-28 abortion pills for sale in Harare
%in Harare+277-882-255-28 abortion pills for sale in Harare
 
Announcing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK SoftwareAnnouncing Codolex 2.0 from GDK Software
Announcing Codolex 2.0 from GDK Software
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
 
%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto%in Soweto+277-882-255-28 abortion pills for sale in soweto
%in Soweto+277-882-255-28 abortion pills for sale in soweto
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
Direct Style Effect Systems -The Print[A] Example- A Comprehension AidDirect Style Effect Systems -The Print[A] Example- A Comprehension Aid
Direct Style Effect Systems - The Print[A] Example - A Comprehension Aid
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
Devoxx UK 2024 - Going serverless with Quarkus, GraalVM native images and AWS...
 
Architecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the pastArchitecture decision records - How not to get lost in the past
Architecture decision records - How not to get lost in the past
 
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
%+27788225528 love spells in new york Psychic Readings, Attraction spells,Bri...
 

Having fun-with-os-ha

  • 1. Xabier Arbulu Insausti Software Engineer at Suse xarbulu@suse.com Having fun with openSUSE, Raspberries and HA cluster
  • 2. Let me present myself
  • 3. ● From the Basque Country (Spain) but living in the Canary Islands. ● Studied computer science in the University of Basque Country (UPV). ● Working at Suse since last October in the SLES4SAP and HA team as software engineer (with Python, Salt and Terraform mainly). ● Hobbies: Surf, time in nature, friki things (anime, videogames, etc) .
  • 5. Christmas dinner 2018... My brother and I got a new job. Now he works in a company that builds elevators. So as always: My parents: “Oh!! I see. And how fast they move? How many people can use them? Which material do you use?”
  • 6. So they talk about that until... Dad: “Xabi, sorry, we could talk about what you do, but, you know...” Me: “You don’t know what I do, right? Mmm... you work with a computer, don’t you?
  • 7. So I decided to do something to make them understand what I do!
  • 9. But not more SAP for this time, please...
  • 10. Maybe out of budget...
  • 11. Let’s do a High Available webcams service! I can use Motion for that. Motion: https://motion-project.github.io/ So I decided to do something simpler…
  • 13. “Oh man, and now I have to configure all the raspberry pi-s… And redo everything every time I fail… So annoying” “Dude! But you are working with Salt all the time! Create some states to configure everything! But...
  • 14. And finally the project was born! https://github.com/arbulu89/ha-webcams-raspberry
  • 15. Who knows about HA and Salt?
  • 16. Open Source High Availability Cluster Stack https://clusterlabs.org/ Old but Gold!!!
  • 18. So, what’s the project about?
  • 19. But let’s show the project using a demo What can go wrong?
  • 20. Let’s leverage Salt for everything! ● Configure the Salt Master using Salt ● Configure the nodes Salt Minion using salt (WTF!!) – salt-ssh ● Configure HA and Motion using Salt
  • 21. Configure Salt Master 1. Install Salt Master 2. Auto accept Salt Minions connection 3. Install HA salt formula https://github.com/arbulu89/ha-webcams- raspberry/tree/master/salt/setup
  • 22. But… What is a salt formula? Basically, a bunch of states to configure certain components (HA for example). IDEMPOTENCY ASSURED!
  • 23. HA salt formula https://github.com/SUSE/habootstrap-formula ● Create the cluster ● Join to the cluster ● Configure resource agents ● etc
  • 24. Configure the nodes with salt-ssh We can use salt-ssh to run salt states in nodes without salt-minion. Isn’t it great?!!! We need to define a roster for that:
  • 25. And finally configure Motion and HA Now we have everything ready, we only need run Motion and HA cluster states. Easy! High Available Cluster!!
  • 27. HA cluster will assure that there is not downtime! ● What if the Motion daemon stops working? – I will restart the daemon! ● What if the node crashes? – I will migrate Motion daemon to the 2n node ● But the IP address to monitor the service will be different! – I will create a virtual address and migrate with Motion
  • 28. How are going to do that? Simple! HA cluster monitors resources (instead of machines). We can monitor a systemd daemon for example.
  • 29. Disclaimer!!! So, you will be thinking: “Hey! Why are you not just using the 2 webcams together?!!” Remember! This is just a demonstration to show how to use Salt and HA in a more visual way.
  • 30. So… Mom, Dad, do you understand now what I do?
  • 31. You do… webcams? We will try other time again….
  • 32.
  • 33. Join Us at www.opensuse.org
  • 34. License This slide deck is licensed under the Creative Commons Attribution-ShareAlike 4.0 International license. It can be shared and adapted for any purpose (even commercially) as long as Attribution is given and any derivative work is distributed under the same license. Details can be found at https://creativecommons.org/licenses/by-sa/4.0/ General Disclaimer This document is not to be construed as a promise by any participating organisation 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. openSUSE 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 openSUSE products remains at the sole discretion of openSUSE. Further, openSUSE 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 openSUSE marks referenced in this presentation are trademarks or registered trademarks of SUSE LLC, in the United States and other countries. All third-party trademarks are the property of their respective owners. Credits Template Richard Brown rbrown@opensuse.org Design & Inspiration openSUSE Design Team http://opensuse.github.io/branding- guidelines/