-
1. Re: Running more than 10 AS7 instances on a machine - best practices?
nickarls Apr 24, 2013 6:12 AM (in response to pathduck)Well you don't have to use port-offset. Just hardcode the port values to non-overlapping values.
-
2. Re: Running more than 10 AS7 instances on a machine - best practices?
dlofthouse Apr 24, 2013 6:14 AM (in response to pathduck)It is actually expected that management interfaces would not be as publically accessible as the ports exposed by JBoss Web. However to be using the https ports you must be changing your configuration to begin with so just modify the port number as you have identified.
Alternatively assign additional IP addresses to the machine and bind a group of 10 to each IP address.
-
3. Re: Running more than 10 AS7 instances on a machine - best practices?
pathduck Apr 24, 2013 6:37 AM (in response to dlofthouse)Thanks for the quick replies guys
We are binding both the public and management interfaces to the same (0.0.0.0) and although it might not be a good idea from a security perspective, we are behind firewalls anyway and only expose the 'https' port through them. True, if 'management-https' was bound to only localhost it would not be a problem I guess. And we don't actually use the Management UI anyway, we disable it in standalone.xml.
But I think for instance RHQ requires the 'management-native' port to be accessible from not only localhost, from the agent, at least I think so?
Stian
-
4. Re: Running more than 10 AS7 instances on a machine - best practices?
pathduck Apr 24, 2013 10:29 AM (in response to nickarls)Nicklas Karlsson wrote:
Well you don't have to use port-offset. Just hardcode the port values to non-overlapping values.
Well, I know this. For instance I could set the ports like 10001, 10002, 10003 and so on. Then I could have an offset of 10 and still never run out. However, this ends up with a lot of "strange" ports for http/s and I've tried to stick to the defaults.
For now I've changed:
jboss.management.https.port: 9444
osgi-http: 8091
So that I can continue using 100 offset for the servers. As long as the last two are different 100 works for over 10 servers.
Of course, we are not planning to run "hundreds" of instances on one server but certainly more than 10 I think it should scale to.
But I guess it is way too late to have this changed by default
-
5. Re: Running more than 10 AS7 instances on a machine - best practices?
nickarls Apr 25, 2013 1:40 AM (in response to pathduck)One option is to have "strange" numbers for the non-visible ports and "non-strange" numbers for the public ones ;-)
-
6. Re: Running more than 10 AS7 instances on a machine - best practices?
pathduck Apr 25, 2013 5:39 AM (in response to nickarls)If I make a Jira Enhancement Request, do you think they will consider changing it permanently for the Jboss 8 release?