File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

interview question: how do you know which server is being used in multiserver app during production?

 
Madhu Pendy
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hello,

I have been asked a question during an java developer interview.
how do you identify which server the application is using during production issue in a multi server environment?
ex: lets take Amazon has several servers, there is an production issue, to address that issue where do you check, where you start your digging about the issue.

I googled for an answer did not get any to the point answer. Please throw some light.

thanks
 
Maneesh Godbole
Saloon Keeper
Posts: 10971
11
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

I re read your question multiple times and it still does not make sense to me.
Several servers? As on application server, DB server etc? Or several nodes deployed behind some load balancer.
 
Madhu Pendy
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Maneesh,
its several nodes deployed behind some load balancer.
 
Jayesh A Lalwani
Rancher
Pie
Posts: 2756
32
Eclipse IDE Spring Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does the load balancer do?
 
Madhu Pendy
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
at very external level - load balancer is , when there is heavy flow of requests , few requests will be transferred to another server(node) to address the request.
 
Ivan Jozsef Balazs
Rancher
Posts: 972
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It seems to depend on the load balancer and its settings.

For example sticky sessions are conceivable, that is, once a HTTP session was established, it will be served by the same instance.
 
Shankar sanjay
Ranch Hand
Posts: 117
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

We had the same kind of requirement, we use to print the server details in log file itself. However we were using WAS 6.1 App Server, and WAS 6.1 provide some lib to get the server details.

In simple way, you can add/print the server details in request listener itself, using request.getLocalName() or InetAddress.getLocalHost().getHostName()
 
Winston Gutkowski
Bartender
Pie
Posts: 9484
50
Eclipse IDE Hibernate Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Madhu Pendy wrote:at very external level - load balancer is , when there is heavy flow of requests , few requests will be transferred to another server(node) to address the request.

That wasn't Jayesh's question - and I suspect he already knows what a load-balancer's function is in general terms.

My problem is that I'm still not quite sure what your question is: At the elemental level, a data packet usually contains a source IP address; but there are all sorts of mangling processes like NAT that may obscure it from you, so without some knowledge of what those are, it may be quite difficult to track a problem back to its identifying "server".

Perhaps you could give us some more information on what this interview question was all about?

Winston
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33697
316
Eclipse IDE Java VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think this is a troubleshooting question. How do you know there is a production issue? How do you know it has something to do with one of the servers/ My guess is there would be something in the logs on that server to give a clue.

It's ok to answer a question with more questions.
 
Amit Ghorpade
Bartender
Posts: 2851
10
Fedora Firefox Browser Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well if a particular node is down, the load balancer UI will point that out.
If the interviewer meant without looking at the load balancer, I would say its not worth beating around the bush in a production environment.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic