跳至內容

I want to set up the ELK stack for a production site. Could you please recommend the appropriate EC2 server configuration?

0

I want to set up the ELK stack for a production site. Could you please recommend the appropriate EC2 server configuration?

I want to cost effective solution.

已提問 1 年前檢視次數 126 次

1 個回答
0

When considering a cost-effective solution for running the ELK stack (Elasticsearch, Logstash, and Kibana) in production, I'd recommend evaluating whether self-hosting on EC2 is actually the most cost-effective approach.

Self-hosting the ELK stack on EC2 comes with significant operational overhead. Installation is rarely straightforward, requiring careful configuration of data ingestion limits, retention plans, and optimal hardware sizing. You'll need to manage this across all your environments, handle resiliency issues, and maintain the system over time.

Instead of self-hosting, consider using Amazon OpenSearch Service (formerly Amazon Elasticsearch Service), which provides the benefits of the ELK stack without the operational overhead. This managed service handles infrastructure management, implementation, and ongoing maintenance.

If you still prefer to self-host on EC2, here are some cost-optimization recommendations:

  1. Instance Selection:
  • Consider AWS Graviton-based instances which deliver up to 40% better price performance than comparable instances
  • EC2 Flex instances are good for applications that don't fully utilize compute resources, offering up to 19% better price performance
  1. Purchasing Options:
  • Use a mix of Reserved Instances for predictable workloads to lock in lower hourly costs
  • Consider Spot Instances for non-critical, stateless components to save up to 90% compared to On-Demand prices
  • Use On-Demand instances only for unpredictable workloads
  1. Auto Scaling:
  • Implement Auto Scaling Groups to dynamically adjust capacity based on demand
  • Use AWS Compute Optimizer to analyze performance and identify right-sizing opportunities
  1. Monitoring:
  • Leverage AWS Cost Explorer and Trusted Advisor to identify underutilized resources and cost-saving opportunities

Remember that the appropriate configuration will depend on your specific workload requirements, including the volume of logs, retention period, and query patterns.
Sources
Optimizing Costs for EC2 in High-Traffic Scenarios? | AWS re:Post
The benefits of the ELK stack without the operational overhead
Amazon EC2 Cost and Capacity Optimization | Amazon Web Services

已回答 1 年前

AWS
支援工程師

已審閱 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。