Best Practice for XRay Daemon - run one in each ECS task or create one for all our components to use?

0

I've been struggling with the concept of running one single XRay Daemon ECS container as a "hub" for all of our ECS tasks and EC2 instances instead of running a sidecar in every ECS task. Granted, the sidecar images are not that big, but there could end up being a lot of them. I guess I'm just reaching out for some opinions on which method is best: Side-car daemons in every ECS task - or - go for creating one XRay Daemon instance as a "hub" through which all our XRay tracing segments will pass.

profile picture
질문됨 일 년 전991회 조회
1개 답변
1

The recommended way is to configure the X-Ray daemon using the daemon service scheduler type, as described in these docs: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs_services.html

This way, you don't need to bother with the costs & configuration associated with deploying the daemon as a standalone service behind a load balancer. It deploys one daemon per container instance automatically, which means all your tasks will be able to communicate with the daemon on their instance using localhost as intended."

You may also refer to this Github issue [1] for more insights.

References: [1] - https://github.com/aws/aws-xray-daemon/issues/53

AWS
답변함 일 년 전

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

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

질문 답변하기에 대한 가이드라인

관련 콘텐츠