disposable testing environments: there's nothing like production except production

23
Monday, June 18, 12

Upload: atlassian

Post on 21-Nov-2014

866 views

Category:

Technology


1 download

DESCRIPTION

Application environment and content are both critical to practical and useful test environments. Running your Confluence or JIRA instance in a VM allows for easy creation of sandboxes, or copies, of your production environment. Done correctly, having a snapshot copy of your environment opens up many possibilities - such as testing upgrades, testing plugins, or running 'what-if' scenarios. Your servlet container, attachments directory, database, and plugin configurations are all important to your instance and must be considered when creating a copy of production. Eyefinity will also share a real-life report of the ease, and unexpected consequences, of exporting users and content from one instance of Confluence and importing them in to another instance of Confluence when VM copying may not be available or desired. Expect to hear: - Real-life examples - Gotchas - Steps anyone can follow - Considerations important to most Confluence instances.

TRANSCRIPT

Page 1: Disposable Testing Environments: There's Nothing Like Production Except Production

Monday, June 18, 12

Page 2: Disposable Testing Environments: There's Nothing Like Production Except Production

Architect, EyefinityJay Ballinger

There's nothing like production, except production

Disposable testing environments

Monday, June 18, 12

Page 3: Disposable Testing Environments: There's Nothing Like Production Except Production

What does your

sandbox look like?

Monday, June 18, 12

Page 4: Disposable Testing Environments: There's Nothing Like Production Except Production

The path to a production sandboxEvaluate your current sandbox

A sandbox scenario

Benefits of a disposable production sandbox

Gotchas with using a production copy

Suggestions for successful sandboxes

Monday, June 18, 12

Page 5: Disposable Testing Environments: There's Nothing Like Production Except Production

How sandboxes are bornYour testing/staging attempt.

The first install before doing it for real.

A private just for us admins.

Restored from a backup.

Leftover instance by another team.

Monday, June 18, 12

Page 6: Disposable Testing Environments: There's Nothing Like Production Except Production

• Testing new plugins

• Playing with permissions

• Thinking about themes

• Wondering "what if"

How useful is your non-production sandbox?

Useful

Monday, June 18, 12

Page 7: Disposable Testing Environments: There's Nothing Like Production Except Production

• Testing new plugins

• Playing with permissions

• Thinking about themes

• Wondering "what if"

How useful is your non-production sandbox?

• Undo a mistake

• Investigate a problem

• Understanding upgrades

• What to expect when you make a change 'for real'

Useful Not Useful

Monday, June 18, 12

Page 8: Disposable Testing Environments: There's Nothing Like Production Except Production

A real-life scenario...

Monday, June 18, 12

Page 9: Disposable Testing Environments: There's Nothing Like Production Except Production

Moving a Space...

Monday, June 18, 12

Page 10: Disposable Testing Environments: There's Nothing Like Production Except Production

Moving a Space...

Monday, June 18, 12

Page 11: Disposable Testing Environments: There's Nothing Like Production Except Production

There is no safe, first-class way to copy a space.

Moving a Space...not exactly easy

Monday, June 18, 12

Page 12: Disposable Testing Environments: There's Nothing Like Production Except Production

It gets worse...We should upgrade at thesame time we import the 'other' Confluence.

Monday, June 18, 12

Page 13: Disposable Testing Environments: There's Nothing Like Production Except Production

Two risky operations.Perfect need for a sandbox.

Monday, June 18, 12

Page 14: Disposable Testing Environments: There's Nothing Like Production Except Production

How much downtime is needed for this maintenance?In what order should this be done?What to do if it all goes wrong?What will it look like when all done?

Only production can answer these

?Monday, June 18, 12

Page 15: Disposable Testing Environments: There's Nothing Like Production Except Production

#summit12

There's nothing is like production, except production.

Monday, June 18, 12

Page 16: Disposable Testing Environments: There's Nothing Like Production Except Production

Production-sized databaseProduction-sized attachmentsProduction-sized complexityProduction-sized problems

Production provides...

Monday, June 18, 12

Page 17: Disposable Testing Environments: There's Nothing Like Production Except Production

Elements of the sandbox

Servlet Container& webapp

Database homeindexes & attachments

Monday, June 18, 12

Page 18: Disposable Testing Environments: There's Nothing Like Production Except Production

Simple setupOne server instance

Monday, June 18, 12

Page 19: Disposable Testing Environments: There's Nothing Like Production Except Production

Confluence can run in a VMCopy entire 'machine'Make an exact copyTake snapshots

Virtual Machine to the rescue

might even be your backup strategy, eh?

for rollback/undo after a mistake

Monday, June 18, 12

Page 20: Disposable Testing Environments: There's Nothing Like Production Except Production

IP address and portsPlugins - like email checker as an exampleBase URLs Trusted applicationsFile space for images of the VM

Virtual Machine gotchas

Monday, June 18, 12

Page 21: Disposable Testing Environments: There's Nothing Like Production Except Production

Very different url / name / portAnnouncement banner screaming THIS IS NOT REALTry to match production performanceAutomate the VM copy action

Suggestions for sandbox

Monday, June 18, 12

Page 22: Disposable Testing Environments: There's Nothing Like Production Except Production

Snapshots and Rollbacks

Write cookbook for repeatable steps

Rehearse upgrade

Record timing on steps

Answer production questions

Confidence

Benefits of disposable VMs

Monday, June 18, 12

Page 23: Disposable Testing Environments: There's Nothing Like Production Except Production

Thank you!

Monday, June 18, 12