!UKDpaKNNsBpOPfLWfX:zhaofeng.li

Colmena

309 Members
A simple, stateless NixOS deployment tool - https://github.com/zhaofengli/colmena108 Servers

Load older messages


SenderMessageTime
12 Aug 2023
@whentze:matrix.orgWanja Hentzein my professional opinion distributed transactions don't really work21:56:53
@whentze:matrix.orgWanja Hentzebut I'm happy to be proven wrong21:57:05
@whentze:matrix.orgWanja Hentzeyou can pull them off with a consensus algorithm but I don't want my deployments to be a CP (in terms of CAP)21:58:19
@whentze:matrix.orgWanja Hentze* you can pull them off with a consensus algorithm but I don't want my deployments to be a CP system (in terms of CAP)21:58:38
@raitobezarius:matrix.orgraitobezariusI don't think the feature should be implemented in the deployment system22:31:03
@raitobezarius:matrix.orgraitobezariusMagic rollback should be part of NixOS to a certain extent22:31:12
@raitobezarius:matrix.orgraitobezarius
In reply to @whentze:matrix.org
in my professional opinion distributed transactions don't really work
well if you care about C or A…
22:32:09
@raitobezarius:matrix.orgraitobezariushot take: distributed tx works if you prove that you cannot have P in your network to a certain extent22:32:39
@raitobezarius:matrix.orgraitobezariuscheckmate CAP theorem22:32:49
@whentze:matrix.orgWanja HentzeIf you're going to pretend things never go wrong, might as well not have rollback either22:35:44
@whentze:matrix.orgWanja Hentze
In reply to @raitobezarius:matrix.org
Magic rollback should be part of NixOS to a certain extent
the rollback part yes (and it is), but the "can I still use my deployment tool on this machine" part depends on the deployment tool
22:38:20
@raitobezarius:matrix.orgraitobezarius
In reply to @whentze:matrix.org
If you're going to pretend things never go wrong, might as well not have rollback either
that's the goal
22:38:43
@raitobezarius:matrix.orgraitobezariustrying to rollback is already defeat22:38:51
@whentze:matrix.orgWanja Hentzewe have that today22:38:57
@raitobezarius:matrix.orgraitobezarius
In reply to @whentze:matrix.org
the rollback part yes (and it is), but the "can I still use my deployment tool on this machine" part depends on the deployment tool
right
22:39:02
@raitobezarius:matrix.orgraitobezarius
In reply to @whentze:matrix.org
we have that today
checkmate myself
22:39:38
@whentze:matrix.orgWanja Hentzethe ostrich algorithm is already full implemented 😎22:41:38
@whentze:matrix.orgWanja Hentze* the ostrich algorithm is already fully implemented 😎22:42:26
13 Aug 2023
@10leej:matrix.org@10leej:matrix.org joined the room.01:25:57
@ofungus:matrix.orgofungus joined the room.19:25:50
@void68:matrix.orgvoidi just need something like touch /tmp/doing_switching; nixos-rebuild switch; while [ -f /tmp/doing_switch ]; sleep 5; done; if [ ! -f /tmp/done_switching ]; then nixos-rebuild switch --rollback; 23:06:18
@void68:matrix.orgvoid *

i just need something like

touch /tmp/doing\_switching; 
nixos-rebuild switch; 
sleep 5; 
if \[ ! -f /tmp/done\_switching \]; then nixos-rebuild switch --rollback; 
23:06:57
@void68:matrix.orgvoid *

i just need something like


nixos-rebuild switch; 
sleep 5; 
if [ ! -f /tmp/done\_switching ]; then nixos-rebuild switch --rollback; 
23:07:18
@void68:matrix.orgvoid *

i just need something like


nixos-rebuild switch; 
sleep 5; 
if [ ! -f /tmp/done\_switching ]; then nixos-rebuild switch --rollback;  fi;
23:07:27
@void68:matrix.orgvoidcolmena will ssh touch /tmp/done_switching; 23:17:20
@void68:matrix.orgvoid * colmena will ssh touch /tmp/done_switching; for instance in the test section. 23:18:26
@void68:matrix.orgvoidthis will save me from pretty much all the mistakes I make (too hot here 33 deg cel during the day, can't concentrate sometimes)23:19:25
@whentze:matrix.orgWanja Hentzeyep, it's quite low-tech23:53:04
@whentze:matrix.orgWanja Hentzecan be built out of an activation script and a "post-apply" script on colmena's end23:53:30
15 Aug 2023
@cafkafk:nixos.devChristina Sørensen changed their profile picture.14:57:57

Show newer messages


Back to Room ListRoom Version: 6