Bug 814431 - No easy way to spin up second instance of server on same box - port offset
Summary: No easy way to spin up second instance of server on same box - port offset
Keywords:
Status: VERIFIED
Alias: None
Product: JBoss Data Grid 6
Classification: JBoss
Component: Server
Version: 6.0.0
Hardware: All
OS: All
unspecified
medium
Target Milestone: ---
: 6.0.0
Assignee: Tristan Tarrant
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-04-19 20:47 UTC by Joel Tosi
Modified: 2019-08-31 17:47 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.