This is an automated email from the ASF dual-hosted git repository.
ghenzler pushed a commit to branch master
in repository
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-starter.git
The following commit(s) were added to refs/heads/master by this push:
new 2791ff2 SLING-8343 using hc.support bundle
2791ff2 is described below
commit 2791ff2442013cb8ce4fe8c7b74f35a4ad75fdd0
Author: georg.henzler <[email protected]>
AuthorDate: Thu Apr 11 01:01:18 2019 +0200
SLING-8343 using hc.support bundle
---
src/main/provisioning/healthcheck.txt | 27 ++++++++++++++++++---------
1 file changed, 18 insertions(+), 9 deletions(-)
diff --git a/src/main/provisioning/healthcheck.txt
b/src/main/provisioning/healthcheck.txt
index 6eba9b2..d70fc35 100644
--- a/src/main/provisioning/healthcheck.txt
+++ b/src/main/provisioning/healthcheck.txt
@@ -27,7 +27,8 @@
# sling health check bundles at startlevel 20
[artifacts startLevel=20]
- org.apache.sling/org.apache.sling.hc.api/1.0.2
+ org.apache.sling/org.apache.sling.hc.api/1.0.4
+ org.apache.sling/org.apache.sling.hc.support/1.0.6
[configurations]
@@ -48,27 +49,35 @@
"org.apache.sling.jcr.api.SlingRepository",
"org.apache.sling.engine.auth.Authenticator",
"org.apache.sling.api.resource.ResourceResolverFactory",
- "org.apache.sling.api.servlets.ServletResolver",
+ "org.apache.sling.api.servlets.ServletResolver",
"javax.script.ScriptEngineManager",
]
## bundles
- org.apache.felix.hc.generalchecks.BundlesStartedCheck
+ org.apache.felix.hc.generalchecks.BundlesStartedCheck
hc.tags=["bundles"]
- ## system resources
+ ## system resources
- org.apache.felix.hc.generalchecks.ThreadUsageCheck
+ org.apache.felix.hc.generalchecks.ThreadUsageCheck
hc.tags=["threads", "cpu", "system-resources"]
org.apache.felix.hc.generalchecks.CpuCheck
hc.tags=["cpu", "system-resources"]
-
- org.apache.felix.hc.generalchecks.DiskSpaceCheck
+ cpuPercentageThresholdWarn=L"95"
+
+ org.apache.felix.hc.generalchecks.DiskSpaceCheck
hc.tags=["diskspace", "system-resources"]
+ diskPaths=["."]
org.apache.felix.hc.generalchecks.MemoryCheck
hc.tags=["memory", "system-resources"]
-
-
\ No newline at end of file
+ heapUsedPercentageThresholdWarn=L"95"
+ heapUsedPercentageThresholdCritical=L"100"
+
+ ## service user for scripted health check (to make it easy to use
jcr:/path/to/script urls)
+
org.apache.sling.serviceusermapping.impl.ServiceUserMapperImpl.amended-hc-support
+ user.mapping=[
+ "org.apache.sling.hc.support\=sling-readall"
+ ]