You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a Worker node’s primary pod crashes and restarts under a new IP address, I can successfully use citus_update_node() to update the nodename in the pg_dist_node metadata table. However, if the pod’s role changes from Primary to Replica during this event, I see no corresponding function in Citus that allows me to update the noderole from "primary" to "secondary", hasmetadata from "true" to "false", and metadatasynced from "true" to "false".
I am looking for guidance on how to properly update noderole, hasmetadata, and metadatasynced in pg_dist_node if the role of a pod changes for any reason. While I have noticed that citus_set_node_property() can modify certain pg_dist_node properties, it appears it can currently only change the shouldhaveshards property.
Question: What is the recommended way to update noderole, hasmetadata, and metadatasynced in pg_dist_node to reflect role changes for a Worker node?
Thank you for your assistance!
The text was updated successfully, but these errors were encountered:
I have a multi-node Citus/Patorni deployment in GKE with the following configuration:
When a Worker node’s primary pod crashes and restarts under a new IP address, I can successfully use
citus_update_node()
to update thenodename
in thepg_dist_node
metadata table. However, if the pod’s role changes from Primary to Replica during this event, I see no corresponding function in Citus that allows me to update thenoderole
from "primary" to "secondary",hasmetadata
from "true" to "false", andmetadatasynced
from "true" to "false".I am looking for guidance on how to properly update
noderole
,hasmetadata
, andmetadatasynced
inpg_dist_node
if the role of a pod changes for any reason. While I have noticed thatcitus_set_node_property()
can modify certainpg_dist_node
properties, it appears it can currently only change theshouldhaveshards
property.Question: What is the recommended way to update
noderole
,hasmetadata
, andmetadatasynced
inpg_dist_node
to reflect role changes for a Worker node?Thank you for your assistance!
The text was updated successfully, but these errors were encountered: