[infinispan-issues] [JBoss JIRA] (ISPN-2159) startServer.sh should provide an option to start a node without a server endpoint
Galder Zamarreño (JIRA)
jira-events at lists.jboss.org
Thu Jul 19 07:51:07 EDT 2012
[ https://issues.jboss.org/browse/ISPN-2159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12706743#comment-12706743 ]
Galder Zamarreño commented on ISPN-2159:
----------------------------------------
There's a relatively easy workaround to achieve this is to bind to localhost and pass --worker_threads=1 (or even try 0). That would avoid external connections and would limit down the extra resources taken up.
I can see the point of providing this out of the box, but for sure, I'd avoid creating a new Main class or even a new startup script. It'd be simpler to modify org.infinispan.server.core.Main and add a command line flag such as: --no_listen or --no_bind (picking an available single lettered parameter too) to avoid creating a server altogether.
If the server was started this way, some validation would need to be added to make sure no host, port or other relevant parameters are passed. To be precise, the only parameters you'd accept would be: -h, -v, --cache_config, --cache_manager_class.
Reiterating what Manik said, thanks a lot for the contribution Jeffrey :)
> startServer.sh should provide an option to start a node without a server endpoint
> ---------------------------------------------------------------------------------
>
> Key: ISPN-2159
> URL: https://issues.jboss.org/browse/ISPN-2159
> Project: Infinispan
> Issue Type: Feature Request
> Components: Cache Server
> Affects Versions: 5.2.0.ALPHA1
> Reporter: Jeffrey Jia
> Assignee: Galder Zamarreño
> Labels: jdg, jdg6
> Fix For: 5.2.0.ALPHA2, 5.2.0.FINAL
>
> Attachments: 0001-add-node-server-entry-point.patch
>
>
> Sometimes we will start infinispan as a storage node, not binding any IP or Port for client communications (only p2p communications)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the infinispan-issues
mailing list