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.5 2021/10/27 16:42:15 gustafn Exp $

Procedures in this file

Detailed information

ad_canonical_server_p (private)

 ad_canonical_server_p

Returns true if this is the primary (called historically "canonical") server, false otherwise. Since the server can listen to multiple IP addresses and on multiple ports, all of these have to be checked.

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

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

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):
%3

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/cluster-init.tcl packages/acs-tcl/ tcl/cluster-init.tcl packages/acs-tcl/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 server_cluster_authorized_p server_cluster_authorized_p (public) server_cluster_authorized_p->server_cluster_enabled_p

Testcases:
No testcase defined.

server_cluster_get_config (private)

 server_cluster_get_config hostport

Return a dict parsed from the host and port spec. If no port is specified, it defaults to 80

Parameters:
hostport - IP address with optional port
Returns:
dict containing host and port

Partial Call Graph (max 5 caller/called nodes):
%3 ad_canonical_server_p ad_canonical_server_p (private) server_cluster_get_config server_cluster_get_config ad_canonical_server_p->server_cluster_get_config packages/acs-tcl/tcl/cluster-init.tcl packages/acs-tcl/ tcl/cluster-init.tcl packages/acs-tcl/tcl/cluster-init.tcl->server_cluster_get_config

Testcases:
No testcase defined.

server_cluster_my_config (private)

 server_cluster_my_config

Partial Call Graph (max 5 caller/called nodes):
%3 ad_canonical_server_p ad_canonical_server_p (private) server_cluster_my_config server_cluster_my_config ad_canonical_server_p->server_cluster_my_config packages/acs-tcl/tcl/cluster-init.tcl packages/acs-tcl/ tcl/cluster-init.tcl packages/acs-tcl/tcl/cluster-init.tcl->server_cluster_my_config

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

Testcases:
No testcase defined.
[ show source ]