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

Adding Failover Location to other PDP Cluster Location #131

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

HLeighOZ
Copy link

In order to provide location based PDP to PD assignment - with failover to 2nd Cluster - locations objects need to be configured with failover.

This dsconfig will require the 2nd Cluster name to be parsed into an ENV VAR - either via hook script, provided in deployment - or parsed in HELM chart from K8S_CLUSTERS - removing "this" cluster ?

In order to provide location based PDP to PD assignment - with failover to 2nd Cluster - locations objects need to be configured with failover
# Attempt to configure Locations using $Location = this location ; $PDP_LOC2 = secondary - preferred falover location.
# Add 2ndary location - from ENV Var provided - could be derived from (K8S_CLUSTERS | replace K8S_CLUSTER "")
dsconfig create-location \
--location-name "${PD_LOC2}" --set "preferred-failover-location:${LOCATION}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for opening this!
We should add a env_vars file to this profile that provides a default value for PD_LOC2 so that this profile can work when it isn't explicitly set. For example, you can see the env_vars file we use in our baseline profile here - https://github.com/pingidentity/pingidentity-server-profiles/blob/master/baseline/pingdirectory/env_vars

@@ -15,6 +15,14 @@ dsconfig create-ldap-health-check \
--type replication-backlog \
--set enabled:true \
--set base-dn:dc=example,dc=com

# Attempt to configure Locations using $Location = this location ; $PDP_LOC2 = secondary - preferred falover location.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo - "falover"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants