Skip to content

Commit 787f7a7

Browse files
committed
doc: added sessionAffinity hints
Signed-off-by: Tobias Soloschenko <[email protected]>
1 parent f736232 commit 787f7a7

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,33 @@ This installation includes Prometheus and Grafana as well.
117117
1. `kubectl apply -f scripts/kubernetes/prometheus/`
118118
3. `kubectl apply -f scripts/kubernetes/grafana`
119119

120+
Note: Within container orchestration platforms you have to ensure that all interactions of the client and server are bound to the same Pod the initial request was sent to. This can be achieved by using a `sessionAffinity` which is set to ClientIP
121+
122+
Example service definition:
123+
```yaml
124+
kind: Service
125+
apiVersion: v1
126+
metadata:
127+
labels:
128+
app: prometheus-rsocket-proxy-server
129+
# ...
130+
spec:
131+
ports:
132+
- name: https
133+
protocol: TCP
134+
port: 8443
135+
targetPort: https
136+
- name: rsocket
137+
protocol: TCP
138+
port: 7001
139+
targetPort: rsocket
140+
selector:
141+
app: prometheus-rsocket-proxy-server
142+
type: ClusterIP
143+
sessionAffinity: ClientIP
144+
```
145+
146+
120147
## Expected performance
121148

122149
A 3-pod deployment easily handles 1,000 connected application instances each serving 1,000 distinct time series with <1vCPU and <3Gi RAM total on GKE.

0 commit comments

Comments
 (0)