This talk covers a basic methodology for finding and fixing problems in a live system. It covers general techniques for finding the source of issues quickly, workarounds, patching, digging into code, when and how to get help.
7. Communicate
Prepare Isolate Control Diagnose Patch Clean Fix Document
Dear Magic Makers -
As some of you may already know, customers are experiencing troubles retrieving
their historical records because our archive server is not responding. I am
investigating the issue now and will send an update in 20 minutes.
Please fence calls in the meanwhile. If someone can please get me a redbull and
some nacho cheese corn nuts in the meanwhile, that would be stellar.
Thanks!
coworkers
Mayday! High Priority
bossman
8. Prepare for the Worst
‣ Backups
‣ Local Data.fs
‣ Set a time limit
Prepare Isolate Control Diagnose Patch Clean Fix Document
9. Disable Interference
Disabled all backups and
packing
Opened up port 8080 to
outside network
Moved logs to temporary
disk
Prepare Isolate Control Diagnose Patch Clean Fix Document
10. Isolation by Elimination
Prepare Isolate Control Diagnose Patch Clean Fix Document
Network Hardware Software Data
works for
me
obvious,
sporadic
crazy shit
everything
else
not
recreatable
locally
11. Isolation by Elimination
Prepare Isolate Control Diagnose Patch Clean Fix Document
Network Hardware Software Data
works for
me
obvious,
sporadic
crazy shit
everything
else
not
recreatable
locally
12. Isolation by Elimination
Prepare Isolate Control Diagnose Patch Clean Fix Document
Network Hardware Software Data
works for
me
obvious,
sporadic
crazy shit
everything
else
not
recreatable
locally
13. Isolation by Elimination
Prepare Isolate Control Diagnose Patch Clean Fix Document
Network Hardware Software Data
works for
me
obvious,
sporadic
crazy shit
everything
else
not
recreatable
locally
14. Isolation by Elimination
Prepare Isolate Control Diagnose Patch Clean Fix Document
Network Hardware Software Data
works for
me
obvious,
sporadic
crazy shit
everything
else
not
recreatable
locally
25. Machine BMachine A
How Zeo Cache Works
Zope
Mem.
Cache
Zeo
I Want X
I Need X
X
X
X
Modified X
26. Machine BMachine A
How Zeo Cache Works
Zope
Mem.
Cache
Zeo
I Want X
I Need X
X
X
X
Modified X
‘
27. Machine BMachine A
How Zeo Cache Works
Zope
Mem.
Cache
Zeo
I Want X
I Need X
X
X
X
Modified X
‘ Modified X
28. Machine BMachine A
Machine BMachine A
How Zeo Cache Works
Zope
Mem.
Cache
Zeo
I Want X
I Need X
X
X
X
Modified X
‘ Modified X
Zope
Disk
Cache
Zeo
I Want X
X
X
Modified X
‘ RESTART
Inconsistent State!
30. Take time to make time
‣ Minimize customer angst
‣ Hang out in custom
‣ Acquisition is your friend
‣ Remember request and
response
Prepare Control Diagnose Patch Clean Fix DocumentIsolate
32. Unique or Just Not Obvious?
‣ Zope, zeo, system logs
‣ System stats/monitoring
Prepare Isolate Control Diagnose Patch Clean Fix Document
33. Test Case
Prepare Isolate Control Diagnose Patch Clean Fix Document
Sarcoidosis!
Probably
not...
Estimate
Fix Time
+
34. Horizon of Intervention
Prepare Isolate Control Diagnose Patch Clean Fix Document
Can I
handle this
problem?
Can
I do it in
a timely
manner?
Yes
IRC
Plone-users
Yes
NONO
Friends
Colleagues
35. Front End
Errors
Take the performance hit
Disable the malfunctioning piece
Prepare Isolate Control Diagnose Patch Clean Fix Document
37. Have I mentioned the
importance of
Prepare Isolate Control Diagnose Patch Clean Fix Document
BACKUPS
working with
yet?
Especially when unfucking data...
38. Clean up
Prepare Isolate Control Diagnose Patch Clean Fix Document
Disabled all backups and
packing
Opened up port 8080 to
outside network
Moved logs to temporary
disk
Disabled zopes 5-10
39. Clean up
Prepare Isolate Control Diagnose Patch Clean Fix Document
Disabled all backups and
packing
Opened up port 8080 to
outside network
Moved logs to temporary
disk
Disabled zopes 5-10
40. Prepare Isolate Control Diagnose Patch Clean Fix Document
Delete extra/bad files
Scripts in version control
Communicate
Clean up
41. Prepare Isolate Control Diagnose Patch Clean Fix Document
I’ve got a fever, and
the only solution... is
MORE PATCH!
42. ‣ Update/Close Tickets
‣ Integrate Test Cases
‣ Document Processes
Prepare Isolate Control Diagnose Patch Clean Fix Document
43. Handling Data Errors
Prepare Isolate Control Diagnose Patch Clean Fix Document
Network Hardware Software Data
works for
me
obvious,
sporadic
crazy shit
everything
else
not
recreatable
locally
44. Handling Data Errors
Prepare Isolate Control Diagnose Patch Clean Fix Document
Network Hardware Software Data
works for
me
obvious,
sporadic
crazy shit
everything
else
not
recreatable
locally
45. Handling Data Errors
Prepare Isolate Control Diagnose Patch Clean Fix Document
Network Hardware Software Data
works for
me
obvious,
sporadic
crazy shit
everything
else
not
recreatable
locally
46. Handling Data Errors
Prepare Isolate Control Diagnose Patch Clean Fix Document
Network Hardware Software Data
works for
me
obvious,
sporadic
crazy shit
everything
else
not
recreatable
locally
47. Handling Data Errors
Prepare Isolate Control Diagnose Patch Clean Fix Document
Network Hardware Software Data
works for
me
obvious,
sporadic
crazy shit
everything
else
not
recreatable
locally
54. When in doubt...
‣ PDB is your friend
‣ The source is your friend
‣ Throw a party for your friends
Prepare Isolate Control Diagnose Patch Clean Fix Document
55. ‣ Know your System
‣ Understand the Tools
‣ Be Nice to your
Neighbors