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 […]

Posted on November 13, 2017 at 10:09 am by sergeyt · Permalink · Leave a comment
In: Life, Linux

Things to keep in mind about HTTP/2

This talk is just unbelievably helpful.

Posted on September 21, 2017 at 9:52 am by sergeyt · Permalink · Leave a comment
In: Uncategorized

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.

Posted on September 11, 2017 at 12:39 pm by sergeyt · Permalink · Leave a comment
In: MongoDB

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. […]

Posted on August 14, 2017 at 11:22 am by sergeyt · Permalink · Leave a comment
In: Solaris

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 […]

Posted on July 19, 2017 at 12:35 pm by sergeyt · Permalink · Leave a comment
In: MongoDB

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.

Posted on July 4, 2017 at 2:23 pm by sergeyt · Permalink · Leave a comment
In: MongoDB

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] […]

Posted on May 30, 2017 at 12:16 pm by sergeyt · Permalink · Leave a comment
In: TIL

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.

Posted on May 25, 2017 at 2:25 pm by sergeyt · Permalink · Leave a comment
In: TIL

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 […]

Posted on February 9, 2017 at 5:03 pm by sergeyt · Permalink · Leave a comment
In: MongoDB

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 […]

Posted on February 8, 2017 at 11:55 am by sergeyt · Permalink · Leave a comment
In: Linux