citus icon indicating copy to clipboard operation
citus copied to clipboard

Coordinator host setting

Open wenq1 opened this issue 2 years ago • 2 comments

Coordinator host can be set using SELECT citus_set_coordinator_host ('192.168.5.1', 5434)

Two questions:

  • Can this setting be found out later on via e.g. SELECT citus_get_coordinator_host ()?
  • If for example 192.168.5.1 failed and a hot standby at 192.168.5.2 kicks in, now will all the workers (for example a worker can live on 192.168.5.100) continue to function now that the coordinator host has changed?

wenq1 avatar Aug 30 '21 04:08 wenq1

+1 https://stackoverflow.com/q/73315208/9756912

archongum avatar Aug 11 '22 05:08 archongum

You can use SELECT citus_is_coordinator()

Or, more generically get the host that you are connected to: https://github.com/citusdata/citus/pull/5888#discussion_r853132226

https://stackoverflow.com/q/73315208/9756912

We'll look into that soon

onderkalaci avatar Aug 11 '22 09:08 onderkalaci