Skip to content

Commit

Permalink
公式ドキュメントを参考に初期コンタクトポイントの必要数を定義
Browse files Browse the repository at this point in the history
  • Loading branch information
kuramapommel committed Nov 29, 2024
1 parent 35aa1e4 commit e8f91b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sample/kubernetes/akka-cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ spec:
containerPort: 8080
protocol: TCP
env:
- name: REQUIRED_CONTACT_POINT_NR
value: "2"
- name: HTTP_PORT
value: "8080"
- name: DYNAMODB_HOST
Expand Down
2 changes: 2 additions & 0 deletions sample/src/main/resources/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ akka {
cluster.bootstrap {
contact-point-discovery {
discovery-method = kubernetes-api
required-contact-point-nr = 0
required-contact-point-nr = ${?REQUIRED_CONTACT_POINT_NR}
}
}
health-checks {
Expand Down

0 comments on commit e8f91b4

Please sign in to comment.