Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Cluster Node Info inside init method  RSS feed

 
Gaurav Chikara
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All

Is there any way by which we can get the cluste node information when our application is starting up and ApplocationServlet is initialising.
If not then how we detemine that which request is going to which server node
Thanks in advance
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It depends on your container and cluster set up. In practice however, it is better to make each instance in the cluster 'dumb', so that it doesn't have any local specific information.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also note that since init is called only once, your cluster information would be out of date immediately.

What part of your system handles directing requests to servers?

Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!