I have been working with Kubernetes in production for 2 years now. Over this time we have migrated 3 or 4 times clusters, changed techinques and tools of deployments, changed habits or pushed back to some of the hype and trends coming up every day on the kubernetes scene. I guess nothing new here, this is what almost everybody does. My ...
Read More »Monitoring process memory/CPU usage with top and plotting it with gnuplot
If you want to monitor the memory and CPU usage of a particular Linux process for a few minutes, perhaps during a performance test, you can capture the data with top and plot them with gnuplot. Here is how: Run this script (perhaps via nohup) to capture the data: #!/bin/sh # Usage: ./monitor-usage.sh <PID of the process> # Output: top.dat ...
Read More »Solution for: “macOS, Dovecot and setgroups() failed: Too many extra groups”
I upgraded my home server to macOS 10.14 after the upgrade on my laptop went very smooth. Also here the upgrade went smooth, but in the evening I discovered that I did not get any new email. I started investigating. First I saw that Dovecot did not correctly start because an very old pid file said it has pid 104 ...
Read More »Cloud Native Container Design Principles
Software design principles Principles exist in many areas of life, and they generally represent a fundamental truth or belief from which others are derived. In software, principles are rather abstract guidelines, which are supposed to be followed while designing software. There are fundamental principles for writing quality software such as KISS (Keep it simple, stupid), DRY (Don’t repeat yourself), YAGNI ...
Read More »VirtualBox and Docker Won’t Run | Because of Windows 10 Hyper-V?
I managed to resolve the issue but not by uninstalling Hyper-V. I saw a couple of suggestions but I find this one suitable (it makes sense since I’m not an IT guru): STEP 1: Open the command prompt as an Administrator. STEP 2: Run the command with no argument: bcdedit After you run the above command, you will see that ...
Read More »Docker Trick: Running Containers Efficiently Using A Bash Script
One of the basic problems with running a docker image is that its too easy to spew up multiple instances or containers of the same image. Consider running the following container for instance: docker run -it -e AWS_ACCESS_KEY_ID="test" -e AWS_SECRET_ACCESS_KEY="test" \ --net=host "prahladyeri/testimage:latest" /bin/bash This will start a fresh container instance from image prahladyeri/testimage:latest and you may optionally pass environment ...
Read More »Docker is the best thing to happen to Linux since the GNU bread
Its has become an oft-repeated cliche now that docker has become the latest buzzword, both in DevOps circles as well as the open source community. But being the ever cynic and contrarian, I wasn’t quite convinced of its merits until quite recently, I thought it was just another hype that will come and go like all other things. After all, ...
Read More »Performing A Little Usability Tweak On The XFCE Window Recycler in Greybird Theme
Xubuntu is my favorite distro, hands down and the default Greybird theme is just wonderful! There used to be a time when I liked Ubuntu-MATE too, but not so much since they took the road to GTK+3! Coming back to the topic, XFCE works great but it has a small usability issue in the default Greybird theme which annoys most ...
Read More »Linux DIY: Creating a Multiboot USB Drive With ISO Images Of Multiple Distros
Though I’m not a distro-hopper exactly, I keep trying live versions of popular linux distros like debian and ubuntu every now and then, and while I generally use the “dd” command which works right out of the box, today I thought that instead of burning a new ISO image each time, why not create a single 16GB USB stick which ...
Read More »