Skip to content

Commit

Permalink
improve temporal configuration on kubernetes (#4183)
Browse files Browse the repository at this point in the history
* use proper dynamic config

* fmt

* clarify comment
  • Loading branch information
jrhizor authored Jun 18, 2021
1 parent 63d1274 commit 991cb68
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 10 deletions.
67 changes: 57 additions & 10 deletions kube/resources/temporal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,55 @@ spec:
selector:
airbyte: temporal
---
apiVersion: v1
kind: ConfigMap
metadata:
name: airbyte-temporal-dynamicconfig
data:
"development.yaml": |
# when modifying, remember to update the docker-compose version of this file in temporal/dynamicconfig/development.yaml
frontend.enableClientVersionCheck:
- value: true
constraints: {}
history.persistenceMaxQPS:
- value: 3000
constraints: {}
frontend.persistenceMaxQPS:
- value: 3000
constraints: {}
frontend.historyMgrNumConns:
- value: 30
constraints: {}
frontend.throttledLogRPS:
- value: 20
constraints: {}
history.historyMgrNumConns:
- value: 50
constraints: {}
system.advancedVisibilityWritingMode:
- value: "off"
constraints: {}
history.defaultActivityRetryPolicy:
- value:
InitialIntervalInSeconds: 1
MaximumIntervalCoefficient: 100.0
BackoffCoefficient: 2.0
MaximumAttempts: 0
history.defaultWorkflowRetryPolicy:
- value:
InitialIntervalInSeconds: 1
MaximumIntervalCoefficient: 100.0
BackoffCoefficient: 2.0
MaximumAttempts: 0
# Limit for responses. This mostly impacts discovery jobs since they have the largest responses.
limit.blobSize.error:
- value: 15728640 # 15MB
constraints: {}
limit.blobSize.warn:
- value: 10485760 # 10MB
constraints: {}
---
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -50,14 +99,12 @@ spec:
ports:
- containerPort: 7233
volumeMounts:
- name: airbyte-volume-configs
mountPath: /configs
- name: airbyte-volume-workspace
mountPath: /workspace
- name: airbyte-temporal-dynamicconfig
mountPath: "/etc/temporal/config/dynamicconfig/"
volumes:
- name: airbyte-volume-workspace
persistentVolumeClaim:
claimName: airbyte-volume-workspace
- name: airbyte-volume-configs
persistentVolumeClaim:
claimName: airbyte-volume-configs
- name: airbyte-temporal-dynamicconfig
configMap:
name: airbyte-temporal-dynamicconfig
items:
- key: development.yaml
path: development.yaml
1 change: 1 addition & 0 deletions temporal/dynamicconfig/development.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# when modifying, remember to update the kube version of this file kube/resources/temporal.yaml
frontend.enableClientVersionCheck:
- value: true
constraints: {}
Expand Down

0 comments on commit 991cb68

Please sign in to comment.