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
demandé il y a un an993 vues
1 réponse
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
répondu il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions