Karthik_67647
Feb 24, 2011Nimbostratus
Can a F5 load balance JDBC queries !!!
You would then hash the SQL query and persist on that hash.
Bear in mind that some databases use encrypted communication so you won't be able to see the SQL query in the intercepted TCP stream for databases which use encryption (MS SQL Server 2005 for example). If your database connection is unencrypted (for example mySQL is plain text by default) then you should be able to write in iRule for SQL-query-based persistence.
I doubt you will be able to find a universal iRule which does the job for you, but if you have the skills you can program one yourself for your database based upon the database protocol (*not JDBC* which is an API, not a protocol) , but MS SQL, MySQL, Oracle etc...
A sample iRule on how to persist on a string found inside a TCP stream would be the one for FIX protocol persistence:
http://devcentral.f5.com/wiki/default.aspx/iRules/FixSelectPoolBasedOnSenderCompID.html
---
Sam