Skip to content

Commit

Permalink
Merge pull request #78 from StackStorm/enhancement/rmq-enable-queue-m…
Browse files Browse the repository at this point in the history
…irroring

Enable RabbitMQ Queue mirroring
  • Loading branch information
armab authored Aug 22, 2019
2 parents ec7e411 + db722f5 commit 8cbc642
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## In Development


## v0.19.0
* Configure RabbitMQ Queue mirroring by default, see https://www.rabbitmq.com/ha.html (#78)

## v0.18.0
* Pin st2 to `v3.2dev` as a new latest development version (#77)

Expand Down
2 changes: 1 addition & 1 deletion Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
# Update StackStorm version here to rely on other Docker images tags
appVersion: 3.2dev
name: stackstorm-ha
version: 0.18.0
version: 0.19.0
description: StackStorm K8s Helm Chart, optimized for running StackStorm in HA environment.
home: https://stackstorm.com/#product
icon: https://avatars1.githubusercontent.com/u/4969009
Expand Down
2 changes: 1 addition & 1 deletion requirements.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies:
- name: rabbitmq-ha
version: 1.20.1
version: 1.31.0
repository: https://kubernetes-charts.storage.googleapis.com/
- name: mongodb-replicaset
version: 3.9.2
Expand Down
1 change: 0 additions & 1 deletion templates/configmaps_st2-conf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ data:
[coordination]
url = etcd://{{ .Release.Name }}-etcd:2379
[messaging]
# TODO: RabbitMQ HQ connection string needs templating based on number of nodes
url = amqp://{{ required "rabbitmq-ha.rabbitmqUsername is required!" (index .Values "rabbitmq-ha" "rabbitmqUsername") }}:{{ required "rabbitmq-ha.rabbitmqPassword is required!" (index .Values "rabbitmq-ha" "rabbitmqPassword") }}@{{ .Release.Name }}-rabbitmq-ha-discovery:5672
[database]
# TODO: ReplicaSet connection string needs templating based on number of MongoDB nodes
Expand Down
6 changes: 6 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,12 @@ rabbitmq-ha:
rabbitmqPassword: 9jS+w1u07NbHtZke1m+jW4Cj
persistentVolume:
enabled: true
# RabbitMQ application vhost, should match with 'ha' Queue Mirroring definition policy
rabbitmqVhost: "/"
definitions:
# Enable Queue Mirroring between nodes
# See https://www.rabbitmq.com/ha.html
policies: '{"vhost":"/","name":"ha","pattern":"", "definition":{"ha-mode":"all","ha-sync-mode":"automatic","ha-sync-batch-size":10}}'

##
## Etcd HA configuration (3rd party chart dependency)
Expand Down

0 comments on commit 8cbc642

Please sign in to comment.