내용으로 건너뛰기

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.

질문됨 일 년 전125회 조회

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

답변함 일 년 전

AWS
지원 엔지니어

검토됨 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

관련 콘텐츠