Module cluster

Module cluster 

Source
Expand description

Cluster management for Redis Enterprise

§Overview

  • Query cluster info, settings, topology, and license
  • Manage nodes (join, remove, maintenance mode)
  • Configure cluster policies and services
  • Handle certificates and LDAP configuration

§Examples

§Getting Cluster Information

use redis_enterprise::{EnterpriseClient, ClusterHandler};

let cluster = ClusterHandler::new(client);

// Get basic cluster info
let info = cluster.info().await?;
println!("Cluster: {} ({})", info.name, info.version.unwrap_or_default());

// Check license status
let license = cluster.license().await?;
println!("Licensed shards: {:?}", license.shards_limit);

§Node Management

let cluster = ClusterHandler::new(client);

// Join a new node to the cluster
let result = cluster.join_node(
    "192.168.1.100",
    "admin",
    "password"
).await?;
println!("Node joined: {:?}", result);

// Remove a node
let action = cluster.remove_node(3).await?;
println!("Removal started: {:?}", action);

Structs§

BootstrapCredentials
Credentials for bootstrap
BootstrapRequest
Bootstrap request for creating a new cluster
ClusterActionResponse
Response from cluster action operations
ClusterBootstrapInfo
Cluster information for bootstrap
ClusterHandler
Cluster handler for executing cluster commands
ClusterInfo
Cluster information from the REST API
ClusterNode
Node information
ClusterSettings
Cluster-wide settings configuration (57 fields)
LicenseInfo
License information
NodeInfo
Node information