Forum Discussion
Faruk_AYDIN
Jun 02, 2017Nimbostratus
Hi Guy,
Firstly create your 8 pools, give them names like those:pool pool_abc-p1.qm.com {
monitor all tcp
members {
10.10.10.10:8007 {}
10.10.10.11:8007 {}
10.10.10.12:8007 {}
}
}
pool pool_abc-p1.qm.com {
monitor all tcp
members {
10.10.10.10:8006 {}
10.10.10.11:8006 {}
10.10.10.12:8006 {}
}
}
pool pool_abc-deve.qm.com {
monitor all tcp
members {
10.10.10.10:8005 {}
10.10.10.11:8005 {}
10.10.10.12:8005 {}
}
}
pool pool_abc-syst.qm.com {
monitor all tcp
members {
10.10.10.10:8004 {}
10.10.10.11:8004 {}
10.10.10.12:8004 {}
}
}
pool pool_abc-intg.qm.com {
monitor all tcp
members {
10.10.10.10:8003 {}
10.10.10.11:8003 {}
10.10.10.12:8003 {}
}
}
pool pool_abc-acpt.qm.com {
monitor all tcp
members {
10.10.10.10:8002 {}
10.10.10.11:8002 {}
10.10.10.12:8002 {}
}
}
pool pool_abc-emer.qm.com {
monitor all tcp
members {
10.10.10.10:8001 {}
10.10.10.11:8001 {}
10.10.10.12:8001 {}
}
}
pool pool_abc.qm.com {
monitor all tcp
members {
10.10.10.10:8000 {}
10.10.10.11:8000 {}
10.10.10.12:8000 {}
}
}
then add this simple iRule to your VS:
when HTTP_REQUEST {
set pool_name "pool_[HTTP::host]"
pool $pool_name
}