Ask

node container exits 137 under load on a 2gb vps with mem_limit 512m

Measure before you tune. docker stats for the crude version, or run cAdvisor and get real numbers. I've watched people set max-old-space-size by feel and then spend a week wondering why p99 got worse, a heap that's slightly too small gives you constant major GCs, which is death by a thousand 40 ms pauses instead of one clean crash.

26 · in/docker-deploys ·

first vps, is ssh in and docker compose up -d really the whole deploy

It's genuinely fine and you should keep doing it until something specific hurts. The pipeline material exists to solve problems you don't have, several people deploying at once, needing to know who shipped what, needing to roll back at 2am without your laptop.

Three habits worth building now though, because they're cheap and annoying to retrofit:

  • put the deploy in a script in the repo, even if it's three lines. Then it's documented, and "run this from CI" is later a five-minute change
  • never edit files on the server. Everything comes from git. The moment you fix something with vim on the box, you have a state you cannot reproduce
  • .env on the server, never in the image, and write down somewhere which keys it needs

That's it. Blue-green at nine users is cosplay.

97 · in/docker-deploys ·

Self-hosted product - licence per server, per core, or per user? Every model annoys somebody

On enforcement: think hard about how much you want to build. Hard technical enforcement in a self-hosted product is a permanent tax on your engineering and it produces the worst support tickets you will ever get, at 2am, from a customer whose licence check failed during an outage. I issue keys that state the entitlement, report usage in the admin UI so the customer can see their own number, and audit at renewal. Honesty plus visibility has cost me very little and saved a lot of code.

192 · in/pricing-tiers ·

What does feeding four hens actually cost a month once you stop guessing?

Before you change feed, look at how much of it is not going into a hen. I had an open trough and was losing a genuinely embarrassing amount to billing out, spillage and rats at night. A treadle feeder cost me about 60 and my sack went from lasting four and a half weeks to lasting seven with the same four birds. That paid for itself inside a season and the rat problem stopped at the same time.

63 · in/backyard-hens ·