[jboss-jira] [JBoss JIRA] (WFCORE-1255) ugly style allowing to start multiple servers refer to the same server-config file
Brian Stansberry (JIRA)
issues at jboss.org
Tue Dec 22 16:52:00 EST 2015
[ https://issues.jboss.org/browse/WFCORE-1255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13143843#comment-13143843 ]
Brian Stansberry commented on WFCORE-1255:
------------------------------------------
JEPS 102 (http://openjdk.java.net/jeps/102) may make it feasible to do something meaningful about this (i.e. drop a PID in a file in the data dir and fail boot if there's already such a file and the process with that pid is still alive.)
> ugly style allowing to start multiple servers refer to the same server-config file
> ----------------------------------------------------------------------------------
>
> Key: WFCORE-1255
> URL: https://issues.jboss.org/browse/WFCORE-1255
> Project: WildFly Core
> Issue Type: Enhancement
> Components: Server
> Reporter: Jay Wu
> Assignee: Jason Greene
>
> {color:red}
> WildFly allows to start multiple servers refer to the same server-config as following
> {color}
> {noformat}
> standalone.bat -server-config=standalone.xml -Djboss.node.name=node1
> {noformat}
> {noformat}
> standalone.bat -server-config=standalone.xml -Djboss.socket.binding.port-offset=100 -Djboss.node.name=node2
> {noformat}
> {noformat}
> standalone.bat -server-config=standalone.xml -Djboss.socket.binding.port-offset=200 -Djboss.node.name=node3
> {noformat}
> {color:red}
> the three nodes do not share the modification, but the later will overwrite the former in the standalone.xml.
> {color}
> {quote}
> for example
> (1) create datasource "ds4node1" to node1 which created above.
> and ds4node1 is written into standalone.xml.
> ↓
> (2) careate datasource "ds4node2" to node2
> and ds4node1 which was created in step(1) is deleted from standalone.xml,
> ds4node2 is written into standalone.xml.
> ↓
> (3) careate datasource "ds4node3" to node3
> and ds4node2 which was created in step(2) is deleted from standalone.xml,
> ds4node3 is written into standalone.xml.
> {quote}
> {color:red}
> after restarting the three nodes, the three nodes refers to standalone.xml, and share the last created datasource "ds4node3"。
> {color}
> {color:red}
> the above style may confuse users.
> if it is a style flaw, is there any plan to improve it.
> {color}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list