acs::Cluster method check_state (public)
<instance of acs::Cluster> check_state
Defined in packages/acs-tcl/tcl/cluster-procs.tcl
Check the livelyness of the dynamic cluster nodes. This method is intended to be run on the canonical server only, since it might update the DynamicClusterPeers via acs::clusterwide.
- Testcases:
- No testcase defined.
Source code: set autodeleteInterval [parameter::get -package_id $::acs::kernel_id -parameter ClusterAutodeleteInterval -default 2m] foreach node [:dynamic_cluster_nodes] { set last_contact [acs::cluster last_contact $node] if {$last_contact ne ""} { set seconds [expr {$last_contact/1000}] if {[clock seconds]-($last_contact/1000) > [ns_baseunit -time $autodeleteInterval]} { ns_log notice "[self] disconnect dynamic node $node due to ClusterAutodeleteInterval" :disconnect_request $node } } }XQL Not present: Generic, PostgreSQL, Oracle