Skip to content
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

Custom epmd to avoid race conditions in DNS name resolutions #27

Merged
merged 2 commits into from
Nov 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions MongooseIM/configs/vm.args
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,9 @@

-kernel inet_dist_listen_min 9100
-kernel inet_dist_listen_max 9100

## Use a custom Erlang Port Mapper (EPMD) module
## This module uses RDBMS and CETS to resolve node IP addresses
{{ if and (eq "cets" .Values.volatileDatabase) (eq "rdbms" .Values.persistentDatabase) -}}
-epmd_module mongoose_epmd
{{ end -}}
4 changes: 4 additions & 0 deletions MongooseIM/templates/mongoose-sts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ spec:
value: "name"
- name: NODE_NAME
value: {{ .Values.nodeName }}
- name: MIM_NODE_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
ports:
- name: epmd
containerPort: 4369
Expand Down
2 changes: 2 additions & 0 deletions MongooseIM/templates/mongoose-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ spec:
- name: gql-user
port: 5561
targetPort: 5561
# Headless service
clusterIP: None
publishNotReadyAddresses: true
selector:
app: mongooseim