Per-module logging with glog
What I learned about Linux AIO today
- There is no filesystem that implements the AIO fsync operation.
- When performing AIO reads on vboxfs (VirtualBox filesystem) it will return -EPROTO. No idea why that happens.
- Neither vboxfs nor tmpfs suport O_DIRECT.
- AIO seems to work as advertised on XFS, with or without O_DIRECT.
Building the Mesos documentation
Building Mesos on OS X
So when you build Mesos on OS X, you have to use Homebrew to install a
bunch of dependencies. I was momentarily stumped by the fact that linking
the apr package with brew link --force
seemed to not make the headers
available. Then I realized that you are supposed to use apr-1-config to
find the headers location.
Like this:
$ ./configure --prefix=/opt/mesos --with-apr=$(apr-1-config --prefix)
Leak detection with tcmalloc
TLS best practices
Well after groveling around trying to find documentation on the right way to configure TLS, I came up with
- NIST guidelines (thanks Wikipedia)
- TLS Recommendations BCP (draft)
Just stashing these link here for next time …
Cannot extend ID. It is not part of highstate
I spent quite a while scratching my head over the following error message from Salt:
Cannot extend ID trafficserver in "base:trafficserver.collector". It is not part of the high state.
This actually means that you used a requisite clause like watch_in
to inject a dependency into a state that Salt cannot resolve. I filed bug 7336.
Creating multiple resources with Salt
I wanted to create a Salt Stack state that manages multiple directories. I figured that there was a way to do this, but could not see a good example in the documentation. Fortunately, the very helpful #salt IRC channel pointed me to the answer:
hierarchy:
file.directory:
- user: root
- group: root
- mode: 755
- makedirs: True
- names:
- /var/lib/hierarchy
- /var/lib/hierarchy/a
- /var/lib/hierarchy/b
- /var/lib/hierarchy/b/c
- /var/lib/hierarchy/b/c/d