Srijan Choudhary's Articles and Notes Feed for tag: devops
Using sysrq on my laptop - documenting mostly for myself.
My laptop has started freezing sometimes, not sure why. Usually, I can just force power off using the power button and start it again, but it has happened twice that I had to recover the system by booting via a USB drive, chrooting, and recovering the damaged files using fsck or pacman magic.
The linux kernel has:
a ‘magical’ key combo you can hit which the kernel will respond to regardless of whatever else it is doing, unless it is completely locked up.
(More details on archwiki and kernel doc)
To enable, I did:
echo "kernel.sysrq = 244" | sudo tee /etc/sysctl.d/sysreq.conf
sudo sysctl --system
However, to trigger this on my laptop, I was not able to find the right key combination for SysRq. I was able to make it work using an external keyboard that has a PrintScreen binding on a layer, by using the following:
Press Alt and keep it pressed for the whole sequence: PrintScreen - R - E - I - S - U - B
Currently, PrintScreen on my external keyboard is bound to Caps lock long press + Up arrow.
Testing ansible playbooks against multiple targets using vagrant
How to test your ansible playbooks against multiple target OSes and versions using Vagrant

Exploring conflicting oneshot services in systemd
Exploring ways to make two systemd services using a shared resource work with each other

Download a file securely from GCS on an untrusted system
Download files from google cloud storage using temporary credentials or time-limited access URLs
Advanced PostgreSQL monitoring using Telegraf, InfluxDB, Grafana
My experience with advanced monitoring for PostgreSQL database using Telegraf, InfluxDB, and Grafana, using a custom postgresql plugin for Telegraf.

Running docker jobs inside Jenkins running on docker
Run Jenkins inside docker, but also use docker containers to run jobs on that Jenkins

Telegraf: dynamically adding custom tags
Adding a custom tag to data coming in from an input plugin for telegraf

Install docker and docker-compose using Ansible
Optimized way to install docker and docker-compose using Ansible

Riemann and Zabbix: Sending data from riemann to zabbix
Tutorial for sending data from riemann to zabbix
My backup strategy to USB disk using duply
Local system backup using duply
PostgreSQL replication using Bucardo
Keeping a live replica of selected PostgreSQL tables using Bucardo
