-
Notifications
You must be signed in to change notification settings - Fork 333
Dynamic federator remotes #3260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 152 commits
37eacf1
cac0a7a
e63bcfe
2bf18a5
01c32e4
2bd4c6c
6bb1d27
59dcbf0
d369479
f8d8b58
d80cef9
6f97972
f40b224
c553c0e
43e6483
68deac5
7b531ba
f95c666
d5e171b
6caed21
e593510
8a3f4db
6703241
c038d0c
6dc1d4e
af9c127
bfa663e
d9b30c3
8c7b646
d9f4298
a8e32b4
300fc24
a815652
0ac3682
a478868
dfa644d
66e6969
cdf3650
ef149e3
f9f0e87
1044124
5c22938
02c1432
7dfb4e8
6f9b9cf
beba208
0008020
3b8b383
d508cb9
167083a
8cd69f1
0ede02d
adbf7d9
236c2fd
1a6a103
950867e
676862a
fc00935
d39dd45
6f5ee22
db39702
1a90c97
3846ae3
8b45f0f
708bec2
e89b052
5638e5e
417e368
ce50aa2
5bed564
4199dc5
728567a
f5c1b3e
a6e9255
1d05c84
c0df89a
ea18bcb
4b79d4b
2f3ec7b
84e78f0
6d1f719
e85c97d
6327def
5915c82
f2e998d
012f39d
aa52e91
3374dd6
411f03d
96521f5
e474e0b
af21829
3287003
166e2ba
bad86a1
6390674
b49a742
f02819f
15ec903
dd061ae
a6bab56
8f553bd
e44cfe9
19f2732
d662c85
bea0419
f6ae0c7
f0bfa62
2e959b0
37b4f09
8f8af7c
236f4bb
fff9883
1a76c9c
4efa58e
0a122f3
9c68bd8
c8cac98
ca572dd
7c39b34
d3997dc
17ab5da
fbfac87
8cdd041
1ffaab2
56f7954
db19f40
9c6836d
01ef6ff
1f0d1ab
f2cf2da
9b44c5e
689b5e9
0e0487c
28d27d6
d334aa6
171a31e
125ba0a
98bf16a
03153e0
3466906
9f0a323
ad83b45
0990d32
b976f94
8e9d364
781cacd
5cd4559
61a5c87
6c1ecd7
28d87c9
0080e89
ab9c14a
57746ee
046b87b
f577998
4f28941
5908f7a
582b654
a5e4840
bb5455c
ac6a5c2
f44ff72
a753af5
b0f24b5
c1588b4
9494a19
d1b4f1c
d649710
0008cf8
37baaf6
8d8242a
0a1b730
75ec8e6
81ae556
22e7798
866f52b
372c71c
88bf195
2ba8dd6
a20a21a
354252d
a2432df
3318c4a
47ae909
a830cdb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Federation only: from this release on, remote connections should be configured via an internal REST API; the config files will be honored for a transition period, but will be ignored starting in a future release. YOU NEED TO UPDATE YOUR BRIG HELM CHART BEFORE DEPLOYING THIS RELEASE. [Details in the docs.](http://docs.wire.com/understand/configure-federation.html#if-your-instance-has-been-federating-before) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| # Federation Design Aspects | ||
|
|
||
| (configuring-remote-connections-dev-perspective)= | ||
|
|
||
| ## Keeping track of federator remotes | ||
|
|
||
| **Since [PR#3260](https://github.com/wireapp/wire-server/pull/3260).** | ||
|
|
||
| Federation can start and end. These events need handlers to be called | ||
| (like remove remote users from local conv), plus it is not convenient | ||
| to edit and re-deploy config files every time that happens. Hence | ||
| remotes are stored in cassandra in brig, and every pod of every | ||
| service keeps a cache in an `IORef` in its `Env` (this information is | ||
| needed in many end-points, so it has to remain as fast as read access | ||
| to `Env`). | ||
|
|
||
| See {ref}`configure-federation-strategy-in-brig` for the | ||
| administrator's point of view. If you haven't done so, go read that | ||
| section now! | ||
|
|
||
| The state is persisted in cassandra table `brig.federation_remotes`. | ||
| brig provides the contents via an internal CRUD API (see | ||
| {ref}`configure-federation-strategy-in-brig` for the links). In the | ||
| future, we may decide that brig needs to cache the table itself, but | ||
| for now (`GET` is only used for the internal end-point to share it | ||
| with other services) we hope to get away with the simple solution and | ||
| always read from cassandra directly. | ||
|
|
||
| (More details to be added?) | ||
|
fisx marked this conversation as resolved.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add details or remove?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fair point. but i'm not going to spend another day beating concourse for this change :-P |
||
Uh oh!
There was an error while loading. Please reload this page.