All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Private Attributes
as_cluster Struct Reference

Detailed Description

Cluster of server nodes.

Definition at line 101 of file as_cluster.h.

#include "as_cluster.h"

+ Collaboration diagram for as_cluster:

Private Attributes

uint32_t conn_queue_size
 
uint32_t conn_timeout_ms
 
as_vectorgc
 
as_addr_mapip_map
 
uint32_t ip_map_size
 
uint32_t max_socket_idle
 
cl_partition_id n_partitions
 
uint32_t node_index
 
as_nodesnodes
 
as_partition_tablespartition_tables
 
char * password
 
as_seedseeds
 
uint32_t seeds_size
 
struct as_shm_info_s * shm_info
 
pthread_cond_t tend_cond
 
uint32_t tend_interval
 
pthread_mutex_t tend_lock
 
pthread_t tend_thread
 
as_thread_pool thread_pool
 
char * user
 
volatile bool valid
 

Field Documentation

uint32_t as_cluster::conn_queue_size
private

Size of node's synchronous connection pool.

Definition at line 198 of file as_cluster.h.

uint32_t as_cluster::conn_timeout_ms
private

Initial connection timeout in milliseconds.

Definition at line 204 of file as_cluster.h.

as_vector* as_cluster::gc
private

Nodes to be garbage collected.

Definition at line 118 of file as_cluster.h.

as_addr_map* as_cluster::ip_map
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 165 of file as_cluster.h.

uint32_t as_cluster::ip_map_size
private

Length of ip_map array.

Definition at line 154 of file as_cluster.h.

uint32_t as_cluster::max_socket_idle
private

Maximum socket idle in seconds.

Definition at line 210 of file as_cluster.h.

cl_partition_id as_cluster::n_partitions
private

Total number of data partitions used by cluster.

Definition at line 222 of file as_cluster.h.

uint32_t as_cluster::node_index
private

Random node index.

Definition at line 216 of file as_cluster.h.

as_nodes* as_cluster::nodes
private

Active nodes in cluster.

Definition at line 106 of file as_cluster.h.

as_partition_tables* as_cluster::partition_tables
private

Hints for best node for a partition.

Definition at line 112 of file as_cluster.h.

char* as_cluster::password
private

Password in hashed format in bytes.

Definition at line 136 of file as_cluster.h.

as_seed* as_cluster::seeds
private

Initial seed nodes specified by user.

Definition at line 142 of file as_cluster.h.

uint32_t as_cluster::seeds_size
private

Length of seeds array.

Definition at line 148 of file as_cluster.h.

struct as_shm_info_s* as_cluster::shm_info
private

Shared memory implementation of cluster.

Definition at line 124 of file as_cluster.h.

pthread_cond_t as_cluster::tend_cond
private

Tend thread identifier to be used with tend_lock.

Definition at line 186 of file as_cluster.h.

uint32_t as_cluster::tend_interval
private

Milliseconds between cluster tends.

Definition at line 192 of file as_cluster.h.

pthread_mutex_t as_cluster::tend_lock
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 180 of file as_cluster.h.

pthread_t as_cluster::tend_thread
private

Cluster tend thread.

Definition at line 234 of file as_cluster.h.

as_thread_pool as_cluster::thread_pool
private

Pool of threads used to query server nodes in parallel for batch, scan and query.

Definition at line 171 of file as_cluster.h.

char* as_cluster::user
private

User name in UTF-8 encoded bytes.

Definition at line 130 of file as_cluster.h.

volatile bool as_cluster::valid
private

Should continue to tend cluster.

Definition at line 228 of file as_cluster.h.


The documentation for this struct was generated from the following file: