![]() |
Cluster of server nodes.
Definition at line 108 of file as_cluster.h.
#include "as_cluster.h"
Private Attributes | |
pthread_mutex_t | batch_init_lock |
uint32_t | batch_initialized |
cf_queue * | batch_q |
pthread_t | batch_threads [AS_NUM_BATCH_THREADS] |
uint32_t | conn_queue_size |
uint32_t | conn_timeout_ms |
as_vector * | gc |
as_addr_map * | ip_map |
uint32_t | ip_map_size |
uint32_t | max_socket_idle |
cl_partition_id | n_partitions |
uint32_t | node_index |
as_nodes * | nodes |
as_partition_tables * | partition_tables |
char * | password |
uint32_t | query_initialized |
cf_queue * | query_q |
pthread_t | query_threads [AS_NUM_QUERY_THREADS] |
uint32_t | scan_initialized |
cf_queue * | scan_q |
pthread_t | scan_threads [AS_NUM_SCAN_THREADS] |
as_seed * | seeds |
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 |
char * | user |
volatile bool | valid |
|
private |
Batch transaction lock.
Definition at line 271 of file as_cluster.h.
|
private |
Batch initialize indicator.
Definition at line 241 of file as_cluster.h.
|
private |
Batch process queue.
Definition at line 125 of file as_cluster.h.
|
private |
Batch process threads.
Definition at line 283 of file as_cluster.h.
|
private |
Size of node's synchronous connection pool.
Definition at line 217 of file as_cluster.h.
|
private |
Initial connection timeout in milliseconds.
Definition at line 223 of file as_cluster.h.
|
private |
Nodes to be garbage collected.
Definition at line 143 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 190 of file as_cluster.h.
|
private |
Length of ip_map array.
Definition at line 179 of file as_cluster.h.
|
private |
Maximum socket idle in seconds.
Definition at line 229 of file as_cluster.h.
|
private |
Total number of data partitions used by cluster.
Definition at line 259 of file as_cluster.h.
|
private |
Random node index.
Definition at line 235 of file as_cluster.h.
|
private |
Active nodes in cluster.
Definition at line 113 of file as_cluster.h.
|
private |
Hints for best node for a partition.
Definition at line 119 of file as_cluster.h.
|
private |
Password in hashed format in bytes.
Definition at line 161 of file as_cluster.h.
|
private |
Query initialize indicator.
Definition at line 253 of file as_cluster.h.
|
private |
Query process queue.
Definition at line 137 of file as_cluster.h.
|
private |
Query process threads.
Definition at line 295 of file as_cluster.h.
|
private |
Scan initialize indicator.
Definition at line 247 of file as_cluster.h.
|
private |
Scan process queue.
Definition at line 131 of file as_cluster.h.
|
private |
Scan process threads.
Definition at line 289 of file as_cluster.h.
|
private |
Initial seed nodes specified by user.
Definition at line 167 of file as_cluster.h.
|
private |
Length of seeds array.
Definition at line 173 of file as_cluster.h.
|
private |
Shared memory implementation of cluster.
Definition at line 149 of file as_cluster.h.
|
private |
Tend thread identifier to be used with tend_lock.
Definition at line 205 of file as_cluster.h.
|
private |
Milliseconds between cluster tends.
Definition at line 211 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 199 of file as_cluster.h.
|
private |
Cluster tend thread.
Definition at line 277 of file as_cluster.h.
|
private |
User name in UTF-8 encoded bytes.
Definition at line 155 of file as_cluster.h.
|
private |
Should continue to tend cluster.
Definition at line 265 of file as_cluster.h.