agile operations - xpdays france 2009

147
Agile and Operations for people with a good taste Gildas Le Nadan - Patrick Debois - Xpdays France 2009

Upload: patrick-debois

Post on 20-May-2015

1.800 views

Category:

Technology


1 download

DESCRIPTION

Explaining why developers and operations need to work together.

TRANSCRIPT

Page 1: Agile Operations - Xpdays France 2009

Agile and Operations

for people with a good taste

Gildas Le Nadan - Patrick Debois - Xpdays France 2009

Page 2: Agile Operations - Xpdays France 2009

GildasLe Nadan

Gildas comes from France

Page 3: Agile Operations - Xpdays France 2009

He has been working on servers for several years

Page 4: Agile Operations - Xpdays France 2009

Patrick Debois

Patrick comes from Belgium

Page 5: Agile Operations - Xpdays France 2009

He works as freelancer always looking for good opportunities

Page 6: Agile Operations - Xpdays France 2009

We both come from sysadmin land

Page 7: Agile Operations - Xpdays France 2009

But we have been looking with great interest to the agile developer community

Page 8: Agile Operations - Xpdays France 2009

Finally we decided to give our own version of agile for operations

Page 9: Agile Operations - Xpdays France 2009

Today we have two stories for you

Page 10: Agile Operations - Xpdays France 2009

The first one is about the impact of agile development on operations

Page 11: Agile Operations - Xpdays France 2009

The second one is what it means to do agile in Operations

Page 12: Agile Operations - Xpdays France 2009

So letʼs start with the first great story. It starts off like a beautiful project

Page 13: Agile Operations - Xpdays France 2009

Once upon a time there was a team that had a lot of Agile Developers with good intentions

Page 14: Agile Operations - Xpdays France 2009

They had prepared all their frameworks and IDEʼs

Page 15: Agile Operations - Xpdays France 2009

They had all the tools they needed

Page 16: Agile Operations - Xpdays France 2009

They even had experts on Usability

Page 17: Agile Operations - Xpdays France 2009

They worked in close cooperation with the customer

Page 18: Agile Operations - Xpdays France 2009

They worked hard

Page 19: Agile Operations - Xpdays France 2009

Using their Post-its in abundance

Page 20: Agile Operations - Xpdays France 2009

They dutifully continued holding their standup meetings

Page 21: Agile Operations - Xpdays France 2009

They monitored their progress using a backlog

Page 22: Agile Operations - Xpdays France 2009

And this is the result after their first sprint. A fully working product!

Page 23: Agile Operations - Xpdays France 2009

And the second sprint again, but still room for a lot of improvement

Page 24: Agile Operations - Xpdays France 2009

They worked and they worked, but after a while they realized ...

Page 25: Agile Operations - Xpdays France 2009

That they were adminstrating their systems in an adhoc manner and that they were not super sysadmins

Page 26: Agile Operations - Xpdays France 2009

So They called in a Sysadmin to fix it

Page 27: Agile Operations - Xpdays France 2009

But It turned out their development environment ...

Page 28: Agile Operations - Xpdays France 2009

was quiet different from their test environment.

Page 29: Agile Operations - Xpdays France 2009

and nowhere near production environment!

Page 30: Agile Operations - Xpdays France 2009

They were still using manual installations

Page 31: Agile Operations - Xpdays France 2009

The sysadmins also cleanup up the development and test environment, providing a good base for further development

Page 32: Agile Operations - Xpdays France 2009

While doing so, Operations followed their official ITIL guidelines,

Page 33: Agile Operations - Xpdays France 2009

While they cleaned up things a few testers found some bugs

Page 34: Agile Operations - Xpdays France 2009

But overall most clients were happy with the quality

Page 35: Agile Operations - Xpdays France 2009

But still it felt that there was something missing.. It required more Tasting euh testing by a senior person

Page 36: Agile Operations - Xpdays France 2009

There was a real nasty bug that came up once in a while

Page 37: Agile Operations - Xpdays France 2009

But the problem was Hard to catch

Page 38: Agile Operations - Xpdays France 2009

Eventually they nailed it

Page 39: Agile Operations - Xpdays France 2009

Confident now, they decided to make their first public release

Page 40: Agile Operations - Xpdays France 2009

There were some minor usability problems.

Page 41: Agile Operations - Xpdays France 2009

But they were easily solved by the project team with a temporary fix

Page 42: Agile Operations - Xpdays France 2009

They created some workarounds

Page 43: Agile Operations - Xpdays France 2009

Delivering a great result

Page 44: Agile Operations - Xpdays France 2009

Inspired by the success Marketing wanted to put out lots of new features

Page 45: Agile Operations - Xpdays France 2009

But then Operations Team shouted NOOOOOO!!!!!

Page 46: Agile Operations - Xpdays France 2009

because in reality, things started to get ugly in production

Page 47: Agile Operations - Xpdays France 2009

First they had dealt with it, doing some emergency patches

Page 48: Agile Operations - Xpdays France 2009

But now things got REALLY ugly

Page 49: Agile Operations - Xpdays France 2009

Customers were experiencing bad response times

Page 50: Agile Operations - Xpdays France 2009

When they finally activated the logging , carefully checking the impact, the logs were full of useless debug messages

Page 51: Agile Operations - Xpdays France 2009

Eventually it appeared, that the usage mix was different: real users would use it synchronous way but the request by the APIʼs were asynchronous

Page 52: Agile Operations - Xpdays France 2009

So operations decided to put this in the FAQ

Page 53: Agile Operations - Xpdays France 2009

And they put on a ticket system

Page 54: Agile Operations - Xpdays France 2009

They installed larger servers

Page 55: Agile Operations - Xpdays France 2009

But the platform stayed fragile and required frequent restarts

Page 56: Agile Operations - Xpdays France 2009

One of the classic problems is that projects think they are the only one

Page 57: Agile Operations - Xpdays France 2009

But this project was not the only one operations had to support

Page 58: Agile Operations - Xpdays France 2009

They also had to document things, not loose any information

Page 59: Agile Operations - Xpdays France 2009

because, when the project was finished, some developers were assigned maintenance fixes. At some moment, nobody of the original team was still there, and junior staff was trained to step in

Page 60: Agile Operations - Xpdays France 2009

The development team had the following view on the subject

Page 61: Agile Operations - Xpdays France 2009

Some people, probably the most senior, had a broader view of the platform operations was operating.

Page 62: Agile Operations - Xpdays France 2009

In reality it really looked this way

Page 63: Agile Operations - Xpdays France 2009

Ops giving specifications

To avoid this kind of surprises in the future, they invited operations people during the design phase. This way they could transmit their knowledge of the productions environment and it was written down in the request for proposals.

Page 64: Agile Operations - Xpdays France 2009

Ops wrote down every requirement they could think of

Page 65: Agile Operations - Xpdays France 2009

But this Big Design UpFront resulted in and over complicated,overly designed and over engineered solutions.

Page 66: Agile Operations - Xpdays France 2009

The solutions seems to be to integrate operations IN the project phase.This both in the beginning and during the project.So both in good and bad times...

Page 67: Agile Operations - Xpdays France 2009

Because these people will constantly think about ... logs

Page 68: Agile Operations - Xpdays France 2009

They will check that sizing is done correctly

Page 69: Agile Operations - Xpdays France 2009

They will think of emergency procedures

Page 70: Agile Operations - Xpdays France 2009

Make sure Parallel Processing works

Page 71: Agile Operations - Xpdays France 2009

That your applications are packaged nicely

Page 72: Agile Operations - Xpdays France 2009

that your data can be archived and that the backup AND restore works

Page 73: Agile Operations - Xpdays France 2009

take the necessary security measures

Page 74: Agile Operations - Xpdays France 2009

think of good deployment tools

Page 75: Agile Operations - Xpdays France 2009

They will think about reporting. Find relations with other systems Think of reports management will request for SLA reporting

Page 76: Agile Operations - Xpdays France 2009

In the end everybody will be proud of what they prepared

Page 77: Agile Operations - Xpdays France 2009

And that includes the serving staff as well!

Page 78: Agile Operations - Xpdays France 2009

If you think now. Yeah but Iʼm in another business

Page 79: Agile Operations - Xpdays France 2009

You will always require some kind of log files

Page 80: Agile Operations - Xpdays France 2009

You will always need infrastructure

Page 81: Agile Operations - Xpdays France 2009

More good tools

Page 82: Agile Operations - Xpdays France 2009

Someone who needs to deal with angry customers

Page 83: Agile Operations - Xpdays France 2009

Good End User Manuals

Page 84: Agile Operations - Xpdays France 2009

The need for archiving

Page 85: Agile Operations - Xpdays France 2009

Cleanup Routines

Page 86: Agile Operations - Xpdays France 2009

dealing with capacity peeks

Page 87: Agile Operations - Xpdays France 2009

Monitoring the health of your systems

Page 88: Agile Operations - Xpdays France 2009

Some who takes care of supplies to keep your systems going

Page 89: Agile Operations - Xpdays France 2009

Hopefully you will see the light in the end

Page 90: Agile Operations - Xpdays France 2009

but off course , disasters can still happen!

Page 91: Agile Operations - Xpdays France 2009

AgileManifesto

Ok, the operations team needs to be agile, and it needs to be integrated in the project.How would the agile manifesto apply to YOUR work as an operations member

Page 92: Agile Operations - Xpdays France 2009

http://agilemanifesto.org

We value the items on the left more then on the right

Page 93: Agile Operations - Xpdays France 2009

Individuals and interactionsover processes and tools

Page 94: Agile Operations - Xpdays France 2009

ITIL vs.

Agile

ITIL has lot of practices for keeping things running. It used to be a change moderator, but as development is more agile we need to adapt.ITIL v3 is has introduced the notion of continuous improvement too.

Page 95: Agile Operations - Xpdays France 2009

Operations as a cost centre

Increase in Maturity can bring Value (Gartner scale)

0 ADhoc1 Reactive2 Proactive3 Service4 Value

Page 96: Agile Operations - Xpdays France 2009

There’s no magic tool

There’s no magic tool that can save you from bad organization. It still requires you to think!

Page 97: Agile Operations - Xpdays France 2009

Working software over comprehensive Documentation

Working software over comprehensive DocumentationWorking means working in operation (Scope Problem , Dev) / Working Service

Page 98: Agile Operations - Xpdays France 2009

Customer Collaboration over Contract Negotiation

Who’s the customer (Internal, External / Different ASP, Normal company, internal support)

Page 99: Agile Operations - Xpdays France 2009

Responding to change over following a plan

Operations has been doing this for years. Every incident / issue requires us to react/adapt things

Page 100: Agile Operations - Xpdays France 2009

Avoid the “Big Design UpFront”.

Page 101: Agile Operations - Xpdays France 2009
Page 102: Agile Operations - Xpdays France 2009

Our highest priority is to satisfy the

customer through early and continuous delivery of valuable

software

Our highest priority is to satisfy the customers: endusers but also developers

What is early for the customer? 4d for a server, 2 min for a new account? What is value is for customer?

Page 103: Agile Operations - Xpdays France 2009

Risk Mgt

DEV /Project = Creating valueLoss of Value (protect value) = OPS

Page 104: Agile Operations - Xpdays France 2009

Welcome changing requirements even late in development. Agile processes harness

change for the customer’s competitive advantage

Page 105: Agile Operations - Xpdays France 2009

Ops are often very resistive to change. Bussines might require constant adaptation.

Page 106: Agile Operations - Xpdays France 2009

Deliver working software frequently,

from a couple of weeks to a couple of

months, with a preference for the shorter timescale

Do things often so you get better at it.

Page 107: Agile Operations - Xpdays France 2009

Avoid Big bang migrations. Go in small steps.

Page 108: Agile Operations - Xpdays France 2009

Business people and developers must work together daily throughout the project

Page 109: Agile Operations - Xpdays France 2009

Have operations in your project and afterwardsIn good and bad times...

Page 110: Agile Operations - Xpdays France 2009

Build projects around motivated

individuals. Give them the environment and

the support they need and trust them to get the job done.

Different environments : dev, test, prepod, training, trial, prod, qaDo you trust your developers to do deployment? Do you any secrets/super power they don’t have?

Page 111: Agile Operations - Xpdays France 2009

The most efficient method of conveying

information to and with a development team is

face-to-face

Don’t lock yourself in a small room with only email communication!

Page 112: Agile Operations - Xpdays France 2009

Working software is the primary measure

It things work, and people are satisfied, you’re doing a good job!

Page 113: Agile Operations - Xpdays France 2009

Agile Processes promote sustainable

development. The sponsors,

developers, and users should be able to maintain constant pace indefinitely

Shared projectsSpecialistsOn call + daily jobextend deployment power beyond ops team to spread the load

Page 114: Agile Operations - Xpdays France 2009

Continuous Attention to Technical Excellence and good

design enhances agility

Keep your skills sharp! You never know who is looking at you.

Page 115: Agile Operations - Xpdays France 2009

Scalability

Thinks of Scalabilty

Page 116: Agile Operations - Xpdays France 2009

M A N

AG E A

BI L I T

Y

Manageability (start, stop subparts/ monitor progress)

Page 117: Agile Operations - Xpdays France 2009

Maintainability

Maintenability = changed the text depending on the environment that changes

Page 118: Agile Operations - Xpdays France 2009

Securability

Securability

Page 119: Agile Operations - Xpdays France 2009

Reliability

Reliability

Page 120: Agile Operations - Xpdays France 2009

F l e x i b i l i t y

Flexibility

Page 121: Agile Operations - Xpdays France 2009

Why is it important

Ops has limited control over the elements they need to integrate or take care or

Page 122: Agile Operations - Xpdays France 2009

Loose CouplingA

B

C

CA’

B

CA’

BD

E FG

Noodle SoupLoose coupling

Page 123: Agile Operations - Xpdays France 2009

Butterfly Effect

Butterfly effect

Page 124: Agile Operations - Xpdays France 2009

KPI and Monitoring

KPI and Monitoring

Page 125: Agile Operations - Xpdays France 2009

Simplicity -- the art of maximizing the

amount of work not done

http://farm1.static.flickr.com/78/168397680_01673102c2.jpg?v=0Don’t go over engineer, Pragmatic

Page 126: Agile Operations - Xpdays France 2009

SimplicityDesign Issues: Keep things Simple Stupid (KISS)

Donʼt over cluster, loop networks, ...

Page 127: Agile Operations - Xpdays France 2009

Best Architectures,

requirements and designs emerge from

self-organizing teams.

Use the tools you can adapt to your needs as you require them. Not because they have a good marketing.

Page 128: Agile Operations - Xpdays France 2009

Closed Software Closed Hardware

Avoid Closed Source Software or Closed Appliances

Page 129: Agile Operations - Xpdays France 2009

Multiple Projects

• One Product Owner?

• = Program Manager

Be clear on who is your customers. Your boss, project manager(s), tickets?

Page 130: Agile Operations - Xpdays France 2009

Incidents vs Projects

Avoid being a Shared resource, pick the phone, take complaints, and new projectsSo you can commit to your work better.

Page 131: Agile Operations - Xpdays France 2009

Pair System Administration

Operations decided to go for pair sysadminstration

Project but also for incidentsLearning , spreading the knowledge (vs. specialist / hero culture)

http://www.flickr.com/photos/mitikusa/2504868526/

Page 132: Agile Operations - Xpdays France 2009

Continuous Improvement

• Burndown charts vs Qos

• Target, no absolute/ Estimation

Always try to improve yourself

Page 133: Agile Operations - Xpdays France 2009

Virtualized Hardware

Go virtual on your hardware. Stop your emotions ;-)

Page 134: Agile Operations - Xpdays France 2009

Automated Deployment

Automate things, that you don’t want to do over and over again.DRY: don’t repeat yourself

Page 135: Agile Operations - Xpdays France 2009

Config Mgt

Version control your stuff, use tools like puppet, chef in stead of custom scripts

Page 136: Agile Operations - Xpdays France 2009

Doing Incremental Steps

Work in small stepsChanges in configurations: better traceability

Page 137: Agile Operations - Xpdays France 2009

Refactoring

You need to correct mistakes.

Page 138: Agile Operations - Xpdays France 2009

Test Driven Administration

Be sure that you can test/monitor what you need to have things working.Otherwise you are blind when changes happen.

Page 139: Agile Operations - Xpdays France 2009

Trend analyze for better prediction of when things will fail

Page 140: Agile Operations - Xpdays France 2009

Even if project finishes, environment will changes (patches, new hardware). So you need to able to test

Page 141: Agile Operations - Xpdays France 2009

Sometimes cleaning is easy. But if there are Legacy systems with lots of dependencies or no clear owner

Page 142: Agile Operations - Xpdays France 2009

Work together on your teams Continuous Integration system. You will learn a lot

Page 143: Agile Operations - Xpdays France 2009

So the next time youʼre celebrating a new project release

Page 144: Agile Operations - Xpdays France 2009

Maybe youʼll remember us

Page 145: Agile Operations - Xpdays France 2009

Make Operations Fun Again

So that your operations team will be happy

Page 147: Agile Operations - Xpdays France 2009

Thanks you for listening!