How to setup Sysdig on Proxmox

First, you need to trust the Draios GPG key, configure the apt repository, and update the package list

curl -s https://s3.amazonaws.com/download.draios.com/DRAIOS-GPG-KEY.public | apt-key add -
curl -s -o /etc/apt/sources.list.d/draios.list http://download.draios.com/stable/deb/draios.list
apt-get update

Install sysdig:

apt-get install -y sysdig

Ok, now if you try start sysdig it won't work. Sysdig is not compatible with Proxmox outside of the box BUT we can make it work! First install the proxmox kernel (pve) (source):

aptitude update && aptitude install  pve-headers-`uname -r`

Then run these extra commands (see this github issue), don't forget to change "0.9.0" with the sysdig version you installed.

cd /var/lib/dkms/sysdig/0.9.0/source/
sed -i 's/for_each_process/for_each_process_all/g' *.[ch]
sed -i 's/while_each_thread/while_each_thread_all/g' *.[ch]
sed -i 's/do_each_thread/do_each_thread_all/g' *.[ch]

# build sysdig kernel module
dkms build -m sysdig -v 0.9.0
dkms install --force -m sysdig -v 0.9.0

Alright! You should now be able to run sysdig and csysdig on proxmox!


Give a try and bench ScyllaDB (Cassandra-compatible C++ db, 10x faster) with two lines of docker

I'm currently very interested by the ScyllaDB project as it announce a database that is "fully compatible with Apache Cassandra at 10x the throughput and jaw dropping low latency". Scylla is coded in C++ (so no garbage collection) and the team behind it seems quite awesome, so why not after all.
If like me you would like to give a quick try to ScyllaDB, here is two docker lines that will start ScyllaDB and run a benchmark over it:

Please note that running ScyllaDB inside a virtual box VM on MacOSX is not the best idea to grasp what it's capable of, however here is the result I got:

[Update] A little precision by Pekka Enberg: "Please remember that the Docker image is not optimized so performance isn't all that great. That's because Scylla needs a filesystem that supports AIO/DIO properly and the only one to do that is XFS at the moment."

Made with on a hot august night.