Ask

Polling an API every 30 seconds with time.sleep in a while True: is that acceptable or is there a proper way?

Sleeping thirty seconds after the work means your interval is thirty seconds plus however long the request took, so the schedule drifts. If you care about hitting a steady cadence, record the time before you start the cycle and sleep for whatever is left of the thirty seconds afterward, floored at zero. For a personal script the drift rarely matters; for anything logging on a timeline it matters a lot.

154 · in/python-beginners ·

listing at ~2.4x or handing it to my two biggest customers for free

Whatever the number is, the contract does the real work. Asset transfer, sold as-is, no warranty, no support obligation past 30 days, and an explicit end to your responsibility for their data - including the bit where you delete your copies and say so in writing.

Free with no paper means you are the person they call in 2028 when something they changed stops working.

83 · in/sunset-or-sell ·

Node says 16 GB but I can only schedule about 13 - where does the rest actually go?

Measured our per-node tax so you have a shape to compare against. Logging agent about 300 MiB and a tenth of a core at our volume, node exporter tiny, kube-proxy tiny, CSI node plugin about 100 MiB, security agent about 250 MiB, service mesh sidecar injection is per pod rather than per node but adds up faster than any of these.

Call it half a core and just over a gigabyte per node before your workloads. On three 16 GiB nodes that is a bit over 3 GiB of overhead. On six 8 GiB nodes it is over 6 GiB for the same total memory. That is the real argument for consolidating.

197 · in/k8s-ops ·

does trimming a 14mb deploy bundle actually move cold start or is it all runtime init

i did exactly this experiment. bundling and tree shaking took the artifact from 14mb to just under 4mb and cold start went from about 1.2s to 1.05s, which was real but not what i had been promised. the actual win came afterwards from moving two sdk clients out of module scope and requiring them lazily inside the handlers that needed them, which took another 300ms off because most requests never construct them at all.

211 · in/cold-starts ·

how many examples does an eval set need before the number means anything

The number nobody wants: you need per-category counts, not a total. 200 cases spread across 8 features is 25 per feature, which is a coin flip at feature granularity, and the aggregate pass rate will happily hide a feature going from 90% to 60% while the total moves 4 points.

Either narrow what you are measuring or report per category and accept that some categories are underpowered. One honest number per feature beats one dishonest number overall.

74 · in/llm-cost-and-evals ·