Synapse: Add Federation-inbound worker

This commit is contained in:
Gaël Goinvic committed 2025-04-29 08:50:22 +02:00
1 parent 37051f5664
commit c2bfbf72e2
7 files changed
+172

No files matched your search

@@ -17,6 +17,8 @@ synapse:
event-persister:
enabled: true
replicas: 2
federation-inbound:
enabled: true
federation-reader:
enabled: true
federation-sender:
@@ -30,6 +30,8 @@ synapse:
event-persister:
enabled: true
replicas: 2
federation-inbound:
enabled: true
federation-reader:
enabled: true
federation-sender:
+3
View File
@@ -193,6 +193,9 @@
"event-persister": {
"$ref": "file://synapse/scalable_worker.json"
},
"federation-inbound": {
"$ref": "file://synapse/scalable_worker.json"
},
"federation-reader": {
"$ref": "file://synapse/scalable_worker.json"
},
@@ -57,6 +57,7 @@ workers:
{{- synapse_sub_schema_values.single_worker('encryption') | indent(2) }}
{{- synapse_sub_schema_values.scalable_worker('event-creator') | indent(2) }}
{{- synapse_sub_schema_values.scalable_worker('event-persister') | indent(2) }}
{{- synapse_sub_schema_values.scalable_worker('federation-inbound') | indent(2) }}
{{- synapse_sub_schema_values.scalable_worker('federation-reader') | indent(2) }}
{{- synapse_sub_schema_values.scalable_worker('federation-sender') | indent(2) }}
{{- synapse_sub_schema_values.scalable_worker('initial-synchrotron') | indent(2) }}
+153
View File
@@ -4940,6 +4940,159 @@
"type": "object",
"additionalProperties": false
},
"federation-inbound": {
"required": [
"replicas"
],
"properties": {
"enabled": {
"type": "boolean"
},
"replicas": {
"type": "integer",
"minimum": 1
},
"resources": {
"properties": {
"limits": {
"additionalProperties": {
"anyOf": [
{
"type": "integer"
},
{
"type": "string"
}
],
"pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$"
},
"type": "object"
},
"requests": {
"additionalProperties": {
"anyOf": [
{
"type": "integer"
},
{
"type": "string"
}
],
"pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$"
},
"type": "object"
}
},
"type": "object",
"additionalProperties": false
},
"topologySpreadConstraints": {
"type": "array",
"items": {
"required": [
"maxSkew",
"topologyKey"
],
"properties": {
"labelSelector": {
"type": "object",
"properties": {
"matchExpressions": {
"type": "array",
"items": {
"type": "object",
"required": [
"key",
"operator"
],
"properties": {
"key": {
"type": "string"
},
"operator": {
"type": "string",
"enum": [
"In",
"NotIn",
"Exists",
"DoesNotExist"
]
},
"values": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false
}
},
"matchLabels": {
"type": [
"object",
"null"
],
"additionalProperties": {
"type": [
"string",
"null"
]
}
}
},
"additionalProperties": false
},
"matchLabelKeys": {
"type": [
"array",
"null"
],
"items": {
"type": "string"
}
},
"maxSkew": {
"type": "integer",
"minium": 1
},
"minDomains": {
"type": "integer",
"minium": 0
},
"nodeAffinityPolicy": {
"type": "string",
"enum": [
"Honor",
"Ignore"
]
},
"nodeTaintsPolicy": {
"type": "string",
"enum": [
"Honor",
"Ignore"
]
},
"topologyKey": {
"type": "string"
},
"whenUnsatisfiable": {
"type": "string",
"enum": [
"DoNotSchedule",
"ScheduleAnyway"
]
}
},
"type": "object",
"additionalProperties": false
}
}
},
"type": "object",
"additionalProperties": false
},
"federation-reader": {
"required": [
"replicas"
+10
View File
@@ -1812,6 +1812,16 @@ synapse:
## The number of replicas of this worker to run
replicas: 1
## Resources for this worker.
## If omitted the global Synapse resources are used
# resources: {}
federation-inbound:
## Set to true to deploy this worker
enabled: false
## The number of replicas of this worker to run
replicas: 1
## Resources for this worker.
## If omitted the global Synapse resources are used
# resources: {}
+1
View File
@@ -0,0 +1 @@
Synapse: Fix missing `federation-inbound` worker from values schema.