Hi guys, could you advise me how to setup roxen under these condition?
Host have multiple ip addresses (eg. 192.168.1.10, 192.168.1.20, etc.)
Address 192.168.1.10 has name if1.localnet, 192.168.1.20 has name if2.localnet
A roxen(4.5) instance have hostbased virtual servers (eg. srv1, srv2, ...)
On this server, I must run multiple roxen instance.
srv1 and srv2 are accessed through reverse proxy. (eg. srv1.example.com, srv2.example.com)
Under current conditions, reverse proxy directly connect to 192.168.1.10.
But I want to try load-balancing with LVS DR through VirtualIP 192.168.1.20.
So I want to configure server like this.
srv1 listens on 192.168.1.10 and 192.168.1.20, this is default site.
srv2 also listens on 192.168.1.10 and 192.168.1.20, host based.
On this host, other roxen instance listening on other ip address, so
binding '*' is not an option.
Does it work better if you restart after specifying configuring "first try"?
Is it an option to use alternative port numbers for the sites? LVS can port forward to a different ports on the real servers.
Wow, thanks. I didn't checked bts, sorry.
I applied chage in roxen.pike 1.1081 into roxen.pike of 4.5, and I restared server with "First try" configuration. It worked as I expected.
Although site/ports tab shows wrong port configuration and Globals/ports shows correct info, as described in Gubba's comment, it's rather minor problem.
My hand patched version seems working, but could it be backported to 4.5 officially? Should I send my patch?
There were several reasons why I didn't backport it to older versions of Roxen, the main reason being that there was already support for binding multiple IPs (albeit undocumented); the IP field supports a comma-separated list of IP numbers.
Although undocumented, will that comma-separated IP number list
be supported later versions? Even if that feature will be dropped in later version, I'll be happy seeing announce it dropped in "changes" list.
Anyway, I'll use comma-separated version till I upgrade the server ;)