Forum Discussion

MattB_MA_170307's avatar
MattB_MA_170307
Icon for Nimbostratus rankNimbostratus
Apr 30, 2015

MySQL Write Master iRule

I'm trying to write an iRule to send all INSERT and UPDATE MySQL queries to a single node in a cluster- is this possible? I see that the F5 can be aware of HTTP content and route based off of that:

when HTTP_REQUEST {
  if { [HTTP::uri] starts_with "/admin" } {
    node 10.1.1.200 8080
  } else {
    pool HTTP_pool
  }
}

Is there something similar for reading streams from TCP connections to non-HTTP traffic?