Loading...
Searching...
No Matches
Data Fields
as_node Struct Reference

Detailed Description

Server node representation.

Definition at line 221 of file as_node.h.

#include "as_node.h"

+ Collaboration diagram for as_node:

Data Fields

uint8_t active
 
uint32_t address4_size
 
uint32_t address6_size
 
uint32_t address_index
 
as_addressaddresses
 
as_vector aliases
 
as_async_conn_poolasync_conn_pools
 
struct as_cluster_s * cluster
 
uint32_t conn_iter
 
uint64_t error_count
 
uint32_t error_rate
 
uint32_t failures
 
uint32_t features
 
uint32_t friends
 
uint32_t index
 
as_socket info_socket
 
as_node_metricsmetrics
 
char name [AS_NODE_NAME_SIZE]
 
bool partition_changed
 
uint32_t partition_generation
 
uint32_t partition_ref_count
 
uint32_t peers_count
 
uint32_t peers_generation
 
uint8_t perform_login
 
as_async_conn_poolpipe_conn_pools
 
as_racksracks
 
bool rebalance_changed
 
uint32_t rebalance_generation
 
uint32_t ref_count
 
as_sessionsession
 
as_conn_poolsync_conn_pools
 
uint32_t sync_conns_closed
 
uint32_t sync_conns_opened
 
uint64_t timeout_count
 
char * tls_name
 

Field Documentation

◆ active

uint8_t as_node::active

Is node currently active.

Definition at line 388 of file as_node.h.

◆ address4_size

uint32_t as_node::address4_size

Number of IPv4 addresses.

Definition at line 260 of file as_node.h.

◆ address6_size

uint32_t as_node::address6_size

Number of IPv6 addresses.

Definition at line 265 of file as_node.h.

◆ address_index

uint32_t as_node::address_index

Primary address index into addresses array.

Definition at line 255 of file as_node.h.

◆ addresses

as_address* as_node::addresses

Array of IP addresses. Not thread-safe.

Definition at line 270 of file as_node.h.

◆ aliases

as_vector as_node::aliases

Array of hostnames aliases. Not thread-safe.

Definition at line 275 of file as_node.h.

◆ async_conn_pools

as_async_conn_pool* as_node::async_conn_pools

Array of connection pools used in async commands. There is one pool per node/event loop. Only used by event loop threads. Not thread-safe.

Definition at line 291 of file as_node.h.

◆ cluster

struct as_cluster_s* as_node::cluster

Cluster from which this node resides.

Definition at line 280 of file as_node.h.

◆ conn_iter

uint32_t as_node::conn_iter

Connection queue iterator. Not atomic by design.

Definition at line 333 of file as_node.h.

◆ error_count

uint64_t as_node::error_count

Transaction error count since node was initialized. If the error is retryable, multiple errors per transaction may occur.

Definition at line 322 of file as_node.h.

◆ error_rate

uint32_t as_node::error_rate

Error count for this node's error_rate_window.

Definition at line 348 of file as_node.h.

◆ failures

uint32_t as_node::failures

Number of consecutive info request failures.

Definition at line 373 of file as_node.h.

◆ features

uint32_t as_node::features

Features supported by server. Stored in bitmap.

Definition at line 240 of file as_node.h.

◆ friends

uint32_t as_node::friends

Number of other nodes that consider this node a member of the cluster.

Definition at line 368 of file as_node.h.

◆ index

uint32_t as_node::index

Shared memory node array index.

Definition at line 378 of file as_node.h.

◆ info_socket

as_socket as_node::info_socket

Socket used exclusively for cluster tend thread info requests.

Definition at line 316 of file as_node.h.

◆ metrics

as_node_metrics* as_node::metrics

Node metrics

Definition at line 311 of file as_node.h.

◆ name

char as_node::name[AS_NODE_NAME_SIZE]

The name of the node.

Definition at line 250 of file as_node.h.

◆ partition_changed

bool as_node::partition_changed

Did partition change in current cluster tend.

Definition at line 393 of file as_node.h.

◆ partition_generation

uint32_t as_node::partition_generation

Server's generation count for partition management.

Definition at line 235 of file as_node.h.

◆ partition_ref_count

uint32_t as_node::partition_ref_count

Reference count of node in partition maps.

Definition at line 230 of file as_node.h.

◆ peers_count

uint32_t as_node::peers_count

Number of peers returned by server node.

Definition at line 358 of file as_node.h.

◆ peers_generation

uint32_t as_node::peers_generation

Server's generation count for peers.

Definition at line 353 of file as_node.h.

◆ perform_login

uint8_t as_node::perform_login

Should user login to avoid session expiration.

Definition at line 383 of file as_node.h.

◆ pipe_conn_pools

as_async_conn_pool* as_node::pipe_conn_pools

Pool of connections used in pipelined async commands. Also not thread-safe.

Definition at line 296 of file as_node.h.

◆ racks

as_racks* as_node::racks

Racks data.

Definition at line 306 of file as_node.h.

◆ rebalance_changed

bool as_node::rebalance_changed

Did rebalance generation change in current cluster tend.

Definition at line 398 of file as_node.h.

◆ rebalance_generation

uint32_t as_node::rebalance_generation

Server's generation count for partition rebalancing.

Definition at line 363 of file as_node.h.

◆ ref_count

uint32_t as_node::ref_count

Reference count of node.

Definition at line 225 of file as_node.h.

◆ session

as_session* as_node::session

Authentication session.

Definition at line 301 of file as_node.h.

◆ sync_conn_pools

as_conn_pool* as_node::sync_conn_pools

Pools of current, cached sockets.

Definition at line 285 of file as_node.h.

◆ sync_conns_closed

uint32_t as_node::sync_conns_closed

Total sync connections closed.

Definition at line 343 of file as_node.h.

◆ sync_conns_opened

uint32_t as_node::sync_conns_opened

Total sync connections opened.

Definition at line 338 of file as_node.h.

◆ timeout_count

uint64_t as_node::timeout_count

Transaction timeout count since node was initialized. If the timeout is retryable (ie socketTimeout), multiple timeouts per transaction may occur.

Definition at line 328 of file as_node.h.

◆ tls_name

char* as_node::tls_name

TLS certificate name (needed for TLS only, NULL otherwise).

Definition at line 245 of file as_node.h.


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