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 2017/08/07 23:47:59 gustafn Exp $

Procedures in this file

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):
%3 ad_schedule_proc ad_schedule_proc (public) ad_canonical_server_p ad_canonical_server_p ad_schedule_proc->ad_canonical_server_p ad_acs_kernel_id ad_acs_kernel_id (public) ad_canonical_server_p->ad_acs_kernel_id

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):
%3 packages/acs-tcl/tcl/cluster-init.tcl packages/acs-tcl/ tcl/cluster-init.tcl server_cluster_all_hosts server_cluster_all_hosts packages/acs-tcl/tcl/cluster-init.tcl->server_cluster_all_hosts packages/xotcl-core/tcl/cluster-init.tcl packages/xotcl-core/ tcl/cluster-init.tcl packages/xotcl-core/tcl/cluster-init.tcl->server_cluster_all_hosts server_cluster_peer_hosts server_cluster_peer_hosts (public) server_cluster_peer_hosts->server_cluster_all_hosts ad_acs_kernel_id ad_acs_kernel_id (public) server_cluster_all_hosts->ad_acs_kernel_id server_cluster_enabled_p server_cluster_enabled_p (public) server_cluster_all_hosts->server_cluster_enabled_p

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 ClusterIPMask or is 127.0.0.1?

Parameters:
ip

Partial Call Graph (max 5 caller/called nodes):
%3 ad_acs_kernel_id ad_acs_kernel_id (public) server_cluster_enabled_p server_cluster_enabled_p (public) server_cluster_authorized_p server_cluster_authorized_p server_cluster_authorized_p->ad_acs_kernel_id server_cluster_authorized_p->server_cluster_enabled_p

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):
%3 ad_schedule_proc ad_schedule_proc (public) server_cluster_enabled_p server_cluster_enabled_p ad_schedule_proc->server_cluster_enabled_p packages/acs-tcl/tcl/20-memoize-init.tcl packages/acs-tcl/ tcl/20-memoize-init.tcl packages/acs-tcl/tcl/20-memoize-init.tcl->server_cluster_enabled_p packages/acs-tcl/tcl/cluster-init.tcl packages/acs-tcl/ tcl/cluster-init.tcl packages/acs-tcl/tcl/cluster-init.tcl->server_cluster_enabled_p packages/xotcl-core/tcl/cluster-init.tcl packages/xotcl-core/ tcl/cluster-init.tcl packages/xotcl-core/tcl/cluster-init.tcl->server_cluster_enabled_p server_cluster_all_hosts server_cluster_all_hosts (public) server_cluster_all_hosts->server_cluster_enabled_p ad_acs_kernel_id ad_acs_kernel_id (public) server_cluster_enabled_p->ad_acs_kernel_id

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):
%3 packages/acs-tcl/tcl/20-memoize-init.tcl packages/acs-tcl/ tcl/20-memoize-init.tcl server_cluster_httpget_from_peers server_cluster_httpget_from_peers packages/acs-tcl/tcl/20-memoize-init.tcl->server_cluster_httpget_from_peers ad_schedule_proc ad_schedule_proc (public) server_cluster_httpget_from_peers->ad_schedule_proc server_cluster_peer_hosts server_cluster_peer_hosts (public) server_cluster_httpget_from_peers->server_cluster_peer_hosts

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):
%3 ad_acs_kernel_id ad_acs_kernel_id (public) server_cluster_logging_p server_cluster_logging_p server_cluster_logging_p->ad_acs_kernel_id

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):
%3 server_cluster_httpget_from_peers server_cluster_httpget_from_peers (private) server_cluster_peer_hosts server_cluster_peer_hosts server_cluster_httpget_from_peers->server_cluster_peer_hosts server_cluster_all_hosts server_cluster_all_hosts (public) server_cluster_peer_hosts->server_cluster_all_hosts

Testcases:
No testcase defined.
[ show source ]