[
https://issues.apache.org/jira/browse/SOLR-9714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15632276#comment-15632276
]
Jan Høydahl commented on SOLR-9714:
-----------------------------------
Solr currently occupies three (four) ports on startup:
* SOLR_PORT
* STOP_PORT=SOLR_PORT-1000 (jetty stop port)
* RMI_PORT=SOLR_PORT+10000 (jmx)
* zkRun port=SOLR_PORT+1000 (if started with -c without -z)
Today you can (not documented) customize STOP_PORT when starting Solr, but not
when stopping.
RMI_PORT and STOP_KEY is already configurable in solr.in or env.vars, while
zkRun port is not configurable.
I propose the addition of {{SOLR_STOP_PORT}} in solr.in scripts and document it.
At the same time the {{install_solr_service}} script could get options for {{-j
<jmx rmi port>}}, {{-t <stop port>}}, {{-k <stop key>}}, but perhaps instead of
inventing a install-script option for every thinkable variable, we should let
people supply a solr.in file {{-c <solr.in config file>}}?
Another related issue is that if you try to stop Solr with an incorrect
STOP_PORT or an incorrect STOP_KEY, i.e. {{solr stop -k foo -p 8983}} then the
controlled stop through stop port/key fails, but then the process is still
forcefully killed after some seconds. Should we not instead exit with message
"invalid stop port/key given". Is not the purpose of the secret stop key to
prevent people from stopping the process without the proper key? Also, the {{-k
<key>}} parameter is only documented for {{stop}}, but it exists for {{start}}
as well.
> Ability to configure STOP_PORT
> ------------------------------
>
> Key: SOLR-9714
> URL: https://issues.apache.org/jira/browse/SOLR-9714
> Project: Solr
> Issue Type: New Feature
> Security Level: Public(Default Security Level. Issues are Public)
> Components: SolrCloud
> Affects Versions: 5.5.3, 6.2.1
> Reporter: 胡晓东
> Priority: Minor
> Attachments: SOLR-9714.patch
>
>
> Our system just has port planning,we have the requirement to configure what
> to use as stop port explicitly. but now I can configure the stop_port on the
> starting script($SOLR_HOME/bin/solr), but can not use the port to stop solr
> gracefully. I think the script has a little problem.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]