!vxTmkuJzhGPsMdkAOc:transformierende-gesellschaft.org

NixOS Matrix Subsystem

143 Members
Coordination and discussion about the matrix subsystem in NixOS - https://nixos.wiki/wiki/Matrix74 Servers

Load older messages


SenderMessageTime
18 Feb 2022
@hexa:lossy.networkhexabingo00:18:26
@hexa:lossy.networkhexaso we'll likely need a prestart script that waits for matrix-synapse to be ready πŸ™‚00:18:32
@dandellion:dodsorf.asDandellionI think I actually came to this conclusion a year ago when you mention it00:18:47
@dandellion:dodsorf.asDandellion😬00:19:05
@hexa:lossy.networkhexayeah, so much knowledge gets lost over time00:19:13
@f0x:pixie.townf0x
In reply to @hexa:lossy.network
no dependency resolution when you go systemctl restart matrix-synapse matrix-synapse-worker-client1 [...]
that's cursed...
00:35:53
@f0x:pixie.townf0xoh could be an interesting workaround, ExecStartPost= restart the workers again00:37:59
@f0x:pixie.townf0xor use that to start the workers in the first place, maybe00:38:18
@hexa:lossy.networkhexamy worst idea for this is to use dbus-monitor πŸ˜›00:42:23
@hexa:lossy.networkhexa
# systemctl show -p SubState --value matrix-synapse
start-pre
00:55:27
@hexa:lossy.networkhexa
# systemctl is-active matrix-synapse
activating
00:55:54
@hexa:lossy.networkhexa

is-active PATTERN…

Check whether any of the specified units are active (i.e. running). Returns an exit code 0 if at least one is active, or non-zero otherwise. Unless --quiet is specified, this will also print the current unit state to standard output

00:56:50
@cw:kernelpanic.cafeChinchilla Wetreat changed their display name from Chuck Winter to Chuck Winter (vi/vim).04:12:09
@cw:kernelpanic.cafeChinchilla Wetreat changed their display name from Chuck Winter (vi/vim) to Chuck Winter.04:20:38
@milan:petabyte.devMilan changed their display name from Milan (they/them) πŸ³οΈβ€βš§οΈ to Milan.10:34:42
@fantasycookie17:artemislena.euFantasyCookie17 πŸ³οΈβ€πŸŒˆπŸ³οΈβ€βš§οΈ changed their profile picture.12:50:12
@andreas.schraegle:helsinki-systems.de@andreas.schraegle:helsinki-systems.de
In reply to @hexa:lossy.network
no dependency resolution when you go systemctl restart matrix-synapse matrix-synapse-worker-client1 [...]
you can tell switch-to-configuration to stop and start instead of restart, that might work.
13:30:55
@hexa:lossy.networkhexaI think I have more confidence in a loop with in-active in prestart 13:34:06
@hexa:lossy.networkhexaWondering when exactly systemd handles dependencies, possibly inside targets?13:35:05
@andreas.schraegle:helsinki-systems.de@andreas.schraegle:helsinki-systems.dedas_j isn't here, he might be able to tell you13:37:56
@hexa:lossy.networkhexaa quick brainstorming how worker definitions could be looking: https://md.darmstadt.ccc.de/synapse-at-work?both22:57:50
@hexa:lossy.networkhexamore input welcome22:57:56
@hexa:lossy.networkhexa * more input very welcome22:57:58
@f0x:pixie.townf0xadded some more assertions23:43:07
@f0x:pixie.townf0xI think it would be great to support both option designs, perhaps make them mutually exclusive though23:44:23
@f0x:pixie.townf0xwe would also need some way of handling the load balancing considerations when having multiple sync or federationReceiver workers23:46:46
@f0x:pixie.townf0x im considering writing some kind of proxy to handle the access token parsing for efficient /sync loadbalancing, because doing that in pure nginx became impossible with the new temporary tokens afaik 23:52:57
@f0x:pixie.townf0xhttps://github.com/sandhose/matrix-doc/blob/sandhose/msc/refresh-token/proposals/2918-refreshtokens.md these are entirely opaque whereas the old (long) access tokens actually encoded the MXID23:57:27
@f0x:pixie.townf0xso you would need to do an http request or database access to figure out who the token is for23:57:41
19 Feb 2022
@hexa:lossy.networkhexa
In reply to @f0x:pixie.town
we would also need some way of handling the load balancing considerations when having multiple sync or federationReceiver workers
ideally yes, but until that is possible we should resort to simpler measure, like hashing the src address of incoming requests
01:07:27

Show newer messages


Back to Room ListRoom Version: 4