From 65d2f30de265e1f723183000109c3d9f10ad6710 Mon Sep 17 00:00:00 2001
From: Brian Rosenberg
Date: Tue, 23 Jan 2024 12:34:27 -0500
Subject: [PATCH 1/2] Add Health Check Guide
---
docs/docs/Health-Check-Guide.md | 61 ++++
docs/mkdocs.yml | 1 +
docs/site/404.html | 4 +
docs/site/Acknowledgements/index.html | 4 +
docs/site/Admin-Guide/index.html | 4 +
docs/site/CPP-Batch-Component-API/index.html | 4 +
.../CPP-Streaming-Component-API/index.html | 4 +
docs/site/Component-API-Overview/index.html | 4 +
.../Component-Descriptor-Reference/index.html | 4 +
docs/site/Contributor-Guide/index.html | 4 +
docs/site/Derivative-Media-Guide/index.html | 4 +
.../Development-Environment-Guide/index.html | 4 +
docs/site/Feed-Forward-Guide/index.html | 4 +
docs/site/GPU-Support-Guide/index.html | 4 +
docs/site/Health-Check-Guide/index.html | 341 ++++++++++++++++++
docs/site/Install-Guide/index.html | 4 +
docs/site/Java-Batch-Component-API/index.html | 4 +
docs/site/License-And-Distribution/index.html | 4 +
docs/site/Markup-Guide/index.html | 4 +
docs/site/Media-Segmentation-Guide/index.html | 4 +
docs/site/Node-Guide/index.html | 4 +
docs/site/Object-Storage-Guide/index.html | 4 +
docs/site/OpenID-Connect-Guide/index.html | 4 +
.../Python-Batch-Component-API/index.html | 4 +
docs/site/REST-API/index.html | 8 +-
docs/site/Release-Notes/index.html | 4 +
docs/site/TiesDb-Guide/index.html | 4 +
docs/site/Trigger-Guide/index.html | 8 +-
docs/site/User-Guide/index.html | 4 +
.../Workflow-Manager-Architecture/index.html | 4 +
docs/site/index.html | 6 +-
docs/site/search.html | 4 +
docs/site/search/search_index.json | 20 +
docs/site/sitemap.xml | 59 +--
34 files changed, 576 insertions(+), 32 deletions(-)
create mode 100644 docs/docs/Health-Check-Guide.md
create mode 100644 docs/site/Health-Check-Guide/index.html
diff --git a/docs/docs/Health-Check-Guide.md b/docs/docs/Health-Check-Guide.md
new file mode 100644
index 000000000000..e56ed5444320
--- /dev/null
+++ b/docs/docs/Health-Check-Guide.md
@@ -0,0 +1,61 @@
+**NOTICE:** This software (or technical data) was produced for the U.S. Government under contract,
+and is subject to the Rights in Data-General Clause 52.227-14, Alt. IV (DEC 2007). Copyright 2023
+The MITRE Corporation. All Rights Reserved.
+
+
+# Health Check Overview
+
+The C++ and Python component executors can be configured to run health checks on components prior
+to running jobs. Health checks are configured using environment variables and an INI file.
+
+When the component executor receives a job from ActiveMQ, it checks if health checks are enabled
+and if more than the specified timeout has passed since the last health check. If both conditions
+are true, the component executor will run a health check job before the actual job. Health checks
+only run after a job from ActiveMQ is received. If the timeout period expires, but no job is
+received or a job is already running, the health check will not run until the next job is received.
+
+If the health check job completes successfully, then component executor runs the job received from
+ActiveMQ. If the health check fails, the job will be returned to ActiveMQ. If the maximum number of
+consecutive health failures has been met, the component executor will exit with exit code 39.
+Otherwise, the component executor will wait the timeout period before until attempting to receive
+another job from ActiveMQ.
+
+
+# Environment Variables
+
+- `HEALTH_CHECK`: When set to "ENABLED", the component executor will run health checks.
+- `HEALTH_CHECK_TIMEOUT`: When set to a positive integer, specifies the minimum number of seconds
+ between health checks. When absent or set to 0, a health check will run before every job.
+- `HEALTH_CHECK_RETRY_MAX_ATTEMPTS`: When set to a positive integer, specifies the number of
+ consecutive health check failures that will cause the component service to exit. When absent or
+ set to 0, the component service will never exit because of a failed health check.
+
+
+# The INI File
+
+When health checks are enabled, the component executor will look for an INI file at
+`$MPF_HOME/plugins//health/health-check.ini`. Below is an example of the expected
+INI file.
+
+```ini
+media=$MPF_HOME/plugins/OcvFaceDetection/health/meds_faces_image.png
+min_num_tracks=2
+media_type=IMAGE
+
+[job_properties]
+JOB PROP1=VALUE1
+JOB PROP2=VALUE2
+
+[media_properties]
+MEDIA PROP=MEDIA VALUE
+```
+
+The supported keys are:
+
+- `media`: (Required) Path to the media file that will be used in the health check.
+- `min_num_tracks`: (Required) The minimum number of tracks the component must find for the health
+ check to pass.
+- `media_type`: (Required) The type of media referenced in the `media` key. It must be one of
+ "IMAGE", "VIDEO", "AUDIO", or "GENERIC".
+- `job_properties`: (Optional) Job properties that will set on the health check job.
+- `media_properties`: (Optional) Media properties that will set on the health check job.
diff --git a/docs/mkdocs.yml b/docs/mkdocs.yml
index 5bf9f730cd4c..7db02c9019a1 100644
--- a/docs/mkdocs.yml
+++ b/docs/mkdocs.yml
@@ -27,6 +27,7 @@ pages:
- Markup Guide: Markup-Guide.md
- TiesDb Guide: TiesDb-Guide.md
- Trigger Guide: Trigger-Guide.md
+ - Health Check Guide: Health-Check-Guide.md
- REST API: REST-API.md
- Component Development:
- Component API Overview: Component-API-Overview.md
diff --git a/docs/site/404.html b/docs/site/404.html
index de56de4102b9..300d5b9a3d65 100644
--- a/docs/site/404.html
+++ b/docs/site/404.html
@@ -114,6 +114,10 @@
NOTICE: This software (or technical data) was produced for the U.S. Government under contract,
+and is subject to the Rights in Data-General Clause 52.227-14, Alt. IV (DEC 2007). Copyright 2023
+The MITRE Corporation. All Rights Reserved.
+
Health Check Overview
+
The C++ and Python component executors can be configured to run health checks on components prior
+to running jobs. Health checks are configured using environment variables and an INI file.
+
When the component executor receives a job from ActiveMQ, it checks if health checks are enabled
+and if more than the specified timeout has passed since the last health check. If both conditions
+are true, the component executor will run a health check job before the actual job. Health checks
+only run after a job from ActiveMQ is received. If the timeout period expires, but no job is
+received or a job is already running, the health check will not run until the next job is received.
+
If the health check job completes successfully, then component executor runs the job received from
+ActiveMQ. If the health check fails, the job will be returned to ActiveMQ. If the maximum number of
+consecutive health failures has been met, the component executor will exit with exit code 39.
+Otherwise, the component executor will wait the timeout period before until attempting to receive
+another job from ActiveMQ.
+
Environment Variables
+
+
HEALTH_CHECK: When set to "ENABLED", the component executor will run health checks.
+
HEALTH_CHECK_TIMEOUT: When set to a positive integer, specifies the minimum number of seconds
+ between health checks. When absent or set to 0, a health check will run before every job.
+
HEALTH_CHECK_RETRY_MAX_ATTEMPTS: When set to a positive integer, specifies the number of
+ consecutive health check failures that will cause the component service to exit. When absent or
+ set to 0, the component service will never exit because of a failed health check.
+
+
The INI File
+
When health checks are enabled, the component executor will look for an INI file at
+$MPF_HOME/plugins/<component-name>/health/health-check.ini. Below is an example of the expected
+INI file.
diff --git a/docs/site/search/search_index.json b/docs/site/search/search_index.json
index d53ee7c175b1..c5e1846b9de4 100644
--- a/docs/site/search/search_index.json
+++ b/docs/site/search/search_index.json
@@ -565,6 +565,26 @@
"text": "Many times job properties are defined using JSON and track properties appear in the JSON output\nobject. JSON also uses backslash as its escape character. Since the TRIGGER property and JSON both\nuse backslash as the escape character, when specifying the TRIGGER property in JSON, the string\nmust be doubly escaped. If the job request contains this JSON fragment: { \"algorithmProperties\": { \"DNNCV\": {\"TRIGGER\": \"CLASS=dog;cat\"} } } it will match either \"dog\" or \"cat\", but not \"dog;cat\". This JSON fragment: { \"algorithmProperties\": { \"DNNCV\": {\"TRIGGER\": \"CLASS=dog\\\\;cat\"} } } would only match \"dog;cat\". This JSON fragment: { \"algorithmProperties\": { \"DNNCV\": {\"TRIGGER\": \"CLASS=dog\\\\\\\\cat\"} } } would only match \"dog\\cat\". The track property in the JSON output object would appear as: { \"trackProperties\": { \"CLASSIFICATION\": \"dog\\\\cat\" } }",
"title": "JSON escaping"
},
+ {
+ "location": "/Health-Check-Guide/index.html",
+ "text": "NOTICE:\n This software (or technical data) was produced for the U.S. Government under contract,\nand is subject to the Rights in Data-General Clause 52.227-14, Alt. IV (DEC 2007). Copyright 2023\nThe MITRE Corporation. All Rights Reserved.\n\n\nHealth Check Overview\n\n\nThe C++ and Python component executors can be configured to run health checks on components prior\nto running jobs. Health checks are configured using environment variables and an INI file.\n\n\nWhen the component executor receives a job from ActiveMQ, it checks if health checks are enabled\nand if more than the specified timeout has passed since the last health check. If both conditions\nare true, the component executor will run a health check job before the actual job. Health checks\nonly run after a job from ActiveMQ is received. If the timeout period expires, but no job is\nreceived or a job is already running, the health check will not run until the next job is received.\n\n\nIf the health check job completes successfully, then component executor runs the job received from\nActiveMQ. If the health check fails, the job will be returned to ActiveMQ. If the maximum number of\nconsecutive health failures has been met, the component executor will exit with exit code 39.\nOtherwise, the component executor will wait the timeout period before until attempting to receive\nanother job from ActiveMQ.\n\n\nEnvironment Variables\n\n\n\n\nHEALTH_CHECK\n: When set to \"ENABLED\", the component executor will run health checks.\n\n\nHEALTH_CHECK_TIMEOUT\n: When set to a positive integer, specifies the minimum number of seconds\n between health checks. When absent or set to 0, a health check will run before every job.\n\n\nHEALTH_CHECK_RETRY_MAX_ATTEMPTS\n: When set to a positive integer, specifies the number of\n consecutive health check failures that will cause the component service to exit. When absent or\n set to 0, the component service will never exit because of a failed health check.\n\n\n\n\nThe INI File\n\n\nWhen health checks are enabled, the component executor will look for an INI file at\n\n$MPF_HOME/plugins//health/health-check.ini\n. Below is an example of the expected\nINI file.\n\n\nmedia=$MPF_HOME/plugins/OcvFaceDetection/health/meds_faces_image.png\nmin_num_tracks=2\nmedia_type=IMAGE\n\n[job_properties]\nJOB PROP1=VALUE1\nJOB PROP2=VALUE2\n\n[media_properties]\nMEDIA PROP=MEDIA VALUE\n\n\n\nThe supported keys are:\n\n\n\n\nmedia\n: (Required) Path to the media file that will be used in the health check.\n\n\nmin_num_tracks\n: (Required) The minimum number of tracks the component must find for the health\n check to pass.\n\n\nmedia_type\n: (Required) The type of media referenced in the \nmedia\n key. It must be one of\n \"IMAGE\", \"VIDEO\", \"AUDIO\", or \"GENERIC\".\n\n\njob_properties\n: (Optional) Job properties that will set on the health check job.\n\n\nmedia_properties\n: (Optional) Media properties that will set on the health check job.",
+ "title": "Health Check Guide"
+ },
+ {
+ "location": "/Health-Check-Guide/index.html#health-check-overview",
+ "text": "The C++ and Python component executors can be configured to run health checks on components prior\nto running jobs. Health checks are configured using environment variables and an INI file. When the component executor receives a job from ActiveMQ, it checks if health checks are enabled\nand if more than the specified timeout has passed since the last health check. If both conditions\nare true, the component executor will run a health check job before the actual job. Health checks\nonly run after a job from ActiveMQ is received. If the timeout period expires, but no job is\nreceived or a job is already running, the health check will not run until the next job is received. If the health check job completes successfully, then component executor runs the job received from\nActiveMQ. If the health check fails, the job will be returned to ActiveMQ. If the maximum number of\nconsecutive health failures has been met, the component executor will exit with exit code 39.\nOtherwise, the component executor will wait the timeout period before until attempting to receive\nanother job from ActiveMQ.",
+ "title": "Health Check Overview"
+ },
+ {
+ "location": "/Health-Check-Guide/index.html#environment-variables",
+ "text": "HEALTH_CHECK : When set to \"ENABLED\", the component executor will run health checks. HEALTH_CHECK_TIMEOUT : When set to a positive integer, specifies the minimum number of seconds\n between health checks. When absent or set to 0, a health check will run before every job. HEALTH_CHECK_RETRY_MAX_ATTEMPTS : When set to a positive integer, specifies the number of\n consecutive health check failures that will cause the component service to exit. When absent or\n set to 0, the component service will never exit because of a failed health check.",
+ "title": "Environment Variables"
+ },
+ {
+ "location": "/Health-Check-Guide/index.html#the-ini-file",
+ "text": "When health checks are enabled, the component executor will look for an INI file at $MPF_HOME/plugins//health/health-check.ini . Below is an example of the expected\nINI file. media=$MPF_HOME/plugins/OcvFaceDetection/health/meds_faces_image.png\nmin_num_tracks=2\nmedia_type=IMAGE\n\n[job_properties]\nJOB PROP1=VALUE1\nJOB PROP2=VALUE2\n\n[media_properties]\nMEDIA PROP=MEDIA VALUE The supported keys are: media : (Required) Path to the media file that will be used in the health check. min_num_tracks : (Required) The minimum number of tracks the component must find for the health\n check to pass. media_type : (Required) The type of media referenced in the media key. It must be one of\n \"IMAGE\", \"VIDEO\", \"AUDIO\", or \"GENERIC\". job_properties : (Optional) Job properties that will set on the health check job. media_properties : (Optional) Media properties that will set on the health check job.",
+ "title": "The INI File"
+ },
{
"location": "/REST-API/index.html",
"text": "The OpenMPF REST API is provided by Swagger and is available within the OpenMPF Workflow Manager web application. Swagger enables users to test the endpoints using the running instance of OpenMPF.\n\n\nClick \nhere\n for a generated version of the content.\n\n\nNote that in a Docker deployment the \n/rest/nodes\n and \n/rest/streaming\n endpoints are disabled.",
diff --git a/docs/site/sitemap.xml b/docs/site/sitemap.xml
index e7282c1af712..344d55b553ab 100644
--- a/docs/site/sitemap.xml
+++ b/docs/site/sitemap.xml
@@ -2,137 +2,142 @@
/index.html
- 2024-01-17
+ 2024-01-23daily/Release-Notes/index.html
- 2024-01-17
+ 2024-01-23daily/License-And-Distribution/index.html
- 2024-01-17
+ 2024-01-23daily/Acknowledgements/index.html
- 2024-01-17
+ 2024-01-23daily/Install-Guide/index.html
- 2024-01-17
+ 2024-01-23daily/Admin-Guide/index.html
- 2024-01-17
+ 2024-01-23daily/User-Guide/index.html
- 2024-01-17
+ 2024-01-23daily/OpenID-Connect-Guide/index.html
- 2024-01-17
+ 2024-01-23daily/Media-Segmentation-Guide/index.html
- 2024-01-17
+ 2024-01-23daily/Feed-Forward-Guide/index.html
- 2024-01-17
+ 2024-01-23daily/Derivative-Media-Guide/index.html
- 2024-01-17
+ 2024-01-23daily/Object-Storage-Guide/index.html
- 2024-01-17
+ 2024-01-23daily/Markup-Guide/index.html
- 2024-01-17
+ 2024-01-23daily/TiesDb-Guide/index.html
- 2024-01-17
+ 2024-01-23daily/Trigger-Guide/index.html
- 2024-01-17
+ 2024-01-23
+ daily
+
+
+ /Health-Check-Guide/index.html
+ 2024-01-23daily/REST-API/index.html
- 2024-01-17
+ 2024-01-23daily/Component-API-Overview/index.html
- 2024-01-17
+ 2024-01-23daily/Component-Descriptor-Reference/index.html
- 2024-01-17
+ 2024-01-23daily/CPP-Batch-Component-API/index.html
- 2024-01-17
+ 2024-01-23daily/Python-Batch-Component-API/index.html
- 2024-01-17
+ 2024-01-23daily/Java-Batch-Component-API/index.html
- 2024-01-17
+ 2024-01-23daily/GPU-Support-Guide/index.html
- 2024-01-17
+ 2024-01-23daily/Contributor-Guide/index.html
- 2024-01-17
+ 2024-01-23daily/Development-Environment-Guide/index.html
- 2024-01-17
+ 2024-01-23daily/Node-Guide/index.html
- 2024-01-17
+ 2024-01-23daily/Workflow-Manager-Architecture/index.html
- 2024-01-17
+ 2024-01-23daily/CPP-Streaming-Component-API/index.html
- 2024-01-17
+ 2024-01-23daily
\ No newline at end of file
From 42086a46711626f9c2b8d82a5db49fe60225cebb Mon Sep 17 00:00:00 2001
From: Brian Rosenberg
Date: Mon, 29 Jan 2024 07:36:50 -0500
Subject: [PATCH 2/2] Address PR issues
---
docs/docs/Health-Check-Guide.md | 15 ++++---
docs/site/Health-Check-Guide/index.html | 15 ++++---
docs/site/index.html | 2 +-
docs/site/search/search_index.json | 4 +-
docs/site/sitemap.xml | 56 ++++++++++++-------------
5 files changed, 49 insertions(+), 43 deletions(-)
diff --git a/docs/docs/Health-Check-Guide.md b/docs/docs/Health-Check-Guide.md
index e56ed5444320..61c01a0ba8a4 100644
--- a/docs/docs/Health-Check-Guide.md
+++ b/docs/docs/Health-Check-Guide.md
@@ -6,7 +6,9 @@ The MITRE Corporation. All Rights Reserved.
# Health Check Overview
The C++ and Python component executors can be configured to run health checks on components prior
-to running jobs. Health checks are configured using environment variables and an INI file.
+to running jobs. Health checks are configured using environment variables and an INI file. All of
+the log lines pertaining to the health check will be prefixed with `[Health check] -` instead
+of `[Job #: media] -`.
When the component executor receives a job from ActiveMQ, it checks if health checks are enabled
and if more than the specified timeout has passed since the last health check. If both conditions
@@ -14,11 +16,12 @@ are true, the component executor will run a health check job before the actual j
only run after a job from ActiveMQ is received. If the timeout period expires, but no job is
received or a job is already running, the health check will not run until the next job is received.
-If the health check job completes successfully, then component executor runs the job received from
-ActiveMQ. If the health check fails, the job will be returned to ActiveMQ. If the maximum number of
-consecutive health failures has been met, the component executor will exit with exit code 39.
-Otherwise, the component executor will wait the timeout period before until attempting to receive
-another job from ActiveMQ.
+If the health check job completes successfully, then the component executor runs the job received
+from ActiveMQ. If the health check fails, the job will be returned to ActiveMQ. If the maximum
+number of consecutive health check failures has not been met, the component executor will wait the
+timeout period before until attempting to receive another job from ActiveMQ. If the maximum number
+of consecutive health check failures has been met, the component executor will exit with exit
+code 39. If the component is running in a Docker container, the container will exit.
# Environment Variables
diff --git a/docs/site/Health-Check-Guide/index.html b/docs/site/Health-Check-Guide/index.html
index 1f15a5909f80..54897762ec17 100644
--- a/docs/site/Health-Check-Guide/index.html
+++ b/docs/site/Health-Check-Guide/index.html
@@ -241,17 +241,20 @@
The MITRE Corporation. All Rights Reserved.
Health Check Overview
The C++ and Python component executors can be configured to run health checks on components prior
-to running jobs. Health checks are configured using environment variables and an INI file.
+to running jobs. Health checks are configured using environment variables and an INI file. All of
+the log lines pertaining to the health check will be prefixed with [Health check] - instead
+of [Job #: media] -.
When the component executor receives a job from ActiveMQ, it checks if health checks are enabled
and if more than the specified timeout has passed since the last health check. If both conditions
are true, the component executor will run a health check job before the actual job. Health checks
only run after a job from ActiveMQ is received. If the timeout period expires, but no job is
received or a job is already running, the health check will not run until the next job is received.
-
If the health check job completes successfully, then component executor runs the job received from
-ActiveMQ. If the health check fails, the job will be returned to ActiveMQ. If the maximum number of
-consecutive health failures has been met, the component executor will exit with exit code 39.
-Otherwise, the component executor will wait the timeout period before until attempting to receive
-another job from ActiveMQ.
+
If the health check job completes successfully, then the component executor runs the job received
+from ActiveMQ. If the health check fails, the job will be returned to ActiveMQ. If the maximum
+number of consecutive health check failures has not been met, the component executor will wait the
+timeout period before until attempting to receive another job from ActiveMQ. If the maximum number
+of consecutive health check failures has been met, the component executor will exit with exit
+code 39. If the component is running in a Docker container, the container will exit.
Environment Variables
HEALTH_CHECK: When set to "ENABLED", the component executor will run health checks.
diff --git a/docs/site/search/search_index.json b/docs/site/search/search_index.json
index c5e1846b9de4..717ab346bfa9 100644
--- a/docs/site/search/search_index.json
+++ b/docs/site/search/search_index.json
@@ -567,12 +567,12 @@
},
{
"location": "/Health-Check-Guide/index.html",
- "text": "NOTICE:\n This software (or technical data) was produced for the U.S. Government under contract,\nand is subject to the Rights in Data-General Clause 52.227-14, Alt. IV (DEC 2007). Copyright 2023\nThe MITRE Corporation. All Rights Reserved.\n\n\nHealth Check Overview\n\n\nThe C++ and Python component executors can be configured to run health checks on components prior\nto running jobs. Health checks are configured using environment variables and an INI file.\n\n\nWhen the component executor receives a job from ActiveMQ, it checks if health checks are enabled\nand if more than the specified timeout has passed since the last health check. If both conditions\nare true, the component executor will run a health check job before the actual job. Health checks\nonly run after a job from ActiveMQ is received. If the timeout period expires, but no job is\nreceived or a job is already running, the health check will not run until the next job is received.\n\n\nIf the health check job completes successfully, then component executor runs the job received from\nActiveMQ. If the health check fails, the job will be returned to ActiveMQ. If the maximum number of\nconsecutive health failures has been met, the component executor will exit with exit code 39.\nOtherwise, the component executor will wait the timeout period before until attempting to receive\nanother job from ActiveMQ.\n\n\nEnvironment Variables\n\n\n\n\nHEALTH_CHECK\n: When set to \"ENABLED\", the component executor will run health checks.\n\n\nHEALTH_CHECK_TIMEOUT\n: When set to a positive integer, specifies the minimum number of seconds\n between health checks. When absent or set to 0, a health check will run before every job.\n\n\nHEALTH_CHECK_RETRY_MAX_ATTEMPTS\n: When set to a positive integer, specifies the number of\n consecutive health check failures that will cause the component service to exit. When absent or\n set to 0, the component service will never exit because of a failed health check.\n\n\n\n\nThe INI File\n\n\nWhen health checks are enabled, the component executor will look for an INI file at\n\n$MPF_HOME/plugins//health/health-check.ini\n. Below is an example of the expected\nINI file.\n\n\nmedia=$MPF_HOME/plugins/OcvFaceDetection/health/meds_faces_image.png\nmin_num_tracks=2\nmedia_type=IMAGE\n\n[job_properties]\nJOB PROP1=VALUE1\nJOB PROP2=VALUE2\n\n[media_properties]\nMEDIA PROP=MEDIA VALUE\n\n\n\nThe supported keys are:\n\n\n\n\nmedia\n: (Required) Path to the media file that will be used in the health check.\n\n\nmin_num_tracks\n: (Required) The minimum number of tracks the component must find for the health\n check to pass.\n\n\nmedia_type\n: (Required) The type of media referenced in the \nmedia\n key. It must be one of\n \"IMAGE\", \"VIDEO\", \"AUDIO\", or \"GENERIC\".\n\n\njob_properties\n: (Optional) Job properties that will set on the health check job.\n\n\nmedia_properties\n: (Optional) Media properties that will set on the health check job.",
+ "text": "NOTICE:\n This software (or technical data) was produced for the U.S. Government under contract,\nand is subject to the Rights in Data-General Clause 52.227-14, Alt. IV (DEC 2007). Copyright 2023\nThe MITRE Corporation. All Rights Reserved.\n\n\nHealth Check Overview\n\n\nThe C++ and Python component executors can be configured to run health checks on components prior\nto running jobs. Health checks are configured using environment variables and an INI file. All of\nthe log lines pertaining to the health check will be prefixed with \n[Health check] -\n instead\nof \n[Job #: media] -\n.\n\n\nWhen the component executor receives a job from ActiveMQ, it checks if health checks are enabled\nand if more than the specified timeout has passed since the last health check. If both conditions\nare true, the component executor will run a health check job before the actual job. Health checks\nonly run after a job from ActiveMQ is received. If the timeout period expires, but no job is\nreceived or a job is already running, the health check will not run until the next job is received.\n\n\nIf the health check job completes successfully, then the component executor runs the job received\nfrom ActiveMQ. If the health check fails, the job will be returned to ActiveMQ. If the maximum\nnumber of consecutive health check failures has not been met, the component executor will wait the\ntimeout period before until attempting to receive another job from ActiveMQ. If the maximum number\nof consecutive health check failures has been met, the component executor will exit with exit\ncode 39. If the component is running in a Docker container, the container will exit.\n\n\nEnvironment Variables\n\n\n\n\nHEALTH_CHECK\n: When set to \"ENABLED\", the component executor will run health checks.\n\n\nHEALTH_CHECK_TIMEOUT\n: When set to a positive integer, specifies the minimum number of seconds\n between health checks. When absent or set to 0, a health check will run before every job.\n\n\nHEALTH_CHECK_RETRY_MAX_ATTEMPTS\n: When set to a positive integer, specifies the number of\n consecutive health check failures that will cause the component service to exit. When absent or\n set to 0, the component service will never exit because of a failed health check.\n\n\n\n\nThe INI File\n\n\nWhen health checks are enabled, the component executor will look for an INI file at\n\n$MPF_HOME/plugins//health/health-check.ini\n. Below is an example of the expected\nINI file.\n\n\nmedia=$MPF_HOME/plugins/OcvFaceDetection/health/meds_faces_image.png\nmin_num_tracks=2\nmedia_type=IMAGE\n\n[job_properties]\nJOB PROP1=VALUE1\nJOB PROP2=VALUE2\n\n[media_properties]\nMEDIA PROP=MEDIA VALUE\n\n\n\nThe supported keys are:\n\n\n\n\nmedia\n: (Required) Path to the media file that will be used in the health check.\n\n\nmin_num_tracks\n: (Required) The minimum number of tracks the component must find for the health\n check to pass.\n\n\nmedia_type\n: (Required) The type of media referenced in the \nmedia\n key. It must be one of\n \"IMAGE\", \"VIDEO\", \"AUDIO\", or \"GENERIC\".\n\n\njob_properties\n: (Optional) Job properties that will set on the health check job.\n\n\nmedia_properties\n: (Optional) Media properties that will set on the health check job.",
"title": "Health Check Guide"
},
{
"location": "/Health-Check-Guide/index.html#health-check-overview",
- "text": "The C++ and Python component executors can be configured to run health checks on components prior\nto running jobs. Health checks are configured using environment variables and an INI file. When the component executor receives a job from ActiveMQ, it checks if health checks are enabled\nand if more than the specified timeout has passed since the last health check. If both conditions\nare true, the component executor will run a health check job before the actual job. Health checks\nonly run after a job from ActiveMQ is received. If the timeout period expires, but no job is\nreceived or a job is already running, the health check will not run until the next job is received. If the health check job completes successfully, then component executor runs the job received from\nActiveMQ. If the health check fails, the job will be returned to ActiveMQ. If the maximum number of\nconsecutive health failures has been met, the component executor will exit with exit code 39.\nOtherwise, the component executor will wait the timeout period before until attempting to receive\nanother job from ActiveMQ.",
+ "text": "The C++ and Python component executors can be configured to run health checks on components prior\nto running jobs. Health checks are configured using environment variables and an INI file. All of\nthe log lines pertaining to the health check will be prefixed with [Health check] - instead\nof [Job #: media] - . When the component executor receives a job from ActiveMQ, it checks if health checks are enabled\nand if more than the specified timeout has passed since the last health check. If both conditions\nare true, the component executor will run a health check job before the actual job. Health checks\nonly run after a job from ActiveMQ is received. If the timeout period expires, but no job is\nreceived or a job is already running, the health check will not run until the next job is received. If the health check job completes successfully, then the component executor runs the job received\nfrom ActiveMQ. If the health check fails, the job will be returned to ActiveMQ. If the maximum\nnumber of consecutive health check failures has not been met, the component executor will wait the\ntimeout period before until attempting to receive another job from ActiveMQ. If the maximum number\nof consecutive health check failures has been met, the component executor will exit with exit\ncode 39. If the component is running in a Docker container, the container will exit.",
"title": "Health Check Overview"
},
{
diff --git a/docs/site/sitemap.xml b/docs/site/sitemap.xml
index 344d55b553ab..312da03b9206 100644
--- a/docs/site/sitemap.xml
+++ b/docs/site/sitemap.xml
@@ -2,142 +2,142 @@
/index.html
- 2024-01-23
+ 2024-01-29daily/Release-Notes/index.html
- 2024-01-23
+ 2024-01-29daily/License-And-Distribution/index.html
- 2024-01-23
+ 2024-01-29daily/Acknowledgements/index.html
- 2024-01-23
+ 2024-01-29daily/Install-Guide/index.html
- 2024-01-23
+ 2024-01-29daily/Admin-Guide/index.html
- 2024-01-23
+ 2024-01-29daily/User-Guide/index.html
- 2024-01-23
+ 2024-01-29daily/OpenID-Connect-Guide/index.html
- 2024-01-23
+ 2024-01-29daily/Media-Segmentation-Guide/index.html
- 2024-01-23
+ 2024-01-29daily/Feed-Forward-Guide/index.html
- 2024-01-23
+ 2024-01-29daily/Derivative-Media-Guide/index.html
- 2024-01-23
+ 2024-01-29daily/Object-Storage-Guide/index.html
- 2024-01-23
+ 2024-01-29daily/Markup-Guide/index.html
- 2024-01-23
+ 2024-01-29daily/TiesDb-Guide/index.html
- 2024-01-23
+ 2024-01-29daily/Trigger-Guide/index.html
- 2024-01-23
+ 2024-01-29daily/Health-Check-Guide/index.html
- 2024-01-23
+ 2024-01-29daily/REST-API/index.html
- 2024-01-23
+ 2024-01-29daily/Component-API-Overview/index.html
- 2024-01-23
+ 2024-01-29daily/Component-Descriptor-Reference/index.html
- 2024-01-23
+ 2024-01-29daily/CPP-Batch-Component-API/index.html
- 2024-01-23
+ 2024-01-29daily/Python-Batch-Component-API/index.html
- 2024-01-23
+ 2024-01-29daily/Java-Batch-Component-API/index.html
- 2024-01-23
+ 2024-01-29daily/GPU-Support-Guide/index.html
- 2024-01-23
+ 2024-01-29daily/Contributor-Guide/index.html
- 2024-01-23
+ 2024-01-29daily/Development-Environment-Guide/index.html
- 2024-01-23
+ 2024-01-29daily/Node-Guide/index.html
- 2024-01-23
+ 2024-01-29daily/Workflow-Manager-Architecture/index.html
- 2024-01-23
+ 2024-01-29daily/CPP-Streaming-Component-API/index.html
- 2024-01-23
+ 2024-01-29daily
\ No newline at end of file