Skip to content

Instantly share code, notes, and snippets.

View seldo's full-sized avatar

Laurie Voss seldo

View GitHub Profile
07:04 seldo: For our outage report, to clarify: the whole DC with the shield cache in it went down?
07:04 seldo: You said you lost "v37" but I don't know if that's a box or a cluster or a whole DC
07:05 Mithrandir: it's a machine.
07:05 Mithrandir: (a single machine)
07:05 seldo: So is that machine a SPoF was there a secondary cause of the shield failure?
07:05 seldo: *or
07:07 Mithrandir: we turn off shielding on varnish restarts, since the shielding doesn't help until there's content in the cache. We've been rolling out fixes for some bugs recently (and hitting some bugs), so we ended up with all machines in ASH having shielding turned off (since they had recently been restarted).
07:07 Mithrandir: cache-v37 was the final machine with shielding turned on in ASH
07:08 Mithrandir: so what we're doing to avoid this happening again is we'll be forcing shielding on early if we get below threshold.
07:09 seldo: Ahhh, okay, that explanation makes sense
import UIKit
class MasterViewController: UITableViewController {
var detailViewController: DetailViewController? = nil
var objects = NSMutableArray()
override func awakeFromNib() {
super.awakeFromNib()
var largest = 0
var largestType:String
for (kind, numbers) in interestingNumbers {
for number in numbers {
if number > largest {
largest = number
largestType = kind
}
}
}
var Joi = require('joi');
var schema = Joi.object().keys({
username: Joi.string().alphanum().min(3).max(30).required(),
password: Joi.string().regex(/[a-zA-Z0-9]{3,30}/),
access_token: [Joi.string(), Joi.number()],
birthyear: Joi.number().integer().min(1900).max(2013),
email: Joi.string().email()
}).with('username', 'birthyear').without('password', 'access_token');
Apr 30 18:17:45 ip-172-31-38-212 pound: fullfatdb.npmjs.com 98.136.200.96 - - [30/Apr/2014:18:17:45 +0000] "GET /registry/ HTTP/1.1" 200 260 "" "CouchDB/1.3.1"
Apr 30 18:17:46 ip-172-31-38-212 pound: fullfatdb.npmjs.com 202.116.65.189 - - [30/Apr/2014:18:17:46 +0000] "GET /registry/ HTTP/1.1" 200 260 "" "CouchDB/1.4.0"
Apr 30 18:17:46 ip-172-31-38-212 pound: fullfatdb.npmjs.com 67.229.180.2 - - [30/Apr/2014:18:17:46 +0000] "HEAD /registry/ HTTP/1.1" 200 - "" "CouchDB/1.5.0"
Apr 30 18:17:46 ip-172-31-38-212 pound: fullfatdb.npmjs.com 67.229.180.2 - - [30/Apr/2014:18:17:46 +0000] "GET /registry/ HTTP/1.1" 200 260 "" "CouchDB/1.5.0"
Apr 30 18:17:46 ip-172-31-38-212 pound: fullfatdb.npmjs.com 67.229.180.2 - - [30/Apr/2014:18:17:46 +0000] "GET /registry/_local/c3fef33a7d9a09d6224820549c4ec02d HTTP/1.1" 404 41 "" "CouchDB/1.5.0"
Apr 30 18:17:46 ip-172-31-38-212 pound: fullfatdb.npmjs.com 67.229.180.2 - - [30/Apr/2014:18:17:46 +0000] "GET /registry/_local/38f4b7c61e5a0ce974448f5f2c55ff90 HTTP/1.1" 404 41 "" "CouchDB
<!-- output_js "secondary" -->
<script type="text/javascript" src="https://slack.global.ssl.fastly.net/17808/js/TS.api_1395772343.https.gz.js" crossorigin="anonymous"></script>
<script type="text/javascript" src="https://slack.global.ssl.fastly.net/18827/js/TS.channels_1397844935.https.gz.js" crossorigin="anonymous"></script>
<script type="text/javascript" src="https://slack.global.ssl.fastly.net/18844/js/TS.groups_1398024935.https.gz.js" crossorigin="anonymous"></script>
<script type="text/javascript" src="https://slack.global.ssl.fastly.net/18832/js/TS.files_1397856789.https.gz.js" crossorigin="anonymous"></script>
<script type="text/javascript" src="https://slack.global.ssl.fastly.net/18975/js/TS.activity_1398275640.https.gz.js" crossorigin="anonymous"></script>
<script type="text/javascript" src="https://slack.global.ssl.fastly.net/18355/js/TS.activity.view_1397000331.https.gz.js" crossorigin="anonymous"></script>
<script type="text/javascript" src="https://slack.global.ssl.fastly.net/17798/js/TS.ims_1395
### Keybase proof
I hereby claim:
* I am seldo on github.
* I am seldo (https://keybase.io/seldo) on keybase.
* I have a public key whose fingerprint is EBEC BF34 5213 85EF B3D9 B23B 18E9 8404 8E8C C43E
To claim this, I am signing this object:
2014-03-22T00:36:11Z 151.250.79.17 "-" "GET /npm/public/registry/request/_attachments/request-2.33.0.tgz" 503 "node/v0.10.23 linux arm" "MISS" "manta_"
2014-03-22T00:36:11Z 151.250.79.17 "-" "GET /npm/public/registry/lazystream/_attachments/lazystream-0.1.0.tgz" 503 "node/v0.10.23 linux arm" "MISS" "manta_"
2014-03-22T00:36:12Z 151.250.79.17 "-" "GET /npm/public/registry/archiver/_attachments/archiver-0.5.2.tgz" 503 "node/v0.10.23 linux arm" "MISS" "manta_"
2014-03-22T00:36:12Z 92.148.1.254 "-" "GET /npm/public/registry/uglify-js/_attachments/uglify-js-1.2.5.tgz" 503 "node/v0.8.22 win32 ia32" "MISS" "manta_"
2014-03-22T00:36:13Z 151.250.79.17 "-" "GET /npm/public/registry/tar/_attachments/tar-0.1.19.tgz" 503 "node/v0.10.23 linux arm" "MISS" "manta_"
2014-03-22T00:36:13Z 151.250.79.17 "-" "GET /npm/public/registry/commander/_attachments/commander-1.3.2.tgz" 503 "node/v0.10.23 linux arm" "MISS" "manta_"
2014-03-22T00:36:14Z 151.250.79.17 "-" "GET /npm/public/registry/plist/_attachments/plist-0.4.3.tgz" 503 "nod
ubuntu@ip-172-31-40-167:~$ mtr -r -w -c 50 cache-fra1220.hosts.fastly.net
HOST: ip-172-31-40-167 Loss% Snt Last Avg Best Wrst StDev
1.|-- ec2-50-112-0-162.us-west-2.compute.amazonaws.com 0.0% 50 0.6 3.0 0.4 53.9 9.1
2.|-- 205.251.232.62 0.0% 50 1.0 1.2 0.6 15.3 2.1
3.|-- 205.251.232.146 0.0% 50 0.9 2.0 0.6 52.2 7.3
4.|-- 205.251.232.91 0.0% 50 19.7 17.7 13.1 70.5 8.5
5.|-- 205.251.225.163 0.0% 50 13.1 13.2 12.9 15.1 0.3
6.|-- ae-8.r05.sttlwa01.us.bb.gin.ntt.net 0.0% 50 19.9 20.2 19.7 23.7 0.6
7.|-- te0-0-0-1.ccr21.sea02.atlas.cogentco.com 0.0% 50 33.8 34.3 33.5 35.8 0.5
| `|-- 154.54.11.205
2014-03-16T00:03:45Z 78.97.64.65 "-" "GET /npm/public/registry/qs/_attachments/qs-0.6.6.tgz" 503 "node/v0.10.26 linux x64" "MISS" "shield__cache_fra1220_FRA__frankfurt_de"
2014-03-16T00:03:46Z 176.192.214.136 "-" "GET /npm/public/registry/mustache/_attachments/mustache-0.8.1.tgz" 503 "node/v0.10.26 darwin x64" "MISS" "shield__cache_fra1230_FRA__frankfurt_de"
2014-03-16T00:03:49Z 176.192.214.136 "-" "GET /npm/public/registry/cookie-jar/_attachments/cookie-jar-0.2.0.tgz" 503 "node/v0.10.26 darwin x64" "MISS" "shield__cache_fra1220_FRA__frankfurt_de"
2014-03-16T00:03:49Z 176.192.214.136 "-" "GET /npm/public/registry/match-stream/_attachments/match-stream-0.0.2.tgz" 503 "node/v0.10.26 darwin x64" "MISS" "shield__cache_fra1222_FRA__frankfurt_de"
2014-03-16T00:03:52Z 84.114.125.71 "-" "GET /npm/public/registry/strip-ansi/_attachments/strip-ansi-0.1.1.tgz" 503 "node/v0.10.26 darwin x64" "MISS" "shield__cache_fra1221_FRA__frankfurt_de"
2014-03-16T00:03:53Z 176.192.214.136 "-" "GET /npm/public/registry/domutils/_attac