Discussions
Categories
- 197.1K All Categories
- 2.5K Data
- 546 Big Data Appliance
- 1.9K Data Science
- 450.7K Databases
- 221.9K General Database Discussions
- 3.8K Java and JavaScript in the Database
- 31 Multilingual Engine
- 552 MySQL Community Space
- 479 NoSQL Database
- 7.9K Oracle Database Express Edition (XE)
- 3.1K ORDS, SODA & JSON in the Database
- 555 SQLcl
- 4K SQL Developer Data Modeler
- 187.2K SQL & PL/SQL
- 21.3K SQL Developer
- 296.3K Development
- 17 Developer Projects
- 139 Programming Languages
- 293K Development Tools
- 110 DevOps
- 3.1K QA/Testing
- 646.1K Java
- 28 Java Learning Subscription
- 37K Database Connectivity
- 158 Java Community Process
- 105 Java 25
- 22.1K Java APIs
- 138.2K Java Development Tools
- 165.3K Java EE (Java Enterprise Edition)
- 19 Java Essentials
- 162 Java 8 Questions
- 86K Java Programming
- 81 Java Puzzle Ball
- 65.1K New To Java
- 1.7K Training / Learning / Certification
- 13.8K Java HotSpot Virtual Machine
- 94.3K Java SE
- 13.8K Java Security
- 204 Java User Groups
- 24 JavaScript - Nashorn
- Programs
- 466 LiveLabs
- 39 Workshops
- 10.2K Software
- 6.7K Berkeley DB Family
- 3.5K JHeadstart
- 5.7K Other Languages
- 2.3K Chinese
- 175 Deutsche Oracle Community
- 1.1K Español
- 1.9K Japanese
- 233 Portuguese
Find server which is servicing the request

Hi,
I have 5 Prod servers which are clustered, hence the request may go to any of the Prod servers based on the load balancing setup, there are cases we found that a particular service say customer service is up and running in server 1,2, 3 but it is down in server 4 & 5. In such case the if request hits either server 4 or 5 , the request is not processed and we are getting an error stating the customer service is down in the respective server logs in this case it is in server 4 logs. Now I want to send an email to respective user via Java application when the service is down in any one of the 5 servers for which the request is send? how I can use the java code to find the request is send to which server? and how I can get the server name/IP address which is not able to service the request because the respective customer service is down.
Thanks
Answers
-
Experts, any update on this?
-
You haven't provided enough info to be able to help you.
Are you using Oracle?
By 'clustering' are you referring to Oracle's RAC?
If so are you using UCP and connection pooling along with Oracle's load balancing as discussed in the documentation?
https://docs.oracle.com/cd/B28359_01/java.111/e10788/rac.htm#CHDCDFAC
Using Run-Time Connection Load Balancing
UCP JDBC connection pools leverage the load balancing functionality provided by an Oracle RAC database. Run-time connection load balancing requires the use of an Oracle JDBC driver and an Oracle RAC database.
Are you using, or could you use, 'fast connection failover'?
https://docs.oracle.com/database/121/HABPT/config_fcf.htm#HABPT5381
10.1.1 Configuring Fast Connection Failover for JDBC Clients
Prerequisites:
I believe UCP has methods for retrieving that info.
-
Thanks, I am not using Oracle RAC, we are using round robin algorithm as a load balancer, where we have clustered weblogic app servers. Now I want to send an email to respective user via Java application when the service is down in any one of the 5 clustered servers for which the request is send? how I can use the java code to find the request is send to which server? and how I can get the server name/IP address which is not able to service the request because the respective customer service is down? Please let me know.
Thanks in advance.
-
This is not a Java question. You better search your answer in some Weblogic forum.
This WebLogic cluster, determine node from JSESSIONID cookie - Server Fault
might give you some clues.