server_cluster_all_hosts (public)
server_cluster_all_hosts
Defined in packages/acs-tcl/tcl/server-cluster-procs.tcl
Returns a list of all hosts in the server cluster, possibly including the current host.
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: if { ![server_cluster_enabled_p] } { return {} } # # For now, include the CanonicalServer as well in the all_hosts # list, since the eases the configuration. Later, we might want to # have a canonical server, which is not a worker node, so it would # not need to receive all the cache-flush operations. # set canonicalServer [acs::cluster eval { :preferred_location [:qualified_location [parameter::get -package_id $::acs::kernel_id -parameter CanonicalServer]] }] set nodes [lsort -unique [concat $canonicalServer [parameter::get -package_id $::acs::kernel_id -parameter ClusterPeerIP] [parameter::get -package_id $::acs::kernel_id -parameter DynamicClusterPeers] ]] #ns_log notice "server_cluster_all_hosts returns <$nodes>" return $nodesXQL Not present: Generic, PostgreSQL, Oracle