Posts
Factoids
RSS Reader
Karma
Logs
Tags
Atlas
Back to the channels
#repopack
Previous day
21 November 2026 (America/New_York)
Next day
02:25 phaleth something is hammering repopack website since yesterday morning https://i.imageupload.app/70da58ab6eda2f139b5a.png
03:13 phaleth rebooting the VPS
03:28 phaleth all the traffic goes from 156.67.128.150 and actually is properly authenticated and so getting responses with 200 status
03:28 phaleth I prolly shouldn't IP ban that
04:14 phaleth hi blue
04:17 blue hi phaleth
04:20 phaleth there's some hammering going on from rp CLI from IP 156.67.128.150, is that something you know about?
04:24 blue yes
04:24 phaleth ok, cool
04:24 phaleth I only rebooted the VPS to see if keeps going
04:25 phaleth if it keeps*
04:25 blue makes sense
04:25 stagas you mean you turned it off and on again :P
04:25 phaleth yeah, first thing to do, always
04:26 stagas heh
04:27 stagas https://textlog.cc/post/3267
04:27 nevet @stagas wrote on textlog
04:30 phaleth nice
04:30 phaleth difficult problems solved easily
04:31 blue https://repopack.com/project/repopack/tasks/991
04:32 phaleth well, at least it shows that nodejs is easy to overload
04:32 phaleth and maybe also that the repopack API is putting too much load on the server
04:32 phaleth not that the server cannot handle
04:33 blue that's not the problem, the problem is the design
04:33 blue primate has ws support, clanker should use instead
04:33 phaleth yeah, or just send commands in batches if possible
04:33 blue well, low latency is important here
04:33 blue but this amount of requests is too much
04:34 phaleth there is a rate limit and clanker was prolly hitting that
04:35 phaleth latency isn't the problem since traffic goes at most within two countries with decent network
04:35 blue ya
04:36 phaleth but you should look at btop how nodejs memory goes up and down
04:37 blue ya
05:56 phaleth ok, it's calm now
06:30 blue yes, switched to ws
06:46 phaleth fast switch, makes it seem like as if repopack was configurable
07:11 blue just updated to ws transport, ya
07:37 blue redeploying
09:25 phaleth blue: I've asked clanker how to deploy app with a db on repopack, can you tell if what is suggests is about right? https://text.is/4VR4J
09:28 phaleth it suggests*
09:49 blue phaleth: looking
09:55 blue phaleth: https://text.is/XR9YQ
09:55 blue yes I know, wall of text. But I got some useful improvements from this
09:56 phaleth great
09:56 phaleth can clanker fix the guide I've provided and put it into documentation?
09:57 phaleth you know this response is not great
09:57 blue On it phaleth.
09:57 phaleth oh, it recommends shipping a guide
09:57 blue yes
09:57 blue which I'm doing now
09:58 phaleth awesome
09:59 phaleth yeah and blueprint sounds like some deployment plan, but there is no clue anywhere how to put one together it seems
09:59 phaleth and also execute or whatever
10:00 phaleth and also that all containers/units are taken down on redeploy is strange
10:00 phaleth not sure why the word unit was invented btw
10:12 blue what's a better word than unit?
10:12 phaleth well container is long
10:13 blue yes, too long
10:13 blue unit is short to type
10:13 blue https://repopack.com/project/repopack/code/blob/docs/views/public/guides/app-postgres.md?ref=task%2F998-guide-deploy-a-web-app-with-private-postgresql
10:13 blue thoughts phaleth ?
10:13 phaleth reading that atm
10:13 blue k
10:16 phaleth it explains how to raw dog sql from node
10:16 phaleth heh
10:16 blue yes
10:17 blue the guide should use primate, stupid clanker
10:18 phaleth no :D
10:18 phaleth it's actually funny how it kept node 22 and postgres 16
10:19 blue yeah, should be node 26 and postgres 18
10:19 phaleth postgres 19 is out
10:19 blue do you have an imporvements? you can post them on the chat
10:19 blue on the timeline*
10:20 phaleth I don't seem to see what's the ending slash here supposed to do: rp app unit add myapp web --type runner --context web --containerfile Containerfile --http 3000 --public --depends db --health.http /
10:21 blue "/ is the value of --health.http: it tells Repopack to check the web unit’s root URL on port 3000."
10:21 phaleth well, would be nice if that explanation was there
10:21 blue k
10:21 phaleth it's URL path essentially
10:21 blue yes
10:22 phaleth I'd change it to /check
10:22 phaleth as the frontpage is usually too large for such purpose
10:22 phaleth but the author of the app may of course disagree
10:23 phaleth and the check is hopefully performed only as a HEAD request
10:24 blue revising
10:25 phaleth ok, so I may sound like I don't like openssl, but since it's only used for password generation
10:25 phaleth and may not be readily available on windows for example
10:25 blue nobody really cares about windows
10:26 blue or idk, do we have windows users here?
10:26 blue I think we only have mac/linux
10:27 phaleth I suggest to use this: tr -dc A-Za-z0-9 </dev/urandom | head -c 32; echo
10:27 phaleth which is also not windows compatible, but who cares about windows
10:27 phaleth the point is to get away from openssl
10:27 phaleth and use posix tools
10:27 phaleth yeah
10:29 blue import { createServer } from 'node:http';
10:29 blue which is this nonsense
10:29 blue should use @rcopmat/http
10:29 blue I'm furious
10:30 blue also server.mjs.. jesus
10:30 phaleth od -An -v -N 32 -t x1 /dev/urandom | tr -d '[:space:]'
10:30 phaleth that is nice one
10:31 blue I don't know what all this nonsense means
10:31 blue od ?
10:31 blue wth is od?
10:31 phaleth man od
10:32 blue guide is revised with rcopmat
10:32 phaleth ok, let me see
10:32 blue import postgres from "postgres";
10:32 blue should use @primate/postgresql instead :(
10:34 phaleth but does that let it rawdog sql statements?
10:34 * phaleth thinks that's the best part of the guide
10:34 blue yes
10:34 blue db.sql("")
10:34 phaleth ok, cool
10:36 blue I wonder if for @rcompat/env, it makes sense to have a few specialised getters
10:36 blue like env.getNumber and env.getBoolean
10:36 phaleth ok, so last thing is postgres 19 and then it's great I think
10:36 phaleth I will have to try tomorrow
10:36 blue seems cleaner than this nonsense: Number(env.get("PORT")). also can verify that it's parsable
10:37 blue k
10:37 phaleth no, don't typecheck env vars, waste of time
10:37 phaleth they are supposed to be hacky
10:39 phaleth rcompat api looks nice
10:40 blue rcompat api is amazing, yes
10:40 phaleth anyway, more than good enough, thank you
10:42 blue it's merged phaleth
10:42 blue I'm gonna redeploy the docs-prod app
10:52 phaleth ok
Search posts