-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from Ortec-Finance/broker-scaledown-component
Enabling Zone Redundant High Availability Component for Sailfish-broker
- Loading branch information
Showing
8 changed files
with
74 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# High Availabilty | ||
While Sailfish Runners and Managers already are resilient as they run across multiple availability zones and can spin back up upon failures, The broker does not. | ||
|
||
By enabling this component you instead spin up two to three instances of the Sailfish-Broker. The `messageMigration` feature is enabled which will handle the migration of messages in the case of a Broker shutting down in a certain zone. | ||
|
||
## Compatibility | ||
This feature is not compatible with the `ephemeral-broker` as the `messageMigration` feature requires the use of PersistentVolumes. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
k8s/sailfish/components/high-availability/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
kind: Component | ||
|
||
patches: | ||
- target: | ||
group: broker.amq.io | ||
version: v1beta1 | ||
kind: ActiveMQArtemis | ||
name: sailfish-broker | ||
patch: |- | ||
- op: replace | ||
path: /spec/deploymentPlan/messageMigration | ||
value: true | ||
- target: | ||
group: broker.amq.io | ||
version: v1beta1 | ||
kind: ActiveMQArtemis | ||
name: sailfish-broker | ||
patch: |- | ||
- op: replace | ||
path: /spec/deploymentPlan/size | ||
value: 2 | ||
- target: | ||
group: keda.sh | ||
version: v1alpha1 | ||
kind: ScaledObject | ||
name: sailfish-amq-broker-autoscaler | ||
patch: |- | ||
- op: replace | ||
path: /spec/maxReplicaCount | ||
value: 3 | ||
- target: | ||
group: keda.sh | ||
version: v1alpha1 | ||
kind: ScaledObject | ||
name: sailfish-amq-broker-autoscaler | ||
patch: |- | ||
- op: replace | ||
path: /spec/minReplicaCount | ||
value: 2 | ||
- target: | ||
group: keda.sh | ||
version: v1alpha1 | ||
kind: ScaledObject | ||
name: sailfish-amq-broker-autoscaler | ||
patch: |- | ||
- op: replace | ||
path: /spec/idleReplicaCount | ||
value: 0 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters