Advertisement
Guest User

Untitled

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