Skip to content

Adding Failover Location to other PDP Cluster Location#131

Open
HLeighOZ wants to merge 1 commit into
pingidentity:masterfrom
HLeighOZ:BRASS-1271---PDP-Add-failover-locations
Open

Adding Failover Location to other PDP Cluster Location#131
HLeighOZ wants to merge 1 commit into
pingidentity:masterfrom
HLeighOZ:BRASS-1271---PDP-Add-failover-locations

Conversation

@HLeighOZ

Copy link
Copy Markdown

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
Copy Markdown
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

--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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Typo - "falover"

@PingDavidR PingDavidR requested a review from a team as a code owner December 3, 2025 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants