Date post: | 06-Jan-2017 |
Category: |
Technology |
Upload: | nearform |
View: | 1,555 times |
Download: | 1 times |
TO BEANNOUNCED
The Day afterPRODUCTION
@lucamaraschi
❤ !
I LOVE CORE DUMPS!
do epic shit!
"Production is WAR"— Bryan Cantrill
3 storiesof real production war
at scale!
ya…we faced all 3!
“Poor is the pupil who does not surpass his
master.”— Leonardo da Vinci
1.Walmart
The ’handleScope’ Saga
handleScopekeeps track of the objects on stack
150MB leak per day!
down to 22…
but still too muchfor the volume of Walmart!
3 months of debugging…
mdb…or suffer!
and Dtrace…or die!
Yep…and our workerswere leaking too! ;-)
Thank you Walmart!
✔
2.Netflix
Node.js in ’Flames’
v8 perf_events
Flame graphs
and…
Route handlers storedin 1 global array
Express.js recursively iterates and invokes
all handlersuntil it finds the right one!
next();
function next(err) { if (err && err === 'route') { return done(); }
var layer = stack[idx++]; if (!layer) { return done(err); }
if (layer.method && layer.method !== method) { return next(err); }
if (err) { layer.handle_error(err, req, res, next); } else { layer.handle_request(req, res, next); } }
the answeris…
Restify
First class residentTraceability
but how?
Bunyan
Dtrace probesor die!
Thank u Netflix!and chill…
✔
3.Joyent
PostgreSQL autovacuum
github.com/joyent/pglockanalyze
Thank you Joyent!
in progress…
actually…I just heard…
quote_literal()vs.
quote_ident()
wrong quote===
∞ LOOP
ProductionOperability
?
Traceability
Post-mortem
github.com/nodejs/tracing-wggithub.com/nodejs/post-mortem
--abort-on-uncaught-exception
what’s next?
post-mortem analysiscross platform!
mdb likeeverywhere!
github.com/indutny/llnode@indutny
Community drivenenterprise effort
“One reason I think debugging is so hard: you need to know much more about how computers work to debug than you do to
program.”Dave Pacheco(Twitter - 18 August 2015)
Thank you all!do u like Epic Shit?
JOIN #IceMobile!