Bug 814431

Summary: No easy way to spin up second instance of server on same box - port offset
Product: [JBoss] JBoss Data Grid 6 Reporter: Joel Tosi <jtosi>
Component: ServerAssignee: Tristan Tarrant <ttarrant>
Status: VERIFIED --- QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: dasimmon, jdg-bugs, mgencur
Target Milestone: ---   
Target Release: 6.0.0   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Joel Tosi 2012-04-19 20:47:49 UTC
Description of problem:
Right now, if you want to spin up a second instance of JDG on a box, you will have to manually modify the ports in *.xml (standalone, standalone-ha).  Please add the port-offset support to the out of the box xml

Version-Release number of selected component (if applicable):
JDG beta


How reproducible:
Try and use port offset with JDG server


Steps to Reproduce:
1. Start up JDG server with -Djboss.socket.binding.port-offset=100 for example
2. Netstat the box, ports have not changed
3.
  
Actual results:
Ports have not changed from default

Expected results:
Ports incremented by 100

Additional info:

Comment 1 Martin Gencur 2012-05-04 09:53:47 UTC
Tristan how is this solved?

Comment 2 Tristan Tarrant 2012-05-04 11:43:24 UTC
Martin, if you check the various standalone.xml files you'll notice that the port offset of the socket-binding-group references the jboss.socket.binding.port-offset property

<socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}">
:
</socket-binding-group>

Comment 3 Martin Gencur 2012-05-04 14:31:43 UTC
I see, I checked config files that were already rewritten by my templates and this detail was not there so I missed it. 

Verified with ER7.