Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
oskari-ext.properties
likedisablefile.path=/var/run/oskari-disable
. If the file exists the status indicator will show that the app should be considered to be in a non-healthy state. This can be used to trigger a request routing policy on a front-server/proxy to route requests to another node in the cluster from now on./health
and/status
to Oskari. Health returns either OK or DISABLED based on HIGH-severity status indicators returning OK or not. Status can be used for building a dashboard to show the application status and it only returns meaningful content for admin-users. For example thematic maps might have a status of partially working if there's problems connecting to some datasource but not all of them.To add more status indicators you can add a class in the classpath extending OskariComponent and annotating it with Oskari (see ForceDisableByFile.java). Note that the Maven module where you add the status class needs to have the annotation processor enabled (META-INF/services/javax.annotation.processing.Processor in this PR).