Forum Discussion

lizunjjg_280139's avatar
lizunjjg_280139
Icon for Nimbostratus rankNimbostratus
Oct 13, 2018

i have irules questions

i have two irules irules1 create a table:table set -subtable "jinka" $tkey $ippos 60 indef irules2 lookup the table:set tableip [ table lookup -subtable "jinka" -notouch $tkey ] if {$tableip ne "" } { log local0. "table exist $tableip " pool [LB::server pool] member $tableip

 

what is mean ?

 

  • i have two irules 1.irules1 create a table:table set -subtable "jinka" $tkey $ippos 60 indef 2.irules2 lookup the table:set tableip [ table lookup -subtable "jinka" -notouch $tkey ] if {$tableip ne "" } { log local0. "table exist $tableip " pool [LB::server pool] member $tableip }

     

  • The irule 1 write to a table shared by any connection an entry with key the variable tkey value and with value the variable ippos value...

     

    In the irule 2, it get from same table the value of key tkey. The value seems to be pool member ip because it assign this ip as pool member for this connection.

     

    It may be a persistence irule to make sure all connections with same variable value of tkey are forwarded to same pool member