d2f5ae04514eeaeadd4ad7bf5060f4008e8f5427
[lui-solr.git] / conf / solr / lui-solr.in.sh
1 # This file will be linked to /etc/default/lui-solr.in.sh
2 # Licensed to the Apache Software Foundation (ASF) under one or more
3 # contributor license agreements.  See the NOTICE file distributed with
4 # this work for additional information regarding copyright ownership.
5 # The ASF licenses this file to You under the Apache License, Version 2.0
6 # (the "License"); you may not use this file except in compliance with
7 # the License.  You may obtain a copy of the License at
8 #
9 #     http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Unless required by applicable law or agreed to in writing, software
12 # distributed under the License is distributed on an "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # See the License for the specific language governing permissions and
15 # limitations under the License.
16
17 # By default the script will use JAVA_HOME to determine which java
18 # to use, but you can set a specific path for Solr to use without
19 # affecting other Java applications on your server/workstation.
20 #SOLR_JAVA_HOME=""
21
22 # Increase Java Heap as needed to support your indexing / query needs
23 SOLR_HEAP="512m"
24
25 # Expert: If you want finer control over memory options, specify them directly
26 # Comment out SOLR_HEAP if you are using this though, that takes precedence
27 #SOLR_JAVA_MEM="-Xms512m -Xmx512m"
28
29 # Enable verbose GC logging
30 # GC_LOG_OPTS="-verbose:gc -XX:+PrintHeapAtGC -XX:+PrintGCDetails \
31 # -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -XX:+PrintTenuringDistribution -XX:+PrintGCApplicationStoppedTime"
32
33 # These GC settings have shown to work well for a number of common Solr workloads
34 GC_TUNE="-XX:NewRatio=3 \
35 -XX:SurvivorRatio=4 \
36 -XX:TargetSurvivorRatio=90 \
37 -XX:MaxTenuringThreshold=8 \
38 -XX:+UseConcMarkSweepGC \
39 -XX:+UseParNewGC \
40 -XX:ConcGCThreads=4 -XX:ParallelGCThreads=4 \
41 -XX:+CMSScavengeBeforeRemark \
42 -XX:PretenureSizeThreshold=64m \
43 -XX:+UseCMSInitiatingOccupancyOnly \
44 -XX:CMSInitiatingOccupancyFraction=50 \
45 -XX:CMSMaxAbortablePrecleanTime=6000 \
46 -XX:+CMSParallelRemarkEnabled \
47 -XX:+ParallelRefProcEnabled"
48
49 # Set the ZooKeeper connection string if using an external ZooKeeper ensemble
50 # e.g. host1:2181,host2:2181/chroot
51 # Leave empty if not using SolrCloud
52 #ZK_HOST=""
53
54 # Set the ZooKeeper client timeout (for SolrCloud mode)
55 #ZK_CLIENT_TIMEOUT="15000"
56
57 # By default the start script uses "localhost"; override the hostname here
58 # for production SolrCloud environments to control the hostname exposed to cluster state
59 #SOLR_HOST="192.168.1.1"
60
61 # By default the start script uses UTC; override the timezone if needed
62 #SOLR_TIMEZONE="UTC"
63
64 # Set to true to activate the JMX RMI connector to allow remote JMX client applications
65 # to monitor the JVM hosting Solr; set to "false" to disable that behavior
66 # (false is recommended in production environments)
67 ENABLE_REMOTE_JMX_OPTS="false"
68
69 # The script will use SOLR_PORT+10000 for the RMI_PORT or you can set it here
70 # RMI_PORT=18983
71
72 # Set the thread stack size
73 SOLR_OPTS="$SOLR_OPTS -Xss256k"
74
75 # Anything you add to the SOLR_OPTS variable will be included in the java
76 # start command line as-is, in ADDITION to other options. If you specify the
77 # -a option on start script, those options will be appended as well. Examples:
78 #SOLR_OPTS="$SOLR_OPTS -Dsolr.autoSoftCommit.maxTime=3000"
79 #SOLR_OPTS="$SOLR_OPTS -Dsolr.autoCommit.maxTime=60000"
80 #SOLR_OPTS="$SOLR_OPTS -Dsolr.clustering.enabled=true"
81
82 # Location where the bin/solr script will save PID files for running instances
83 # If not set, the script will create PID files in $SOLR_TIP/bin
84 SOLR_PID_DIR=/var/lib/masterkey/lui
85
86 # Path to a directory for Solr to store cores and their data. By default, Solr will use server/solr
87 # If solr.xml is not stored in ZooKeeper, this directory needs to contain solr.xml
88 SOLR_HOME=/etc/masterkey/lui/solr/solr-home
89
90 # Solr provides a default Log4J configuration properties file in server/resources
91 # however, you may want to customize the log settings and file appender location
92 # so you can point the script to use a different log4j.properties file
93 LOG4J_PROPS=/etc/masterkey/lui/solr/log4j.properties
94
95 # Location where Solr should write logs to; should agree with the file appender
96 # settings in server/resources/log4j.properties
97 SOLR_LOGS_DIR=/var/log/masterkey/lui
98
99 # Sets the port Solr binds to, default is 8983
100 #SOLR_PORT=8983
101
102 # Uncomment to set SSL-related system properties
103 # Be sure to update the paths to the correct keystore for your environment
104 #SOLR_SSL_KEY_STORE=etc/solr-ssl.keystore.jks
105 #SOLR_SSL_KEY_STORE_PASSWORD=secret
106 #SOLR_SSL_TRUST_STORE=etc/solr-ssl.keystore.jks
107 #SOLR_SSL_TRUST_STORE_PASSWORD=secret
108 #SOLR_SSL_NEED_CLIENT_AUTH=false
109 #SOLR_SSL_WANT_CLIENT_AUTH=false
110
111 # Uncomment if you want to override previously defined SSL values for HTTP client
112 # otherwise keep them commented and the above values will automatically be set for HTTP clients
113 #SOLR_SSL_CLIENT_KEY_STORE=
114 #SOLR_SSL_CLIENT_KEY_STORE_PASSWORD=
115 #SOLR_SSL_CLIENT_TRUST_STORE=
116 #SOLR_SSL_CLIENT_TRUST_STORE_PASSWORD=
117
118 # Settings for authentication
119 #SOLR_AUTHENTICATION_CLIENT_CONFIGURER=
120 #SOLR_AUTHENTICATION_OPTS=
121