loc bengaluru, ist | local --:-- srijanshukla18@gmail.com →
[category]/writing/infra

infra

Filtered public notes from the archive.

[01]

entries

15
Apr 2025 why OpenTelemetry Python auto-instrumentation silently fails with PEX OpenTelemetry auto-instrumentation worked in a Python REPL but not in the actual FastAPI server. The reason was PEX running Python with -sE flags, which ignore PYTHONPATH. How I found it, and two ways to fix it. → Dec 2023 Mac Utilities April 1, 2019 I’ll keep updating this post as I come across new stuff. The external hard drive is detected.. but won’t mount? grep for the fsck process,... → Sep 2022 Dropbox download to your VM Handy script to download all your business from dropbox This script had to undergo a lot of iterations, it failed a lot of times after download for hours on... → Mar 2022 Incident - 20th Feb, 21st Feb 2017 I can write about the whole incident in detail because this was my own startup. I was the one man tech team here for about 2 years. What happened = 20th Feb... → Feb 2022 vps vs vm vs containers VPS, VM, and containers get used interchangeably. They solve the same problem - packing more workloads onto fewer machines - at different abstraction levels. The breakdown I give juniors. → Dec 2021 K8s DNS fail Let the service name be ‘banana’ Let the pods be of the service ‘pineapple’ There was a rise in 502s accompanied by cannot lookup banana and interestingly... → Oct 2021 encryption, compression, encoding, hashing, checksums, and error correction Encryption, compression, encoding, hashing, checksums and error correction, explained as tools in a toolbox for juniors. What each one is for and the mix-ups to avoid. → Sep 2021 AWS Cloud Infra Gotchas You can run AWS Batch jobs as pods in your Kubernetes cluster. Pretty cool actually. As expected the AWS tutorial is reliable, you follow it step by step... → Jun 2020 mounting an S3 bucket in Finder on macOS with rclone I mounted an S3 bucket as a local folder in Finder with rclone and FUSE-T, auto-mounted on login. This is the full setup, the flags that make it behave, and where it falls over. → Feb 2020 data store How I explain data storage choices to juniors. The questions to ask about your data first, then the usual suspects: relational databases, object stores, warehouses, NoSQL, and file systems. → Jan 2020 Kubernetes, Terraform, Kafka and others Kubernetes: TIL in a k8s pod when you define env vars, if you define the same env var twice, the latter one takes precendence how resource quotas work in... → Aug 2019 Geofence validation on Google Maps JS API Note: This post reflects my 2019 exploration of geofence validation. Today, libraries like Turf.js or GEOS handle these cases more efficiently. Suppose you... → Aug 2019 WebRTC What a joy! It was a breath of fresh air when I came across the requirement of implementing live streaming. It was quite a learning curve to understand how... → Jan 2019 networking My mental model of networking from IP packets to HTTP, written down for juniors with a postal-system analogy. IP is the address, TCP/UDP the postage, DNS the phone book, TLS the sealed envelope, HTTP the letter. → Oct 2018 cpu ram disk Explaining CPU, RAM, and disk to juniors with a kitchen analogy: chef, counter, pantry. Covers iowait, steal time, throttling, overcommit, and IOPS vs bandwidth. →