Submit

Back to the channels

#primate

  1. * phaleth joined #primate
  2. 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
  3. blue phaleth: lol
  4. blue phaleth: https://github.com/primate-run/primate/issues/262
  5. nevet Proposal: Introduce `p.uuid()` as a first-class Pema type · Issue #262 · primate-run/primate
  6. phaleth I think mysql supports uuids and turns them into 16 byte long binaries
  7. phaleth which it can then easily compare and so use as primary keys
  8. phaleth not sure why it's a 12-byte length for MongoDB, sounds odd
  9. phaleth ah, it's not UUID, it's some mongo objectid thing
  10. phaleth in any case, having database compare strings/texts is a horrible idea
  11. phaleth and also ordered is always much much better, that's already there in the proposal
  12. blue yes, phaleth
  13. blue this mostly closes a gap I've been annoyed with for a while
  14. blue and mongo ObjectId is some proprietary nonsense, but it's the most effective way to do primary indexing in mongo
  15. 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
  16. 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.
  17. blue phaleth: do you mean this?
  18. blue https://dev.mysql.com/doc/refman/8.4/en/miscellaneous-functions.html#function_uuid-to-bin
  19. 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
  20. phaleth I guess then for mongodb you will have to make an exception
  21. phaleth but overall the idea sounds good
  22. blue phaleth: https://github.com/primate-run/primate/issues/262#issuecomment-4106146943
  23. nevet Proposal: Introduce `p.uuid()` as a first-class Pema type · Issue #262 · primate-run/primate
  24. blue that's a follow-up with your mysql idea
  25. blue clanker also ack'd, so looks good
  26. blue phaleth: can I restart the vps? arch has linux 6.19 out
  27. phaleth yeah, sure
  28. phaleth bye bye blue
  29. * blue joined #primate
  30. blue phaleth: well, it's restarted, but primate.run is dead :(
  31. blue oh, now it's working
  32. blue I guess it took the haproxy podman container some time to boot up
  33. phaleth systemd is prolly slow
  34. blue ya
  35. phaleth haproxy is on the host OS
  36. blue it's a podman container though, right?
  37. phaleth haproxy is installed on archlinux host OS directly
  38. phaleth not a container
  39. blue oh, gotcha
  40. blue I thought it used to be an nspawn container
  41. phaleth it used to be, yeah
  42. blue is it easier to have it on host?
  43. phaleth it's just a bit more convenient
  44. phaleth there is less NAT translations happening when haproxy is not in container
  45. phaleth the reason I've put haproxy into container was that I used to do custom builds
  46. phaleth but the archlinux build of haproxy has everything needed
  47. phaleth so there is no reason to slow things down anymore
  48. phaleth and also of course archlinux or whoever maintains the haproxy package makes sure it's up to date
  49. blue gotcha
  50. blue makes sense
  51. phaleth haproxy's setup is mostly about it's configuration (haproxy.cfg) and that one is exactly the same as it used to be
  52. blue ya
  53. blue in the future I do intend for servers to regularly update and restart, but that's a load-balancing issue
  54. 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
  55. phaleth heh, ok
  56. * jreicher joined #primate

Search posts