Forum Discussion
Chen_yongjian_1
Nimbostratus
Jun 08, 2005How to loadblance Oracle DB by use irules to differentiate read and write request?
I want to use irules to differentiate oracle read and write request.
Who can tell me how to do it?
rule:
If request include "read ABC",then use db_read_pool
else if request include "write string" then use db_write_pool
I can not know what is the right syntax.pls help me,thanks.
- Assuming that the read/write requests are over TCP, you could use something like the following
when CLIENT_ACCEPTED { TCP::collect 100 } when CLIENT_DATA { if { [TCP::payload] contains "read ABC" } { pool db_read_pool } elseif { [TCP::payload] contains "write string" } { pool db_write_pool } }
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects