Skip to content
Visit booth 3171 at Google Cloud Next to see how to unlock real-time decisions at scaleMore info

Logs

Enable Client Log

Each Aerospike C client instance runs a background cluster tend thread that periodically polls all nodes for cluster status. This background thread generates log messages that reflect node additions and removals, and any errors when retrieving node status, peers, partition maps, and racks. User applications must enable this log to receive these important messages.

See Enable Log.

Circuit Breaker

Employ a circuit breaker that activates when a maximum error count is reached for a node and rejects requests to that node until the specified error window expires. The following as_config fields can create a circuit breaker.

max_error_rate

Maximum number of errors allowed per node per error_rate_window. Errors include connection errors, timeouts, and device overload. If maximum errors are reached, further requests to that node are retried to another node depending on the replica policy. If max_retries are exhausted, the back-off error code AEROSPIKE_MAX_ERROR_RATE is returned.

error_rate_window

The number of cluster tend iterations that defines the window for max_error_rate. One tend iteration is defined as the tender_interval (default 1 second) plus the time to tend all nodes. At the end of the window, the error count is reset to zero and backoff state is removed on all nodes.

The user application can optionally use a fallback cluster to handle traffic when the circuit breaker is employed.

Feedback

Was this page helpful?

What type of feedback are you giving?

What would you like us to know?

+Capture screenshot

Can we reach out to you?