Reputation: 7852
I have a solution where an ELB is configured to use sticky sessions. How can I actually verify that requests for a client is actually routed to one and the same instance in the auto-scaling group behind the ELB?
Upvotes: 2
Views: 1986
Reputation: 1494
ELB access logs contain both the requesting client's and the backend instance's IP.
Upvotes: 2
Reputation: 6338
For web applications, in my dev/testing environments, I usually grab the instance-id using the EC2 meta data service and spit it out in the HTML. That way I can see what instance is serving my request.
Other than that, to my knowledge there is no way to verify sticky sessions are working unless you log session ids and all requests and check through all of your logs across each of the relevant instances.
Upvotes: 2