2016-05-19 16:13:56 +02:00
|
|
|
|
|
|
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
# contributor license agreements. See the NOTICE file distributed with
|
|
|
|
# this work for additional information regarding copyright ownership.
|
|
|
|
# The ASF licenses this file to You under the Apache License, Version 2.0
|
|
|
|
# (the "License"); you may not use this file except in compliance with
|
|
|
|
# the License. You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
2017-09-06 20:13:40 +02:00
|
|
|
SOLR_INSTALL_DIR="{{ solr_data_dir }}"
|
|
|
|
|
2016-05-19 16:13:56 +02:00
|
|
|
# By default the script will use JAVA_HOME to determine which java
|
|
|
|
# to use, but you can set a specific path for Solr to use without
|
|
|
|
# affecting other Java applications on your server/workstation.
|
|
|
|
#SOLR_JAVA_HOME=""
|
|
|
|
|
2017-09-06 20:13:40 +02:00
|
|
|
# This controls the number of seconds that the solr script will wait for
|
|
|
|
# Solr to stop gracefully or Solr to start. If the graceful stop fails,
|
|
|
|
# the script will forcibly stop Solr. If the start fails, the script will
|
|
|
|
# give up waiting and display the last few lines of the logfile.
|
|
|
|
#SOLR_STOP_WAIT="180"
|
|
|
|
|
2016-05-19 16:13:56 +02:00
|
|
|
# Increase Java Heap as needed to support your indexing / query needs
|
|
|
|
SOLR_HEAP="{{ solr_heap }}"
|
|
|
|
|
|
|
|
# Expert: If you want finer control over memory options, specify them directly
|
|
|
|
# Comment out SOLR_HEAP if you are using this though, that takes precedence
|
|
|
|
#SOLR_JAVA_MEM="-Xms512m -Xmx512m"
|
|
|
|
|
2017-09-06 20:13:40 +02:00
|
|
|
# Enable verbose GC logging...
|
|
|
|
# * If this is unset, various default options will be selected depending on which JVM version is in use
|
|
|
|
# * For java8 or lower: if this is set, additional params will be added to specify the log file & rotation
|
|
|
|
# * For java9 or higher: each included opt param that starts with '-Xlog:gc', but does not include an output
|
|
|
|
# specifier, will have a 'file' output specifier (as well as formatting & rollover options) appended,
|
|
|
|
# using the effective value of the SOLR_LOGS_DIR.
|
|
|
|
#
|
|
|
|
#GC_LOG_OPTS='-Xlog:gc*' # (java9)
|
|
|
|
#GC_LOG_OPTS="-verbose:gc -XX:+PrintHeapAtGC -XX:+PrintGCDetails \
|
|
|
|
# -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+PrintTenuringDistribution -XX:+PrintGCApplicationStoppedTime"
|
|
|
|
{% if solr_set_gc_options %}
|
2016-05-19 16:13:56 +02:00
|
|
|
GC_LOG_OPTS="-verbose:gc -XX:+PrintHeapAtGC -XX:+PrintGCDetails \
|
2017-09-06 20:13:40 +02:00
|
|
|
-XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+PrintTenuringDistribution -XX:+PrintGCApplicationStoppedTime"
|
|
|
|
{% endif %}
|
2016-05-19 16:13:56 +02:00
|
|
|
|
|
|
|
# These GC settings have shown to work well for a number of common Solr workloads
|
2017-09-06 20:13:40 +02:00
|
|
|
GC_TUNE="{{ solr_gc_tune }}"
|
2016-05-19 16:13:56 +02:00
|
|
|
|
|
|
|
# Set the ZooKeeper connection string if using an external ZooKeeper ensemble
|
|
|
|
# e.g. host1:2181,host2:2181/chroot
|
|
|
|
# Leave empty if not using SolrCloud
|
2017-09-06 20:13:40 +02:00
|
|
|
{% if solr_zk_external_cluster %}
|
|
|
|
ZK_HOST="{{ solr_zk_hosts }}"
|
|
|
|
{% endif %}
|
2016-05-19 16:13:56 +02:00
|
|
|
|
|
|
|
# Set the ZooKeeper client timeout (for SolrCloud mode)
|
2017-09-06 20:13:40 +02:00
|
|
|
ZK_CLIENT_TIMEOUT="{{ solr_zk_timeout }}"
|
2016-05-19 16:13:56 +02:00
|
|
|
|
|
|
|
# By default the start script uses "localhost"; override the hostname here
|
|
|
|
# for production SolrCloud environments to control the hostname exposed to cluster state
|
|
|
|
#SOLR_HOST="192.168.1.1"
|
|
|
|
|
|
|
|
# By default the start script uses UTC; override the timezone if needed
|
|
|
|
#SOLR_TIMEZONE="UTC"
|
|
|
|
|
|
|
|
# Set to true to activate the JMX RMI connector to allow remote JMX client applications
|
|
|
|
# to monitor the JVM hosting Solr; set to "false" to disable that behavior
|
|
|
|
# (false is recommended in production environments)
|
|
|
|
ENABLE_REMOTE_JMX_OPTS="false"
|
|
|
|
|
|
|
|
# The script will use SOLR_PORT+10000 for the RMI_PORT or you can set it here
|
|
|
|
# RMI_PORT=18983
|
|
|
|
|
2017-10-16 14:54:07 +02:00
|
|
|
# SOLR additional options
|
|
|
|
SOLR_OPTS="$SOLR_OPTS {{ solr_startup_opts }}"
|
|
|
|
|
2016-05-19 16:13:56 +02:00
|
|
|
# Set the thread stack size
|
|
|
|
SOLR_OPTS="$SOLR_OPTS -Xss256k"
|
|
|
|
|
2017-09-06 20:13:40 +02:00
|
|
|
{% if not solr_zk_external_cluster %}
|
|
|
|
export SOLR_MODE={{ solr_mode }}
|
|
|
|
{% endif %}
|
2016-05-19 16:13:56 +02:00
|
|
|
|
|
|
|
# Anything you add to the SOLR_OPTS variable will be included in the java
|
|
|
|
# start command line as-is, in ADDITION to other options. If you specify the
|
|
|
|
# -a option on start script, those options will be appended as well. Examples:
|
|
|
|
#SOLR_OPTS="$SOLR_OPTS -Dsolr.autoSoftCommit.maxTime=3000"
|
|
|
|
#SOLR_OPTS="$SOLR_OPTS -Dsolr.autoCommit.maxTime=60000"
|
|
|
|
#SOLR_OPTS="$SOLR_OPTS -Dsolr.clustering.enabled=true"
|
|
|
|
|
|
|
|
# Location where the bin/solr script will save PID files for running instances
|
|
|
|
# If not set, the script will create PID files in $SOLR_TIP/bin
|
2017-09-06 20:13:40 +02:00
|
|
|
SOLR_PID_DIR={{ solr_pid_dir }}
|
2016-05-19 16:13:56 +02:00
|
|
|
|
|
|
|
# Path to a directory for Solr to store cores and their data. By default, Solr will use server/solr
|
|
|
|
# If solr.xml is not stored in ZooKeeper, this directory needs to contain solr.xml
|
2017-09-06 20:13:40 +02:00
|
|
|
SOLR_HOME={{ solr_data_dir }}
|
2016-05-19 16:13:56 +02:00
|
|
|
|
|
|
|
# Solr provides a default Log4J configuration properties file in server/resources
|
|
|
|
# however, you may want to customize the log settings and file appender location
|
|
|
|
# so you can point the script to use a different log4j.properties file
|
|
|
|
#LOG4J_PROPS=/var/solr/log4j.properties
|
|
|
|
|
2017-09-06 20:13:40 +02:00
|
|
|
# Changes the logging level. Valid values: ALL, TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF. Default is INFO
|
|
|
|
# This is an alternative to changing the rootLogger in log4j.properties
|
|
|
|
SOLR_LOG_LEVEL={{ solr_log_level }}
|
|
|
|
|
2016-05-19 16:13:56 +02:00
|
|
|
# Location where Solr should write logs to; should agree with the file appender
|
|
|
|
# settings in server/resources/log4j.properties
|
2017-09-06 20:13:40 +02:00
|
|
|
SOLR_LOGS_DIR={{ solr_log_dir }}
|
|
|
|
|
|
|
|
# Enables log rotation, cleanup, and archiving during start. Setting SOLR_LOG_PRESTART_ROTATION=false will skip start
|
|
|
|
# time rotation of logs, and the archiving of the last GC and console log files. It does not affect Log4j configuration.
|
|
|
|
# This pre-startup rotation may need to be disabled depending how much you customize the default logging setup.
|
|
|
|
#SOLR_LOG_PRESTART_ROTATION=true
|
2016-05-19 16:13:56 +02:00
|
|
|
|
|
|
|
# Sets the port Solr binds to, default is 8983
|
2017-09-06 20:13:40 +02:00
|
|
|
SOLR_PORT={{ solr_http_port }}
|
2016-05-19 16:13:56 +02:00
|
|
|
|
|
|
|
# Uncomment to set SSL-related system properties
|
|
|
|
# Be sure to update the paths to the correct keystore for your environment
|
2017-09-06 20:13:40 +02:00
|
|
|
#SOLR_SSL_KEY_STORE=/home/shalin/work/oss/shalin-lusolr/solr/server/etc/solr-ssl.keystore.jks
|
2016-05-19 16:13:56 +02:00
|
|
|
#SOLR_SSL_KEY_STORE_PASSWORD=secret
|
2017-09-06 20:13:40 +02:00
|
|
|
#SOLR_SSL_KEY_STORE_TYPE=JKS
|
|
|
|
#SOLR_SSL_TRUST_STORE=/home/shalin/work/oss/shalin-lusolr/solr/server/etc/solr-ssl.keystore.jks
|
2016-05-19 16:13:56 +02:00
|
|
|
#SOLR_SSL_TRUST_STORE_PASSWORD=secret
|
2017-09-06 20:13:40 +02:00
|
|
|
#SOLR_SSL_TRUST_STORE_TYPE=JKS
|
2016-05-19 16:13:56 +02:00
|
|
|
#SOLR_SSL_NEED_CLIENT_AUTH=false
|
|
|
|
#SOLR_SSL_WANT_CLIENT_AUTH=false
|
|
|
|
|
|
|
|
# Uncomment if you want to override previously defined SSL values for HTTP client
|
|
|
|
# otherwise keep them commented and the above values will automatically be set for HTTP clients
|
|
|
|
#SOLR_SSL_CLIENT_KEY_STORE=
|
|
|
|
#SOLR_SSL_CLIENT_KEY_STORE_PASSWORD=
|
2017-09-06 20:13:40 +02:00
|
|
|
#SOLR_SSL_CLIENT_KEY_STORE_TYPE=
|
2016-05-19 16:13:56 +02:00
|
|
|
#SOLR_SSL_CLIENT_TRUST_STORE=
|
|
|
|
#SOLR_SSL_CLIENT_TRUST_STORE_PASSWORD=
|
2017-09-06 20:13:40 +02:00
|
|
|
#SOLR_SSL_CLIENT_TRUST_STORE_TYPE=
|
2016-05-19 16:13:56 +02:00
|
|
|
|
|
|
|
# Settings for authentication
|
2017-09-06 20:13:40 +02:00
|
|
|
# Please configure only one of SOLR_AUTHENTICATION_CLIENT_CONFIGURER or SOLR_AUTH_TYPE parameters
|
|
|
|
#SOLR_AUTHENTICATION_CLIENT_CONFIGURER="org.apache.solr.client.solrj.impl.PreemptiveBasicAuthConfigurer"
|
|
|
|
#SOLR_AUTH_TYPE="basic"
|
|
|
|
#SOLR_AUTHENTICATION_OPTS="-Dbasicauth=solr:SolrRocks"
|
|
|
|
|
|
|
|
# Settings for ZK ACL
|
|
|
|
#SOLR_ZK_CREDS_AND_ACLS="-DzkACLProvider=org.apache.solr.common.cloud.VMParamsAllAndReadonlyDigestZkACLProvider \
|
|
|
|
# -DzkCredentialsProvider=org.apache.solr.common.cloud.VMParamsSingleSetCredentialsDigestZkCredentialsProvider \
|
|
|
|
# -DzkDigestUsername=admin-user -DzkDigestPassword=CHANGEME-ADMIN-PASSWORD \
|
|
|
|
# -DzkDigestReadonlyUsername=readonly-user -DzkDigestReadonlyPassword=CHANGEME-READONLY-PASSWORD"
|
|
|
|
#SOLR_OPTS="$SOLR_OPTS $SOLR_ZK_CREDS_AND_ACLS"
|
2016-05-19 16:13:56 +02:00
|
|
|
|