!vxTmkuJzhGPsMdkAOc:transformierende-gesellschaft.org

NixOS Matrix Subsystem

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

Load older messages


SenderMessageTime
7 Feb 2022
@hexa:lossy.networkhexaalso enable redis if any worker count > 020:51:23
@dandellion:dodsorf.asDandellion yeah, there's a lot of things that can be done to make it much better 20:52:16
@hexa:lossy.networkhexa ok, so I think my primary issues are with client workers, proxying /_matrix/client/ 20:55:30
@hexa:lossy.networkhexa
In reply to @hexa:lossy.network

it also intermittently errors out on PUT requests

Traceback (most recent call last):
  File "/nix/store/si27f6ipgvymxxkxmw117d4nnp603fvv-matrix-synapse-1.51.0/lib/python3.9/site-packages/synapse/http/server.py", line 269, in _async_render_wrapper
    callback_return = await self._async_render(request)
  File "/nix/store/si27f6ipgvymxxkxmw117d4nnp603fvv-matrix-synapse-1.51.0/lib/python3.9/site-packages/synapse/http/server.py", line 471, in _async_render
    callback_return = await raw_callback_return
  File "/nix/store/bm9ravdndw17dzdy963a164sgnhwzqy4-python3.9-Twisted-21.7.0/lib/python3.9/site-packages/twisted/internet/defer.py", line 1661, in _inlineCallbacks
    result = current_context.run(gen.send, result)
  File "/nix/store/si27f6ipgvymxxkxmw117d4nnp603fvv-matrix-synapse-1.51.0/lib/python3.9/site-packages/synapse/rest/client/sendtodevice.py", line 64, in _put
    await self.device_message_handler.send_device_message(
  File "/nix/store/si27f6ipgvymxxkxmw117d4nnp603fvv-matrix-synapse-1.51.0/lib/python3.9/site-packages/synapse/handlers/devicemessage.py", line 281, in send_device_message
    last_stream_id = await self.store.add_messages_to_device_inbox(
  File "/nix/store/si27f6ipgvymxxkxmw117d4nnp603fvv-matrix-synapse-1.51.0/lib/python3.9/site-packages/synapse/storage/databases/main/deviceinbox.py", line 421, in add_messages_to_device_inbox
    assert self._can_write_to_device
AssertionError
running into these
20:55:45
@janne.hess:helsinki-systems.deJanne Heß joined the room.20:56:44
@janne.hess:helsinki-systems.deJanne Heß invited @mic92:nixos.dev@mic92:nixos.dev.20:57:03
@mic92:nixos.dev@mic92:nixos.dev joined the room.20:57:13
@hexa:lossy.networkhexa Dandellion, Sumner Evans TIL: https://gist.github.com/artizirk/e1793e28da16a48b41672d126b44e7a6 21:18:04
@hexa:lossy.networkhexathat map is just what we need21:18:25
@hexa:lossy.networkhexa * that map is just what we need to manage this in a sane way21:18:30
@mic92:nixos.dev@mic92:nixos.dev left the room.21:18:51
@linus.heckemann:matrix.mayflower.de@linus.heckemann:matrix.mayflower.de
In reply to @fadenb:utzutzutz.net
I am just happy that I understand Bavarian by now as I live in Munich ;)
all Bavarian or just Munich Bavarian? :p
21:22:53
@linus.heckemann:matrix.mayflower.de@linus.heckemann:matrix.mayflower.debecause I find it hard to believe that I will ever understand all Bavarian. But maybe there's hope>?21:23:25
@linus.heckemann:matrix.mayflower.de@linus.heckemann:matrix.mayflower.de * because I find it hard to believe that I will ever understand all Bavarian. But maybe there's hope?21:23:26
@andreas.schraegle:helsinki-systems.de@andreas.schraegle:helsinki-systems.de
In reply to @hexa:lossy.network
that map is just what we need to manage this in a sane way
I'm not sure I'd call a 60 line map sane. hm. this looks like it needs some more regex to compress it.
thereby probably making it even less sane.
21:27:46
@hexa:lossy.networkhexaI somewhat expect them to run with just these regexes21:36:40
@hexa:lossy.networkhexahow far do you think nginx scales with such a map?21:37:27
@dandellion:dodsorf.asDandellionhttps://github.com/dali99/nixos-matrix-modules21:38:47
@dandellion:dodsorf.asDandellionI kept history from the pastebins. So apparently first time I shared the module was in October 2020!21:40:56
@dandellion:dodsorf.asDandellionexplains how awful it is since it was likely one of the first modules I ever wrote21:41:13
@hexa:lossy.networkhexahah, we've all been there21:41:30
@andreas.schraegle:helsinki-systems.de@andreas.schraegle:helsinki-systems.de
In reply to @hexa:lossy.network
how far do you think nginx scales with such a map?
you can always set pcre_jit on, if you're afraid of regex slowing you down 👀
21:44:52
@hexa:lossy.networkhexapretty sure you were afraid 😛21:45:20
@janne.hess:helsinki-systems.deJanne Heß
In reply to @hexa:lossy.network
pretty sure you were afraid 😛
until now
21:46:02
@janne.hess:helsinki-systems.deJanne Heßimage.png
Download image.png
21:46:06
8 Feb 2022
@hexa:lossy.networkhexaok, heads up01:07:42
@hexa:lossy.networkhexaI'm going to rfc42 the module01:07:49
@hexa:lossy.networkhexait will be full of removed and renamed options which will show a migration path01:08:16
@hexa:lossy.networkhexaand I expect piegames to rejoin the mumble ASAP01:08:31
@piegames:matrix.org@piegames:matrix.orgHey01:08:46

Show newer messages


Back to Room ListRoom Version: 4