Author Archive
No video during the flight
Don’t know what version of Linux they were running but looks like one of the following code paths triggered the issue: static int pca953x_read_regs(struct pca953x_chip *chip, int reg, u8 *val) { int ret; ret = chip->read_regs(chip, reg, val); if (ret < 0) { dev_err(&chip->client->dev, “failed reading register\n”); return ret; } return 0; } static int […]
Things to keep in mind about HTTP/2
This talk is just unbelievably helpful.
MongoDB 3.4 or stay on 3.2?
If you’re herding multiple shards this one should be convincing enough to jump on 3.4 bandwagon: mongos> sh.getBalancerHost() getBalancerHost is deprecated starting version 3.4. The balancer is running on the config server primary host.
Moving to OmniOS Community Edition
Had a small snag when I tried to upgrade my old (r151018) OmniOS installation to OmniOS CE as described in the ANNOUNCEMENT OmniOS Community Edition – OmniOSce r151022h During “pkg update” stage I got something similar to the following: pkg update: The certificate which issued this certificate:/C=US/ST=Maryland/O=OmniTI/OU=OmniOS/CN=OmniOS r151018 Release Signing Certificate/emailAddress=omnios-supp…@omniti.com could not be found. […]
How to reuse dropped sharded collection’s name
It happens that sometimes you want to drop your sharded collection and be able to reuse its name again. However, it might not be as straightforward as one expects it to be: mongos>sh.shardColelction(“your_database.your_collection”, { “sharded_key”: 1}) “code” : 13449, “ok” : 0, “errmsg” : “exception: collection your_database.your_collection already sharded” The error message might be different […]
TIL MongoDB Index Build could exceed 100%
A quote from SERVER-7631: Since data can be inserted while its running, this can go over 100 by design.
TIL Remove a Znode from Zookeeper
Yep, you could easily achieve that (and much more) using zkCli.sh (Zookeeper client): $ /usr/share/zookeeper/bin/zkCli.sh Connecting to localhost:2181 Welcome to ZooKeeper! JLine support is enabled WATCHER:: WatchedEvent state:SyncConnected type:None path:null [zk: localhost:2181(CONNECTED) 0] help ZooKeeper -server host:port cmd args connect host:port get path [watch] ls path [watch] set path data [version] rmr path delquota [-n|-b] […]
TIL HSTS requires a secure transport
Otherwise (quoting RFC6797): If an HTTP response is received over insecure transport, the UA MUST ignore any present STS header field(s). That means SSL certificate on your server must be valid, i.e. no errors or warnings when you open a page from a browser over https.
Restart your Mongos after maxConsecutiveFailedChecks
Take it literally. If you configured your MongoDB config servers as a replica set and for some reason, say a network outage, Mongos server lost connection to all of them and is not able to reconnect during maxConsecutiveFailedChecks attempts then, surprise, it becomes useless. Even if the network is up and running again, Mongos will […]
Watch “Monitorama 2016: All of Your Networking Monitoring is (probably) wrong” talk
Just came across this talk being mentioned in the comments on Hacker news and, boy, it’s absolutely amazing! Watch this hilarious talk here – Monitorama 2016: All of Your Networking Monitoring is (probably) wrong Btw, the talk is presented, presumably, by the same guy who wrote Monitoring and Tuning the Linux Networking Stack: Receiving Data […]