Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assign indices or other identifier to each container behind an ALB, and use this to track requests #64

Open
malini opened this issue Dec 6, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@malini
Copy link
Collaborator

malini commented Dec 6, 2024

Is your feature request related to a problem? Please describe.
From Mel, regarding multiple containers behind an ALB: “It would be nice if we could assign them indexes and expose what server is acting on the request in the response headers 😄 Like a X-Thunderbird-Server-Id for debug purposes.”

@malini malini added the enhancement New feature or request label Dec 6, 2024
@ryanjjung
Copy link
Collaborator

This is interesting. When we tell the containers to run, it's by defining a task definition (container sizing, image, environment stuff) and a desired scale ("I want 3 instances of this running"). So there's not a great deal of control over the individual containers.

The containers are identified to the load balancer by IP address. Over time, with several container replacements, some IPs might get reused, so using that as an identifier wouldn't provide this feature forever, but in correlation with a timestamp it becomes meaningful.

Another option might be to have the applciation itself generate a random UUID on launch and tag all its responses with that UUID.

@ryanjjung
Copy link
Collaborator

The containers all have IDs at the AWS API level. I wonder if that information is available internally within the container. That would probably be the most useful data for isolating log files as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants