-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Health checks flow #22393
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Health checks flow #22393
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Pod// Module included in the following assemblies: | ||
// | ||
// applications/application-health | ||
|
||
[id="odc-adding-health-checks"] | ||
= Adding health checks using the Developer perspective | ||
|
||
You can use the *Topology* view to add health checks to your deployed application. | ||
|
||
.Prerequisites: | ||
* You have switched to the *Developer* perspective in the web console. | ||
* You have created and deployed an application on {product-title} using the *Developer* perspective. | ||
|
||
.Procedure | ||
. In the *Topology* view, click on the application node to see the side panel. If the container does not have health checks added to ensure the smooth running of your application, a *Health Checks* notification is displayed with a link to add health checks. | ||
. In the displayed notification, click the *Add Health Checks* link. | ||
. Alternatively, you can also click the *Actions* drop-down list and select *Add Health Checks*. Note that if the container already has health checks, you will see the *Edit Health Checks* option instead of the add option. | ||
. In the *Add Health Checks* form, if you have deployed multiple containers, use the *Container* drop-down list to ensure that the appropriate container is selected. | ||
. Click the required health probe links to add them to the container. Default data for the health checks is prepopulated. You can add the probes with the default data or further customize the values and then add them. For example, to add a Readiness probe that checks if your container is ready to handle requests: | ||
.. Click *Add Readiness Probe*, to see a form containing the parameters for the probe. | ||
.. Click the *Type* drop-down list to select the request type you want to add. For example, in this case, select *Container Command* to select the command that will be executed inside the container. | ||
.. In the *Command* field, add an argument `cat`, similarly, you can add multiple arguments for the check, for example, add another argument `/tmp/healthy`. | ||
.. Retain or modify the default values for the other parameters as required, and click the check mark at the bottom of the form. The *Readiness Probe Added* message is displayed. | ||
. Click *Add* to add the health check. You are redirected to the *Topology* view and the container is restarted. | ||
. In the side panel, verify that the probes have been added by clicking on the deployed Pod under the *Pods* section. | ||
. In the *Pod Details* page, click the listed container in the *Containers* section. | ||
. In the *Container Details* page, verify that the Readiness probe - *Exec Command* `cat` `/tmp/healthy` has been added to the container. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// Module included in the following assemblies: | ||
// | ||
// applications/application-health | ||
|
||
[id="odc-editing-health-checks"] | ||
= Editing health checks using the Developer perspective | ||
|
||
You can use the *Topology* view to edit health checks added to your application, modify them, or add more health checks. | ||
|
||
.Prerequisites: | ||
* You have switched to the *Developer* perspective in the web console. | ||
* You have created and deployed an application on {product-title} using the *Developer* perspective. | ||
* You have added health checks to your application. | ||
|
||
.Procedure | ||
. In the *Topology* view, right-click your application and select *Edit Health Checks*. Alternatively, in the side panel, click the *Actions* drop-down list and select *Edit Health Checks*. | ||
. In the *Edit Health Checks* page: | ||
|
||
* To remove a previously added health probe, click the minus sign adjoining it. | ||
* To edit the parameters of an existing probe: | ||
+ | ||
.. Click the *Edit Probe* link next to a previously added probe to see the parameters for the probe. | ||
.. Modify the parameters as required, and click the check mark to save your changes. | ||
+ | ||
* To add a new health probe, in addition to existing health checks, click the add probe links. For example, to add a Liveness probe that checks if your container is running: | ||
+ | ||
.. Click *Add Liveness Probe*, to see a form containing the parameters for the probe. | ||
.. Edit the probe parameters as required, and click the check mark at the bottom of the form. The *Liveness Probe Added* message is displayed. | ||
. Click *Save* to save your modifications and add the additional probes to your container. You are redirected to the *Topology* view. | ||
. In the side panel, verify that the probes have been added by clicking on the deployed Pod under the *Pods* section. | ||
. In the *Pod Details* page, click the listed container in the *Containers* section. | ||
. In the *Container Details* page, verify that the Liveness probe - `HTTP Get 10.129.4.65:8080/` has been added to the container, in addition to the earlier existing probes. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
modules/odc-monitoring-application-health-using-developer-perspective.adoc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Module included in the following assemblies: | ||
// | ||
// applications/application-health | ||
|
||
[id="odc-monitoring-application-health-using-developer-perspective"] | ||
= Monitoring application health using the Developer perspective | ||
|
||
You can use the *Developer* perspective to add three types of health probes to your container to ensure that your application is healthy: | ||
|
||
* Use the Readiness probe to check if the container is ready to handle requests. | ||
* Use the Liveness probe to check if the container is running. | ||
* Use the Startup probe to check if the application within the container has started. | ||
|
||
You can add health checks either while creating and deploying an application, or after you have deployed an application. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Module included in the following assemblies: | ||
// | ||
// applications/application-health | ||
|
||
[id="odc-monitoring-health-checks"] | ||
= Monitoring health check failures using the Developer perspective | ||
|
||
In case an application health check fails, you can use the *Topology* view to monitor these health check violations. | ||
|
||
.Prerequisites: | ||
* You have switched to the *Developer* perspective in the web console. | ||
* You have created and deployed an application on {product-title} using the *Developer* perspective. | ||
* You have added health checks to your application. | ||
|
||
.Procedure | ||
. In the *Topology* view, click on the application node to see the side panel. | ||
. Click the *Monitoring* tab to see the health check failures in the *Events (Warning)* section. | ||
. Click the down arrow adjoining *Events (Warning)* to see the details of the health check failure. |
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.
Uh oh!
There was an error while loading. Please reload this page.