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.6 2022/06/14 17:59:36 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 parameter::get parameter::get (public) ad_canonical_server_p->parameter::get server_cluster_get_config server_cluster_get_config (private) ad_canonical_server_p->server_cluster_get_config server_cluster_my_config server_cluster_my_config (private) ad_canonical_server_p->server_cluster_my_config

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 parameter::get parameter::get (public) server_cluster_enabled_p server_cluster_enabled_p (public) server_cluster_all_hosts server_cluster_all_hosts server_cluster_all_hosts->parameter::get 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 ClusterAuthorizedIP or is 127.0.0.1?

Parameters:
ip

Partial Call Graph (max 5 caller/called nodes):
%3 parameter::get parameter::get (public) server_cluster_enabled_p server_cluster_enabled_p (public) server_cluster_authorized_p server_cluster_authorized_p server_cluster_authorized_p->parameter::get 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/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 parameter::get parameter::get (public) server_cluster_enabled_p->parameter::get

Testcases:
No testcase defined.

server_cluster_get_config (private)

 server_cluster_get_config location

Return a dict parsed from the host and port spec. If no port is specified, it defaults to 80. If no scheme is specified, it defaults to "http". In case the hostname is provided as an DNS name, it is resolved.

Parameters:
location - location (e.g., https://localhost:8443) or just host with optional port
Returns:
dict containing proto, 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

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

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 util::join_location util::join_location (public) server_cluster_peer_hosts server_cluster_peer_hosts server_cluster_peer_hosts->util::join_location

Testcases:
No testcase defined.
[ show source ]