I am creating one pool with two pool members with two different IP’s and ports, but I want to create a monitor that will check for both pool member host names? The problem is the VIP is going to be created in the future, so I can’t match the URL name just yet. Is there a way to do this, or an alternative way? The config below is as follows on 10.2 software:
not sure if i understand correctly. if you want to use different health monitor parameter, e.g. http host header, for each pool member, why won’t you assign the monitor to pool member level instead of pool one?
e.g.
[root@ve1023:Active] config b pool foo list
pool foo {
members {
200.200.200.101:80 {
monitor myhttp1
}
200.200.200.102:80 {
monitor myhttp2
}
}
}
I do not believe I can match a common http host header without a VS, or any Header field? It would be nice to use one monitor for one pool, because I have many to do like this, but I do not see how.
You can use 1 monitor for HTTP/1.1 if the host header used is the same between the two hosts. It doesn’t matter if a VS is created yet or not. That’s independent. There’s no connection between the VS and the monitor except that the status of the VS inherits the status of the default pool which is a result of the monitors results.
So if both your pool members respond with a host: header of mybestwebsiteever.com use that… or use what they think it will be when it goes live… As long as the host likes it, you’re golden.