| <?xml version="1.0" encoding="UTF-8" ?> |
| <!-- |
| 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. |
| --> |
| |
| <solr> |
| <str name="allowPaths">${solr.allowPaths:}</str> |
| |
| <shardHandlerFactory name="shardHandlerFactory" class="HttpShardHandlerFactory"> |
| <str name="urlScheme">${urlScheme:}</str> |
| <int name="socketTimeout">${socketTimeout:90000}</int> |
| <int name="connTimeout">${connTimeout:15000}</int> |
| </shardHandlerFactory> |
| |
| <solrcloud> |
| <str name="host">127.0.0.1</str> |
| <int name="hostPort">${hostPort:8983}</int> |
| <str name="hostContext">${hostContext:solr}</str> |
| <int name="zkClientTimeout">${solr.zkclienttimeout:30000}</int> |
| <bool name="genericCoreNodeNames">${genericCoreNodeNames:true}</bool> |
| <int name="leaderVoteWait">${leaderVoteWait:10000}</int> |
| <int name="distribUpdateConnTimeout">${distribUpdateConnTimeout:45000}</int> |
| <int name="distribUpdateSoTimeout">${distribUpdateSoTimeout:340000}</int> |
| <int name="autoReplicaFailoverWaitAfterExpiration">${autoReplicaFailoverWaitAfterExpiration:10000}</int> |
| <int name="autoReplicaFailoverWorkLoopDelay">${autoReplicaFailoverWorkLoopDelay:10000}</int> |
| <int name="autoReplicaFailoverBadNodeExpiration">${autoReplicaFailoverBadNodeExpiration:60000}</int> |
| </solrcloud> |
| |
| <metrics> |
| <!-- disable default JMX reporter to avoid conflicts with multiple CoreContainers. --> |
| <reporter name="defaultJmx" class="org.apache.solr.metrics.reporters.SolrJmxReporter"> |
| <bool name="enabled">false</bool> |
| </reporter> |
| <reporter name="test" group="shard" class="org.apache.solr.metrics.reporters.solr.SolrShardReporter"> |
| <int name="period">5</int> |
| <str name="filter">UPDATE\./update.*requests</str> |
| <str name="filter">QUERY\./select.*requests</str> |
| </reporter> |
| <reporter name="test" group="cluster" class="org.apache.solr.metrics.reporters.solr.SolrClusterReporter"> |
| <str name="handler">/admin/metrics/collector</str> |
| <int name="period">5</int> |
| <lst name="report"> |
| <str name="group">cluster</str> |
| <str name="label">jvm</str> |
| <str name="registry">solr\.jvm</str> |
| <str name="filter">memory\.total\..*</str> |
| <str name="filter">memory\.heap\..*</str> |
| <str name="filter">os\.SystemLoadAverage</str> |
| <str name="filter">threads\.count</str> |
| </lst> |
| <lst name="report"> |
| <str name="group">cluster</str> |
| <str name="label">leader.$1</str> |
| <str name="registry">solr\.collection\.(.*)\.leader</str> |
| <str name="filter">UPDATE\./update.*</str> |
| </lst> |
| </reporter> |
| </metrics> |
| </solr> |