Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ ext.mpack = 'mpack.json'
ext.repostemplate = 'src/main/template/repos/repoinfo.xml'
ext.reposinfo555 = 'custom-services/SOLR/5.5.5/repos/'
ext.reposinfo662 = 'custom-services/SOLR/6.6.2/repos/'
ext.reposinfo731 = 'custom-services/SOLR/7.3.1/repos/'

distributions {
main {
Expand All @@ -41,6 +42,12 @@ distributions {
line.replace("{REPOID}", "${repoid662}")
}
}
into(reposinfo731) {
from { repostemplate }
filter { line ->
line.replace("{REPOID}", "${repoid731}")
}
}
}
}
}
Expand Down
6 changes: 5 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@ repoid555=HDP-SOLR-2.6-100

# Solr 6.6.2 repo
# TODO a Solr repo is needed
repoid662=HDP-SOLR-2.6-100
repoid662=HDP-SOLR-3.0.0-100

# Solr 7.3.1 repo
# TODO a Solr repo is needed
repoid731=HDP-SOLR-3.0.0-100
137 changes: 137 additions & 0 deletions src/main/mpack/common-services/SOLR/7.3.1/alerts.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
{
"SOLR": {
"SOLR_SERVER": [
{
"name": "solr",
"label": "Solr Web UI",
"description": "This host-level alert is triggered if the Solr Cloud Instance is unreachable.",
"interval": 1,
"scope": "ANY",
"source": {
"type": "WEB",
"uri": {
"http": "{{solr-config-env/solr_config_port}}",
"https": "{{solr-config-env/solr_config_port}}",
"https_property": "{{solr-ssl/solr_ssl_enable}}",
"https_property_value": "true",
"kerberos_keytab": "{{solr-config-env/solr_spnego_keytab_path}}",
"kerberos_principal": "{{solr-config-env/solr_spnego_principal_name}}",
"connection_timeout": 5.0,
"default_port": 8983
},
"reporting": {
"ok": {
"text": "HTTP {0} response in {2:.3f}s"
},
"warning": {
"text": "HTTP {0} response from {1} in {2:.3f}s ({3})"
},
"critical": {
"text": "Connection failed to {1} ({3})"
}
}
}
},
{
"name": "solr_cpu_usage",
"label": "Solr CPU Utilization",
"description": "This host-level alert is triggered if CPU utilization of the Solr exceeds certain warning and critical thresholds. It checks the Solr JMX Servlet for the SystemCPULoad property. The threshold values are in percent.",
"interval": 5,
"scope": "ANY",
"source": {
"type": "SCRIPT",
"path": "SOLR/7.3.1/package/alerts/alert_solr_cpu_metrics.py",
"parameters": [
{
"name": "connection.timeout",
"value": 5.0,
"type": "NUMERIC",
"units": "seconds",
"visibility": "HIDDEN"
},
{
"name": "app.id",
"value": "solr-host-app",
"type": "STRING",
"visibility": "HIDDEN"
},
{
"name": "metric.names",
"value": "solr.jvm.gauge.os.processCpuLoad",
"type": "STRING",
"visibility": "HIDDEN"
},
{
"name": "metric.solr.cpu.warning.threshold",
"display_name": "Warning threshold",
"type": "PERCENT",
"units": "%",
"value": 75,
"description": "CPU usage is greater than 50%",
"threshold": "WARNING"
},
{
"name": "metric.solr.cpu.critical.threshold",
"display_name": "Critical threshold",
"type": "PERCENT",
"units": "%",
"value": 90,
"description": "CPU usage is greater than 75%",
"threshold": "CRITICAL"
}
]
}
},
{
"name": "solr_memory",
"label": "Solr Memory Utilization",
"description": "This host-level alert is triggered if CPU utilization of the Solr exceeds certain warning and critical thresholds. It checks the Solr JMX Servlet for the SystemCPULoad property. The threshold values are in percent.",
"interval": 5,
"scope": "ANY",
"source": {
"type": "SCRIPT",
"path": "SOLR/7.3.1/package/alerts/alert_solr_memory_metrics.py",
"parameters": [
{
"name": "connection.timeout",
"value": 5.0,
"type": "NUMERIC",
"units": "seconds",
"visibility": "HIDDEN"
},
{
"name": "app.id",
"value": "solr-host-app",
"type": "STRING",
"visibility": "HIDDEN"
},
{
"name": "metric.names",
"value": "solr.jvm.gauge.memory.total.used,solr.jvm.gauge.memory.total.max",
"type": "STRING",
"visibility": "HIDDEN"
},
{
"name": "metric.solr.memory.warning.threshold",
"display_name": "Warning threshold",
"type": "PERCENT",
"units": "%",
"value": 75,
"description": "Memory usage is greater than 50%",
"threshold": "WARNING"
},
{
"name": "metric.solr.memory.critical.threshold",
"display_name": "Critical threshold",
"type": "PERCENT",
"units": "%",
"value": 90,
"description": "Memory usage is greater than 75%",
"threshold": "CRITICAL"
}
]
}
}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>

<configuration supports_final="false" supports_adding_forbidden="true">
<property>
<name>solr_collection_sample_create</name>
<value>true</value>
<description>True to create a sample collection when Solr is deployed</description>
<display-name>Create sample collection</display-name>
<value-attributes>
<type>boolean</type>
<overridable>false</overridable>
</value-attributes>
</property>

<property>
<name>solr_collection_sample_name</name>
<value>collection1</value>
<description>Solr sample collection name. Mandatory</description>
<display-name>Sample collection name</display-name>
</property>

<property>
<name>solr_collection_sample_config_directory</name>
<value>_default</value>
<description>Solr sample collection configurations directory. Mandatory
This directory path is relative to /opt/lucidworks-hadoop/solr/server/solr/configsets.
It must contain at least solrconfig.xml and schema.xml
</description>
<display-name>Solr configuration directory</display-name>
</property>

<property>
<name>solr_collection_sample_shards</name>
<value>2</value>
<description>Number of Solr shards, for details refer to
(https://cwiki.apache.org/confluence/display/solr/Shards+and+Indexing+Data+in+SolrCloud)
</description>
<value-attributes>
<type>int</type>
</value-attributes>
<display-name>Number of shards</display-name>
</property>

<property>
<name>solr_collection_sample_replicas</name>
<value>1</value>
<description>Number of Solr replicas, for details refer to
(https://cwiki.apache.org/confluence/display/solr/NRT%2C+Replication%2C+and+Disaster+Recovery+with+SolrCloud)
</description>
<value-attributes>
<type>int</type>
</value-attributes>
<display-name>Number of replicas</display-name>
</property>
</configuration>
Loading