How can I figure out which server behind Elastic Load Balancer is now processing requests? Thank you.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You may have a simple shell script that runs on start-up of the instance ans writes the required metadata to a file. Read that file from your application, and have your application spit out what public-ip (or instance-id, or hostname) it’s responding from.
Otherwise, you may have your app to make
GETrequest to metadata URL for host specific information and read it out while you are processing on it.you will do something like this
and then read this file out from your app.
You can see all the metadata options from