Cluster of server nodes.
Definition at line 101 of file as_cluster.h.
#include "as_cluster.h"
Data Fields | |
as_cluster_event_callback | event_callback |
void * | event_callback_udata |
as_event_state * | event_state |
|
private |
Maximum async (non-pipeline) connections per node.
Definition at line 291 of file as_cluster.h.
|
private |
Minimum async connections per node.
Definition at line 285 of file as_cluster.h.
|
private |
Is authentication enabled
Definition at line 363 of file as_cluster.h.
|
private |
Authentication mode.
Definition at line 339 of file as_cluster.h.
|
private |
Expected cluster name for all nodes. May be null.
Definition at line 148 of file as_cluster.h.
|
private |
Number of synchronous connection pools used for each node.
Definition at line 303 of file as_cluster.h.
|
private |
Initial connection timeout in milliseconds.
Definition at line 309 of file as_cluster.h.
|
private |
Number of tend iterations defining window for max_error_rate.
Definition at line 255 of file as_cluster.h.
as_cluster_event_callback as_cluster::event_callback |
Cluster event function that will be called when nodes are added/removed from the cluster.
Definition at line 153 of file as_cluster.h.
void* as_cluster::event_callback_udata |
Cluster event user data that will be passed back to event_callback.
Definition at line 158 of file as_cluster.h.
as_event_state* as_cluster::event_state |
Cluster state for all event loops.
Definition at line 163 of file as_cluster.h.
|
private |
Fail on cluster init if seed node and all peers are not reachable.
Definition at line 375 of file as_cluster.h.
|
private |
Nodes to be garbage collected.
Definition at line 118 of file as_cluster.h.
|
private |
Does cluster support partition queries.
Definition at line 369 of file as_cluster.h.
|
private |
Count of add node failures in the most recent cluster tend iteration.
Definition at line 327 of file as_cluster.h.
|
private |
A IP translation table is used in cases where different clients use different server IP addresses. This may be necessary when using clients from both inside and outside a local area network. Default is no translation.
The key is the IP address returned from friend info requests to other servers. The value is the real IP address used to connect to the server.
Definition at line 180 of file as_cluster.h.
|
private |
Node login timeout in milliseconds.
Definition at line 315 of file as_cluster.h.
|
private |
Maximum sync connections per node.
Definition at line 279 of file as_cluster.h.
|
private |
Max errors per node per error_rate_window.
Definition at line 249 of file as_cluster.h.
|
private |
Maximum socket idle to validate connections in transactions.
Definition at line 225 of file as_cluster.h.
|
private |
Maximum socket idle to trim peak connections to min connections.
Definition at line 231 of file as_cluster.h.
|
private |
Minimum sync connections per node.
Definition at line 273 of file as_cluster.h.
|
private |
Total number of data partitions used by cluster.
Definition at line 345 of file as_cluster.h.
|
private |
Random node index.
Definition at line 321 of file as_cluster.h.
|
private |
Active nodes in cluster.
Definition at line 106 of file as_cluster.h.
|
private |
Hints for best node for a partition.
Definition at line 112 of file as_cluster.h.
|
private |
Password in clear text.
Definition at line 136 of file as_cluster.h.
|
private |
Password in hashed format.
Definition at line 142 of file as_cluster.h.
|
private |
Maximum pipeline connections per node.
Definition at line 297 of file as_cluster.h.
|
private |
Request server rack ids.
Definition at line 357 of file as_cluster.h.
|
private |
Rack ids
Definition at line 237 of file as_cluster.h.
|
private |
Rack ids size
Definition at line 243 of file as_cluster.h.
|
private |
Lock for adding/removing seeds.
Definition at line 204 of file as_cluster.h.
|
private |
Initial seed hosts specified by user.
Definition at line 169 of file as_cluster.h.
|
private |
Shared memory implementation of cluster.
Definition at line 124 of file as_cluster.h.
|
private |
Tend thread identifier to be used with tend_lock.
Definition at line 219 of file as_cluster.h.
|
private |
Cluster tend counter.
Definition at line 267 of file as_cluster.h.
|
private |
Milliseconds between cluster tends.
Definition at line 261 of file as_cluster.h.
|
private |
Lock for the tend thread to wait on with the tend interval as timeout. Normally locked, resulting in waiting a full interval between tend iterations. Upon cluster shutdown, unlocked by the main thread, allowing a fast termination of the tend thread.
Definition at line 213 of file as_cluster.h.
|
private |
Cluster tend thread.
Definition at line 198 of file as_cluster.h.
|
private |
Assign tend thread to this specific CPU ID.
Definition at line 333 of file as_cluster.h.
|
private |
Pool of threads used to query server nodes in parallel for batch, scan and query.
Definition at line 192 of file as_cluster.h.
|
private |
TLS parameters
Definition at line 186 of file as_cluster.h.
|
private |
If "services-alternate" should be used instead of "services"
Definition at line 351 of file as_cluster.h.
|
private |
User name in UTF-8 encoded bytes.
Definition at line 130 of file as_cluster.h.
|
private |
Should continue to tend cluster.
Definition at line 381 of file as_cluster.h.