Project

General

Profile

The ungleich Matrix infrastructure » History » Version 11

Timothée Floure, 03/10/2020 08:55 PM
Add link to customer deployments

1 1 Timothée Floure
h1. The ungleich Matrix infrastructure
2
3
*%{color:red}This document concerns the infrastructure side of our MaaS offer and is intended for ungleich staff. See [[Ungleich Matrix-as-a-Service (MaaS)]] page for end-user/customer documentation.%*
4
5
h2. Status
6
7 10 Timothée Floure
This document is *A DRAFT*. This service is not in production. Ask @fnux for details.
8 2 Timothée Floure
9 4 Timothée Floure
h2. Environment
10 2 Timothée Floure
11
Our Matrix deployments make use of the "Synapse (reference) Matrix homeserver":https://github.com/matrix-org/synapse/ and "Riot web client":https://about.riot.im/. We use Debian buster as base Operating system, leveraging the "matrix-synapse package from the buster-backports repository":https://packages.debian.org/buster-backports/matrix-synapse. The riot client (= static files) is directly fetched from "upstream releases on github":https://github.com/vector-im/riot-web/releases.
12
13 5 Timothée Floure
The matrix deployments run on ipv6only VMs, HTTP(S) traffic - including federation - being proxy by the [[How to use the IPv4-to-IPv6-Proxy|ungleich v4-to-v6 proxy]]. Federation is delegated using a @/.well-known/@ URI as described in [[Ungleich Matrix-as-a-Service (MaaS)|the customer FAQ]].
14 2 Timothée Floure
15 6 Timothée Floure
!maas.jpg!
16
17 2 Timothée Floure
h2. Tooling
18
19
The whole MaaS setup is defined in the *manifest/matrix-as-a-service* of *dot-cdist* file, which wraps the *__ungleich_matrix* type. This type leverages:
20
21
* *__matrix_synapse*
22
* *__matrix_riot*
23
* *__ungleich_nginx_static_type*
24
* *__postgres_role* and *__postgres_database* from upstream cdist.
25
26 8 Timothée Floure
The "matterbridge":https://github.com/42wim/matterbridge application service can be deployed with the *__matterbridge* type.
27
28 7 Timothée Floure
*Matrix Federation Tester: https://federationtester.matrix.org/*
29
30 4 Timothée Floure
h2. Monitoring
31 1 Timothée Floure
32 4 Timothée Floure
We plan to leverage consul's service discovery to feed system (node exporter) and matrix (synapse) metrics to prometheus/grafana.
33 2 Timothée Floure
34 4 Timothée Floure
h2. Ungleich Deployments
35 2 Timothée Floure
36 4 Timothée Floure
We maintain our own deployments alongside the customer MaaS, both for our own usage and for testing.
37
38 2 Timothée Floure
h3. matrix-staging.ungleich.ch
39
40 4 Timothée Floure
Staging instance used to tests the deployment pipeline and Matrix updates.
41 2 Timothée Floure
42
h3. matrix.ungleich.ch
43
44 9 Timothée Floure
Production instance for ungleich. Some rooms are bridged to the "chat.ungleich.ch":https://chat.ungleich.ch mattermost instance. The bridge makes use of the @#matterbridge:ungleich.ch@ local matrix user (i.e. not from LDAP) and @matterbridge@ mattermost user (linked to matterbridge AT ungleich ch).
45 11 Timothée Floure
46
h2. Customer Deployments
47
48
That's too sensitive to be public: "this way":https://redmine.ungleich.ch/projects/datacenterlight/wiki/Matrix_customer_deployments !
49 1 Timothée Floure
  
50 10 Timothée Floure
h2. Shared TURN server
51
52
WIP!