SystemSettings¶
- class aerospike_sdk.policy.system_settings.SystemSettings[source]¶
Bases:
objectCluster-wide settings that apply to an entire cluster instance.
These settings cannot vary per Behavior – they are inherently global to the connection pool and cluster maintenance.
Example:
settings = SystemSettings( max_connections_per_node=200, max_socket_idle_time=timedelta(seconds=30), ) cluster = await ClusterDefinition("localhost", 3000) \ .with_system_settings(settings) \ .connect()
- apply_to(policy)[source]¶
Apply non-None fields to policy, returning the same object.
- Return type:
ClientPolicy
- __init__(min_connections_per_node=None, max_connections_per_node=None, conn_pools_per_node=None, max_socket_idle_time=None, tend_interval=None)¶