36ba9b1e by Adam Heath

Initial pass of very very simple, lightweight health checks entrypoints.

1 parent 2c3bc571
<?xml version="1.0" encoding="UTF-8" ?>
<!-- No copyright or license for configuration file, details here are not considered a creative work. -->
<moqui-conf xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://moqui.org/xsd/moqui-conf-3.xsd">
<screen-facade>
<screen location="component://webroot/screen/webroot.xml">
<subscreens-item name="oci-healthchecks" menu-title="OCI - Healthchecks" menu-include="false"
location="component://moqui-k8s/screen/MoquiOciHealthchecksRoot.xml"/>
</screen>
</screen-facade>
</moqui-conf>
<?xml version="1.0" encoding="UTF-8"?>
<component
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://moqui.org/xsd/moqui-conf-3.xsd"
name="moqui-healthchecks"
version="0.0.0"/>
<!--
This software is in the public domain under CC0 1.0 Universal plus a
Grant of Patent License.
To the extent possible under law, the author(s) have dedicated all
copyright and related and neighboring rights to this software to the
public domain worldwide. This software is distributed without any
warranty.
You should have received a copy of the CC0 Public Domain Dedication
along with this software (see the LICENSE.md file). If not, see
<http://creativecommons.org/publicdomain/zero/1.0/>.
-->
<screen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://moqui.org/xsd/xml-screen-3.xsd"
standalone="true"
require-authentication="false">
<transition name="ready">
<!-- ready probes mean is moqui running. No further meaning is implied. -->
<actions>
<script>
def response = ec.web.response
response.setStatus(200)
response.writer.write('ok')
</script>
</actions>
<default-response type="none"/>
</transition>
<transition name="start">
<!-- start probes should check to see if all caches have been primed, etc. -->
<!-- this needs work; moqui startup already does a lot of pre-caching of things. -->
<actions>
<script>
def response = ec.web.response
response.setStatus(200)
response.writer.write('ok')
</script>
</actions>
<default-response type="none"/>
</transition>
<transition name="live">
<!-- this should be used to signal when moqui is busy -->
<actions>
<script>
def response = ec.web.response
response.setStatus(200)
response.writer.write('ok')
</script>
</actions>
<default-response type="none"/>
</transition>
</screen>