Home icon
Amazon CloudWatch metrics for Amazon OpenSearch Service storage and shard skew health

Blog



This article explains how to optimize Amazon OpenSearch Service performance by monitoring storage and shard skew using CloudWatch metrics and a Lambda-based solution.

  • Proper shard strategy distributes workload evenly across data nodes for optimal performance
  • Target shard sizes: 10-30 GB for search, 30-50 GB for log analytics workloads
  • Storage skew above 10% from average significantly impacts CPU, network, and disk usage
  • CloudFormation template deploys Lambda function to extract shard metadata and push metrics to CloudWatch
  • Solution monitors NodeStorageSkew, NodeShardSkew, and ShardDiskUsed metrics daily by default
  • Use Index State Management (ISM) plugin to rotate indexes based on shard size, not just time
  • Minimal monthly cost; solution can be deleted via CloudFormation console anytime

This solution helps identify and remediate uneven shard distribution to improve OpenSearch domain performance and reduce operational costs.



Go to article

The AWS News Feed is currently looking for gold sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.

Related articles

The AWS News Feed is currently looking for silver sponsors. If you want to support the AWS community and reach a large audience of AWS professionals, consider sponsoring the AWS News Feed.