Submit

Back to the channels

#primate

  1. phaleth time to say farewell to the edge runtime https://images4.imagebam.com/95/eb/b9/ME1BIGIR_o.png it's memory consumption started at 137M over a day and half ago
  2. blue phaleth: lol
  3. blue phaleth: https://github.com/primate-run/primate/issues/262
  4. nevet Proposal: Introduce `p.uuid()` as a first-class Pema type · Issue #262 · primate-run/primate
  5. phaleth I think mysql supports uuids and turns them into 16 byte long binaries
  6. phaleth which it can then easily compare and so use as primary keys
  7. phaleth not sure why it's a 12-byte length for MongoDB, sounds odd
  8. phaleth ah, it's not UUID, it's some mongo objectid thing
  9. phaleth in any case, having database compare strings/texts is a horrible idea
  10. phaleth and also ordered is always much much better, that's already there in the proposal
  11. blue yes, phaleth
  12. blue this mostly closes a gap I've been annoyed with for a while
  13. blue and mongo ObjectId is some proprietary nonsense, but it's the most effective way to do primary indexing in mongo
  14. blue I'm incling to say that p.uuid (datatype: "uuid") will map to that, while the bespoke types "uuid_v4" and "uuid_v7" will use uuids,which mongo db cannot effectively index, so perhaps we'll add a warning for that in the mongodb driver
  15. blue "uuid" as a datatype should mean, "use the best UUID approximation you have". sqlite doesn't have one, it's just TEXT. so it's logical that for mongodb, that would be ObjectId.
  16. blue phaleth: do you mean this?
  17. blue https://dev.mysql.com/doc/refman/8.4/en/miscellaneous-functions.html#function_uuid-to-bin
  18. phaleth yeah, if uuid is used as primary key, mysql and all the other dbs that support uuids should automatically sort records by that primary key after insertion
  19. phaleth I guess then for mongodb you will have to make an exception
  20. phaleth but overall the idea sounds good
  21. blue phaleth: https://github.com/primate-run/primate/issues/262#issuecomment-4106146943
  22. nevet Proposal: Introduce `p.uuid()` as a first-class Pema type · Issue #262 · primate-run/primate
  23. blue that's a follow-up with your mysql idea
  24. blue clanker also ack'd, so looks good
  25. blue phaleth: can I restart the vps? arch has linux 6.19 out
  26. phaleth yeah, sure
  27. phaleth bye bye blue
  28. blue phaleth: well, it's restarted, but primate.run is dead :(
  29. blue oh, now it's working
  30. blue I guess it took the haproxy podman container some time to boot up
  31. phaleth systemd is prolly slow
  32. blue ya
  33. phaleth haproxy is on the host OS
  34. blue it's a podman container though, right?
  35. phaleth haproxy is installed on archlinux host OS directly
  36. phaleth not a container
  37. blue oh, gotcha
  38. blue I thought it used to be an nspawn container
  39. phaleth it used to be, yeah
  40. blue is it easier to have it on host?
  41. phaleth it's just a bit more convenient
  42. phaleth there is less NAT translations happening when haproxy is not in container
  43. phaleth the reason I've put haproxy into container was that I used to do custom builds
  44. phaleth but the archlinux build of haproxy has everything needed
  45. phaleth so there is no reason to slow things down anymore
  46. phaleth and also of course archlinux or whoever maintains the haproxy package makes sure it's up to date
  47. blue gotcha
  48. blue makes sense
  49. phaleth haproxy's setup is mostly about it's configuration (haproxy.cfg) and that one is exactly the same as it used to be
  50. blue ya
  51. blue in the future I do intend for servers to regularly update and restart, but that's a load-balancing issue
  52. blue you shortly reroute all machines on server 1 to server 2 (assuming you got redundancy on server 2), update server 1, put them back, then update server 2
  53. phaleth heh, ok

Search posts