Today I Learned
Quick notes on things I discover while coding. Inspired by Hashrocket’s TIL.
MongoDB Crashed Due to Full /var/log Partition
December 2024
Our project UI stopped functioning. Investigation showed MongoDB was down on the RHEL VM. Root cause: /var/log partition was 100% full.
Check di…
Tags: #mongodb #linux #troubleshooting #rhel
Switching LLM Providers Without Rewriting Code
December 2024
Kept switching between OpenAI and Anthropic APIs for different projects. Got annoying having to change imports and API calls each time.
Instead …
Tags: #python #llm #api
MongoDB Text Search is Pretty Good Actually
November 2024
Elasticsearch is the standard for search, but for our search feature, we needed to find options and libraries within our tech stack itself. Since w…
Tags: #mongodb #search #database
GraphQL Resolvers Don’t Have to be Complex
October 2024
Used to think GraphQL resolvers needed to be these complex, optimized functions. Turns out simple is often better.
// This works fine const resolv…
Tags: #graphql #javascript #api
Why our UI search was taking forever
September 2024
Users kept complaining about search performance. With customers managing 1000+ VMs, they were constantly searching:
VM by UUID: “550e8400-e29b-…
Tags: #mongodb #search #performance #infrastructure
Extending XFS Filesystem on LVM When Logs Fill Up
August 2024
MongoDB crashed because /var/log hit 100% capacity. Instead of just truncating logs (temporary fix), I extended the filesystem permanently.
Chec…
Tags: #linux #xfs #lvm #rhel #storage
More TIL posts coming as I learn new things…