- Publicity: Public Only All
server-cluster-procs.tcl
Provides methods for communicating between load-balanced servers.
- Location:
- packages/acs-tcl/tcl/server-cluster-procs.tcl
- Created:
- 7 Mar 2000
- Author:
- Jon Salz
- CVS Identification:
$Id: server-cluster-procs.tcl,v 1.10.2.1 2019/12/20 20:35:43 gustafn Exp $
Procedures in this file
- ad_canonical_server_p (private)
- server_cluster_all_hosts (public)
- server_cluster_authorized_p (public)
- server_cluster_enabled_p (public)
- server_cluster_httpget_from_peers (private)
- server_cluster_logging_p (private)
- server_cluster_peer_hosts (public)
Detailed information
ad_canonical_server_p (private)
ad_canonical_server_p
Returns true if this is the primary server, false otherwise. we're using IP:port to uniquely identify the canonical server, since hostname or IP does not always uniquely identify an instance of AOLserver (for instance, if we have the aolservers sitting behind a load balancer).
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
server_cluster_all_hosts (public)
server_cluster_all_hosts
Returns a list of all hosts, possibly including this host, in the server cluster.
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
server_cluster_authorized_p (public)
server_cluster_authorized_p ip
Can a request coming from $ip be a valid cluster request, i.e., matches some value in ClusterAuthorizedIP or is 127.0.0.1?
- Parameters:
- ip
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
server_cluster_enabled_p (public)
server_cluster_enabled_p
Returns true if clustering is enabled.
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
server_cluster_httpget_from_peers (private)
server_cluster_httpget_from_peers [ -timeout timeout ] url
Schedules an HTTP GET request to be issued immediately to all peer hosts (using ad_schedule_proc -once t -thread f -debug t 0).
- Switches:
- -timeout (defaults to
"5"
) (optional)- Parameters:
- url
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
server_cluster_logging_p (private)
server_cluster_logging_p
Returns true if we're logging cluster requests.
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
server_cluster_peer_hosts (public)
server_cluster_peer_hosts
Returns a list of all hosts, excluding this host, in the server cluster.
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.