Get-BucketStats
This PowerShell cmdlet enables the user to retrieve and display bucket distribution and status information for the specified cache. It helps monitor how buckets are assigned across cluster nodes.
When to Use this Command
Use Get-BucketStats when you need to:
- Check how buckets are distributed across servers and how many are assigned to each node.
- Monitor redistribution after a node joins or leaves the cluster.
- Identify buckets currently under state transfer.
This is especially helpful during scale-out/scale-in operations or when investigating cluster stability.
Examples
- This command retrieves bucket statistics from demoCache.
Get-BucketStats -CacheName demoCache
- This command gets the bucket statistics from the demoCache nodes running on 20.200.20.11.
Get-BucketStats -CacheName demoCache -Server 20.200.20.11
- This command gets the bucket statistics for the bucket with ID 541.
Get-BucketStats -CacheName demoCache -BucketID 541
- This command gets detailed information regarding the buckets.
Get-BucketStats -CacheName demoCache -Detailed
- This command gets only the bucket statistics that are in state transfer.
Get-BucketStats -CacheName demoCache -ShowOnlyUnderStateTransfer
- This command retrieves bucket statistics from demoCache, using security credentials.
Get-BucketStats -CacheName demoCache -Credentials(Get-Credential john_smith)
Please refer to the PowerShell reference for parameter details of this command.
See Also
Browse Cache Statistics
Monitor Cluster Connectivity
Monitor using Test Stress