{"id": "c01", "text": "so basically yesterday our postgres table was 3x bigger then the actual data, we checked n_dead_tup and it was showing like 40 percent dead rows. the autovacuum was not able to keep up because scale factor was default 0.2 which is too high for table with 50 million rows. after we set it to 0.01 the bloat stopped growing in 2 days.", "facts": ["3x", "n_dead_tup", "40", "0.2", "50 million", "0.01", "2 days"]}
{"id": "c02", "text": "Kubernetes pods was restarting again and again, OOMKilled every 15 min. We find out the memory limit was 512Mi but the java app need atleast 900Mi because heap was set -Xmx768m and the metaspace also take memory. increasing limit to 1Gi fixed it, but honestly we should of set the heap with MaxRAMPercentage from begining.", "facts": ["OOMKilled", "15", "512Mi", "900Mi", "-Xmx768m", "1Gi", "MaxRAMPercentage"]}
{"id": "c03", "text": "ClickHouse query was taking 9 seconds and reading 10 million rows even when we filter by user_id. reason is simple, user_id was not in the ORDER BY key, key was (site_id, event_time). we added a bloom_filter skip index with GRANULARITY 4 and now query read only 400 thousand rows and finish in 0.3 sec.", "facts": ["9 seconds", "10 million", "user_id", "(site_id, event_time)", "bloom_filter", "GRANULARITY 4", "400 thousand", "0.3"]}
{"id": "c04", "text": "i tried running a 7B model locally on my laptop with 16 GB ram, it was working but slow, like 4 tokens per second. when context goes above 8k it become very very slow and laptop fan go crazy. Q4_K_M quantization helped little bit, memory went from 14 GB to around 5 GB but speed was still not great for chat.", "facts": ["7B", "16 GB", "4 tokens per second", "8k", "Q4_K_M", "14 GB", "5 GB"]}
{"id": "c05", "text": "Our nginx was returning 502 for around 3 percent of requests during peak. the upstream keepalive was not configured so every request opening new connection to the node app. after adding keepalive 64 in upstream block and proxy_http_version 1.1, the 502s dropped to almost zero and p99 latency went from 1.8s to 420ms.", "facts": ["502", "3", "keepalive 64", "proxy_http_version 1.1", "1.8s", "420ms"]}
{"id": "c06", "text": "We moved our logs from elasticsearch to clickhouse last month. storage reduced from 2.1 TB to 310 GB because of columnar compression with ZSTD. Queries for last 7 days that took 40 seconds now come in under 2 seconds. Only thing we miss is full text search, for that we using ngrambf_v1 index for now but its not perfect.", "facts": ["2.1 TB", "310 GB", "ZSTD", "7 days", "40 seconds", "2 seconds", "ngrambf_v1"]}
{"id": "c07", "text": "redis was using 28 GB memory and we were thinking to buy bigger server. but when we run MEMORY USAGE on keys we saw session keys without TTL, around 9 million of them, some were 2 years old. we added EXPIRE of 30 days on new sessions and cleaned old ones with a SCAN script, memory came down to 6 GB.", "facts": ["28 GB", "MEMORY USAGE", "TTL", "9 million", "2 years", "EXPIRE", "30 days", "SCAN", "6 GB"]}
{"id": "c08", "text": "For our daily report job we used local LLM instead of api. job run at 2 am, it process around 120 reports and finish before 7 am. each report take approx 2 to 3 minute on CPU. users get reply within 48 hour anyway so speed doesnt matter much, what matter is the numbers in report are correct.", "facts": ["2 am", "120", "7 am", "2 to 3", "CPU", "48 hour"]}
{"id": "c09", "text": "git repo was 4.5 GB and cloning take 12 minutes in CI. turns out someone committed big video files 3 years back. we used git filter-repo to remove them and also moved assets to git LFS, now repo is 380 MB and CI clone takes 40 seconds. remember everyone need to re-clone after rewriting history.", "facts": ["4.5 GB", "12 minutes", "3 years", "git filter-repo", "LFS", "380 MB", "40 seconds"]}
{"id": "c10", "text": "we were paying 1400 dollars per month for one big RDS instance, db.r6g.4xlarge, but CPU was only 15 percent most of the time. we moved to db.r6g.xlarge with a read replica for reports, total cost now 520 dollars and the app is actually faster because heavy report queries not compete with user traffic.", "facts": ["1400", "db.r6g.4xlarge", "15", "db.r6g.xlarge", "read replica", "520"]}
