SlideShare a Scribd company logo
“Debugging is on the table”
Dr. House pergunta a um Sysadmin
Leonardo Martins Abril/2016
POR ONDE COMEÇAR?
https://br.linkedin.com/in/leonardoml Leonardo Martins - leonardoml@gmail.com
https://br.linkedin.com/in/leonardoml Leonardo Martins - leonardoml@gmail.com
Leonardo Martins
https://br.linkedin.com/in/leonardoml Leonardo Martins - leonardoml@gmail.com
Leonardo Martins
https://br.linkedin.com/in/leonardoml Leonardo Martins - leonardoml@gmail.com
http://i3.cpcache.com/product/228415899/rtfm_mug.jpg
https://br.linkedin.com/in/leonardoml Leonardo Martins - leonardoml@gmail.com
Hipótese
confirmada?
Problema
resolvido!!
SIM
NÃO
Coletar
informações
Definir
problema
Construir
hipótese
Testar
hipótese
Construir
nova hipótese
Guardar os
dados coletados
https://br.linkedin.com/in/leonardoml Leonardo Martins - leonardoml@gmail.com
Hipótese
confirmada?
Problema
resolvido!!
Coletar
informações
Definir
problema
Construir
hipótese
Testar
hipótese
Construir
nova hipótese
Guardar os
dados coletados
SIM
NÃO
https://br.linkedin.com/in/leonardoml Leonardo Martins - leonardoml@gmail.com
DEFINIÇÃO DE PROBLEMA
O que te faz pensar que existe um problema?
O que causou esse problema?
O que foi mudado recentemente?
Isso já funcionou alguma vez ?
https://br.linkedin.com/in/leonardoml Leonardo Martins - leonardoml@gmail.com
COLETA DE INFORMAÇÕES
https://br.linkedin.com/in/leonardoml Leonardo Martins - leonardoml@gmail.com
COLETA DE INFORMAÇÃO
# apt-get install htop
https://br.linkedin.com/in/leonardoml Leonardo Martins - leonardoml@gmail.com
COLETA DE INFORMAÇÕES
https://br.linkedin.com/in/leonardoml Leonardo Martins - leonardoml@gmail.com
COLETA DE INFORMAÇÕES
# apt-get install sysstat
# apt-get install dstat
https://br.linkedin.com/in/leonardoml Leonardo Martins - leonardoml@gmail.com
- tcpdump -i eth0 -T snmp "(src port 161 or 162)"
- tcpdump -i eth0 'udp port 53'
- tcpdump "tcp[tcpflags] & (tcp-syn|tcp-ack) != 0"
- tcpdump -i eth0 'tcp port 22' -w saida.pcap
- tshark -r saida.pcap
COLETA DE INFORMAÇÕES
https://br.linkedin.com/in/leonardoml Leonardo Martins - leonardoml@gmail.com
- tcpdump -i eth0 -T snmp "(src port 161 or 162)"
- tcpdump -i eth0 'udp port 53'
- tcpdump "tcp[tcpflags] & (tcp-syn|tcp-ack) != 0"
- tcpdump -i eth0 'tcp port 22' -w saida.pcap
- tshark -r saida.pcap
COLETA DE INFORMAÇÕES
# apt-get install tshark
# apt-get install tcpdump
https://br.linkedin.com/in/leonardoml Leonardo Martins - leonardoml@gmail.com
COLETA DE INFORMAÇÕES
- strace ./get_http.py
- strace -e trace=open,close ./get_http.py
- strace -f -e trace=network ./test_tcp.sh
# apt-get install strace
https://br.linkedin.com/in/leonardoml Leonardo Martins - leonardoml@gmail.com
COLETA DE INFORMAÇÕES
- lsof /var/log/nginx/access.log
- lsof -u $USER
- lsof -p PID
- lsof -i |grep LISTEN
- lsof -i :80
# apt-get install lsof
https://br.linkedin.com/in/leonardoml Leonardo Martins - leonardoml@gmail.com
COLETA DE INFORMAÇÕES
- sysdig -c topprocs_cpu
- sysdig -c topscalls_time
- sysdig -c topfiles_time proc.name=nginx
# apt-get install sysdig
https://br.linkedin.com/in/leonardoml Leonardo Martins - leonardoml@gmail.com
ANÁLISE DAS INFORMAÇÕES
http://www.zastavki.com/pictures/1600x1200/2008/Movies_Movies_H_House_M.D._010043_.jpg
https://br.linkedin.com/in/leonardoml Leonardo Martins - leonardoml@gmail.com
Hipótese
confirmada?
Problema
resolvido!!
SIM
NÃO
Coletar
informações
Definir
problema
Construir
hipótese
Testar
hipótese
Construir
nova hipótese
Guardar os
dados coletados
https://br.linkedin.com/in/leonardoml Leonardo Martins - leonardoml@gmail.com
TESTAR HIPÓTESES
https://br.linkedin.com/in/leonardoml Leonardo Martins - leonardoml@gmail.com
TOP DOWN
http://computernetworkhomeworkhelp.com/wp-content/uploads/2014/01/comparision.png
https://br.linkedin.com/in/leonardoml Leonardo Martins - leonardoml@gmail.com
BOTTOM UP
http://computernetworkhomeworkhelp.com/wp-content/uploads/2014/01/comparision.png
https://br.linkedin.com/in/leonardoml Leonardo Martins - leonardoml@gmail.com
http://computernetworkhomeworkhelp.com/wp-content/uploads/2014/01/comparision.png
DIVIDIR E CONQUISTAR
https://br.linkedin.com/in/leonardoml Leonardo Martins - leonardoml@gmail.com
CONSTRUIR NOVAS HIPÓTESES
?
?
?
?
?
?
?
?
http://watchesinmovies.info/img/f/House-Pathfinder.jpg
?
https://br.linkedin.com/in/leonardoml Leonardo Martins - leonardoml@gmail.com
TOP DOWN
https://d0.awsstatic.com/architecture-diagrams/customers/parse-arch-diagram.png
https://br.linkedin.com/in/leonardoml Leonardo Martins - leonardoml@gmail.com
BOTTOM UP
https://d0.awsstatic.com/architecture-diagrams/customers/parse-arch-diagram.png
https://br.linkedin.com/in/leonardoml Leonardo Martins - leonardoml@gmail.com
FOLLOW THE REQUEST
https://d0.awsstatic.com/architecture-diagrams/customers/parse-arch-diagram.png
https://br.linkedin.com/in/leonardoml Leonardo Martins - leonardoml@gmail.com
DRILL DOWN
https://d0.awsstatic.com/architecture-diagrams/customers/parse-arch-diagram.png
https://br.linkedin.com/in/leonardoml Leonardo Martins - leonardoml@gmail.com
LOGS
https://www.graylog.org/overview
- Graylog
https://br.linkedin.com/in/leonardoml Leonardo Martins - leonardoml@gmail.com
LOGS
https://www.graylog.org/overview
- Graylog
https://br.linkedin.com/in/leonardoml Leonardo Martins - leonardoml@gmail.com
MONITORAÇÃO
https://br.linkedin.com/in/leonardoml Leonardo Martins - leonardoml@gmail.com
MONITORAÇÃO
- CollectD + InfluxDB + Grafana
https://br.linkedin.com/in/leonardoml Leonardo Martins - leonardoml@gmail.com
AUTOMAÇÃO
https://br.linkedin.com/in/leonardoml Leonardo Martins - leonardoml@gmail.com
“Everybody lies” by Dr. House
https://br.linkedin.com/in/leonardoml Leonardo Martins - leonardoml@gmail.com
http://www.brendangregg.com/Perf/linux_observability_tools.png
REFERÊNCIAS
https://br.linkedin.com/in/leonardoml Leonardo Martins - leonardoml@gmail.com
REFERÊNCIAS
https://br.linkedin.com/in/leonardoml Leonardo Martins - leonardoml@gmail.com
- http://www.zabbix.com
- https://www.graylog.org
- https://collectd.org
- https://influxdata.com
- http://grafana.org
- https://www.chef.io
- https://puppet.com
- https://www.ansible.com
- http://saltstack.com
https://br.linkedin.com/in/leonardoml Leonardo Martins - leonardoml@gmail.com
REFERÊNCIAS
OBRIGADO!!
leonardoml@gmail.com
https://br.linkedin.com/in/leonardoml
http://images.fanpop.com/images/image_uploads/House-MD-house-md-630240_1360_768.jpg

More Related Content

Similar to “Debugging is on the table” Dr. House pergunta a um Sysadmin

There's More Than 1 Way To Skin A Theme
There's More Than 1 Way To Skin A ThemeThere's More Than 1 Way To Skin A Theme
There's More Than 1 Way To Skin A Theme
Sennza Design
 
Know This, Work Here
Know This, Work HereKnow This, Work Here
Know This, Work Here
Dale Cruse
 

Similar to “Debugging is on the table” Dr. House pergunta a um Sysadmin (20)

DEVOPS-101 Quem são? Como surgiram? Como eles vivem?
DEVOPS-101 Quem são? Como surgiram? Como eles vivem? DEVOPS-101 Quem são? Como surgiram? Como eles vivem?
DEVOPS-101 Quem são? Como surgiram? Como eles vivem?
 
Web performance optimization
Web performance optimizationWeb performance optimization
Web performance optimization
 
Responsible [digital] Home Ownership
Responsible [digital] Home OwnershipResponsible [digital] Home Ownership
Responsible [digital] Home Ownership
 
There's More Than 1 Way To Skin A Theme
There's More Than 1 Way To Skin A ThemeThere's More Than 1 Way To Skin A Theme
There's More Than 1 Way To Skin A Theme
 
Lessons Learned Scaling Your Talent Transformation
Lessons Learned Scaling Your Talent TransformationLessons Learned Scaling Your Talent Transformation
Lessons Learned Scaling Your Talent Transformation
 
Preparing Your Team for a Cloud Transformation - AWS Online Tech Talks
Preparing Your Team for a Cloud Transformation - AWS Online Tech TalksPreparing Your Team for a Cloud Transformation - AWS Online Tech Talks
Preparing Your Team for a Cloud Transformation - AWS Online Tech Talks
 
Know This, Work Here
Know This, Work HereKnow This, Work Here
Know This, Work Here
 
Geek Moot '09 -- Multilang Implemenatation
Geek Moot '09 -- Multilang ImplemenatationGeek Moot '09 -- Multilang Implemenatation
Geek Moot '09 -- Multilang Implemenatation
 
[BreizhCamp, format 15min] Construire et automatiser l'ecosystème de son Saa...
[BreizhCamp, format 15min] Construire et automatiser l'ecosystème de son Saa...[BreizhCamp, format 15min] Construire et automatiser l'ecosystème de son Saa...
[BreizhCamp, format 15min] Construire et automatiser l'ecosystème de son Saa...
 
Job Hunting In A Web 2.0 World
Job Hunting In A Web 2.0 WorldJob Hunting In A Web 2.0 World
Job Hunting In A Web 2.0 World
 
Version Control in Machine Learning + AI (Stanford)
Version Control in Machine Learning + AI (Stanford)Version Control in Machine Learning + AI (Stanford)
Version Control in Machine Learning + AI (Stanford)
 
Facilidanto um pouco nossa vida com serverless framework
Facilidanto um pouco nossa vida com serverless frameworkFacilidanto um pouco nossa vida com serverless framework
Facilidanto um pouco nossa vida com serverless framework
 
Building Next Generation Applications With BuddyPress
Building Next Generation Applications With BuddyPressBuilding Next Generation Applications With BuddyPress
Building Next Generation Applications With BuddyPress
 
BuddyPress v4
BuddyPress v4BuddyPress v4
BuddyPress v4
 
Helping Data Teams with Puppet / Puppet Camp London - Apr 13, 2015
Helping Data Teams with Puppet / Puppet Camp London - Apr 13, 2015Helping Data Teams with Puppet / Puppet Camp London - Apr 13, 2015
Helping Data Teams with Puppet / Puppet Camp London - Apr 13, 2015
 
Puppet Camp London 2015 - Helping Data Teams with Puppet
Puppet Camp London 2015 - Helping Data Teams with PuppetPuppet Camp London 2015 - Helping Data Teams with Puppet
Puppet Camp London 2015 - Helping Data Teams with Puppet
 
Writing Plugins for WordPress MU
Writing Plugins for WordPress MUWriting Plugins for WordPress MU
Writing Plugins for WordPress MU
 
HackCon - SPF
HackCon - SPFHackCon - SPF
HackCon - SPF
 
How Modern Software Architecture Benefits from Patterns Found in Natural Comp...
How Modern Software Architecture Benefits from Patterns Found in Natural Comp...How Modern Software Architecture Benefits from Patterns Found in Natural Comp...
How Modern Software Architecture Benefits from Patterns Found in Natural Comp...
 
The GiveCamp Guide to WordPress
The GiveCamp Guide to WordPressThe GiveCamp Guide to WordPress
The GiveCamp Guide to WordPress
 

Recently uploaded

Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 

Recently uploaded (20)

Accelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish CachingAccelerate your Kubernetes clusters with Varnish Caching
Accelerate your Kubernetes clusters with Varnish Caching
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
 
"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
Speed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in MinutesSpeed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in Minutes
 
IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptxUnpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
Unpacking Value Delivery - Agile Oxford Meetup - May 2024.pptx
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 

“Debugging is on the table” Dr. House pergunta a um Sysadmin