what is the problem? - wordpress.com · twitter @derek_stadnicki { } what is the problem? both the...

13
DEVOPS IN THE ENTERPRISE Introducing DevOps practices in the enterprise with ElasticSearch Logstash and Kibana SHANE RAINVILLE Email [email protected] Web http://www.serverlab.ca Twitter @ShaneRainville DEREK STADNICKI Email [email protected] Web http://storageblocks.wordpress.com Twitter @derek_stadnicki { }

Upload: truonghuong

Post on 01-Mar-2019

218 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: What is the Problem? - WordPress.com · Twitter @derek_stadnicki { } What is the Problem? Both the Development team and Operations team gets called for the same problems

DEVOPS IN THE

ENTERPRISE

Introducing DevOps practices in the

enterprise with ElasticSearch Logstash

and Kibana

SHANE RAINVILLEEmail [email protected]

Web http://www.serverlab.ca

Twitter @ShaneRainville

DEREK STADNICKIEmail [email protected]

Web http://storageblocks.wordpress.com

Twitter @derek_stadnicki

{ }

Page 2: What is the Problem? - WordPress.com · Twitter @derek_stadnicki { } What is the Problem? Both the Development team and Operations team gets called for the same problems

What is the Problem?

Both the Development team and Operations team gets

called for the same problems

Developers have insight into the application but not

overall server performance

Operations can see server performance but does not

have insight into the application

No way to correlate application events to performance

events

Development and Operations don’t share the same

information

Page 3: What is the Problem? - WordPress.com · Twitter @derek_stadnicki { } What is the Problem? Both the Development team and Operations team gets called for the same problems

Development vs Operations Tool Sets

Development Tools Operations Tools

• Application Logs • Vmware Performace Tools

• OS Logs • Network Perfromance Tools – Solarwinds, MRTG

• Linux Performance tools like ps, top, etc • OS Logs

• Linux Performance Tools like ps, top, etc

Page 4: What is the Problem? - WordPress.com · Twitter @derek_stadnicki { } What is the Problem? Both the Development team and Operations team gets called for the same problems

Requirements and Goals

The same information made available to both teams

Information made available in management friendly

form

The ability to correlate application events with

performance events

Ability to scale the solution to the rest of the enterprise

as needed

Ease of deployment and management

Page 5: What is the Problem? - WordPress.com · Twitter @derek_stadnicki { } What is the Problem? Both the Development team and Operations team gets called for the same problems

LogstashLog aggregation

and parsing

ElasticsearchSearch and Analytics

KibanaVisualization of

logged data

ELK Stack

Page 6: What is the Problem? - WordPress.com · Twitter @derek_stadnicki { } What is the Problem? Both the Development team and Operations team gets called for the same problems

Okay. Now What?

Page 7: What is the Problem? - WordPress.com · Twitter @derek_stadnicki { } What is the Problem? Both the Development team and Operations team gets called for the same problems

The Architect’s Dilemma

Why Redis

Logstash Forwarder

CentOS 5

Scalability

Page 8: What is the Problem? - WordPress.com · Twitter @derek_stadnicki { } What is the Problem? Both the Development team and Operations team gets called for the same problems

Gathering the Logs

• Pick target servers

• Install log shipper

• Decide on what logs to capture

Page 9: What is the Problem? - WordPress.com · Twitter @derek_stadnicki { } What is the Problem? Both the Development team and Operations team gets called for the same problems

Log Ingestion

• All logs get sent via the log shipper to the Logstash server

• Logs get ingested into ElasticSearch

• Filters are using Grok to parse unstructured logs

Page 10: What is the Problem? - WordPress.com · Twitter @derek_stadnicki { } What is the Problem? Both the Development team and Operations team gets called for the same problems

Apache Error Log Dashboard

Page 11: What is the Problem? - WordPress.com · Twitter @derek_stadnicki { } What is the Problem? Both the Development team and Operations team gets called for the same problems

Root Logon Dashboard

Page 12: What is the Problem? - WordPress.com · Twitter @derek_stadnicki { } What is the Problem? Both the Development team and Operations team gets called for the same problems

Discovery

Day one found issues that none of the teams were

aware of

Development and operations teams were able to sit

down and discuss the application using the same info

Both teams are now collaborating on a new architecture

for the application

Logstash is now being used by both teams together to

test assumptions about new applications during the

development process

Page 13: What is the Problem? - WordPress.com · Twitter @derek_stadnicki { } What is the Problem? Both the Development team and Operations team gets called for the same problems

DEVOPS IN THE

ENTERPRISE Q&A

SHANE RAINVILLEEmail [email protected]

Web http://www.serverlab.ca

Twitter @ShaneRainville

DEREK STADNICKIEmail [email protected]

Web storageblocks.wordpress.com

Twitter @derek_stadnicki

{ }