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§
- Bootstrap
Credentials - Credentials for bootstrap
- Bootstrap
Request - Bootstrap request for creating a new cluster
- Cluster
Action Response - Response from cluster action operations
- Cluster
Bootstrap Info - Cluster information for bootstrap
- Cluster
Handler - Cluster handler for executing cluster commands
- Cluster
Info - Cluster information from the REST API
- Cluster
Node - Node information
- Cluster
Settings - Cluster-wide settings configuration (57 fields)
- License
Info - License information
- Node
Info - Node information