Commit 6b9f2cac authored by Brian Clozel's avatar Brian Clozel

Fix section title levels in reference docs

parent ffdf9a42
...@@ -192,13 +192,13 @@ For example, Web components *must* be contained within the child context, and th ...@@ -192,13 +192,13 @@ For example, Web components *must* be contained within the child context, and th
See the {spring-boot-module-api}/builder/SpringApplicationBuilder.html[`SpringApplicationBuilder` Javadoc] for full details. See the {spring-boot-module-api}/builder/SpringApplicationBuilder.html[`SpringApplicationBuilder` Javadoc] for full details.
[[boot-features-application-availability-state]] [[boot-features-application-availability-state]]
== Application Availability State === Application Availability State
When deployed on plaftorms, applications can provide information about their availability to the platform using infrastructure like https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/[Kubernetes Probes]. When deployed on plaftorms, applications can provide information about their availability to the platform using infrastructure like https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/[Kubernetes Probes].
Spring Boot manages this application state with the `ApplicationAvailabilityProvider` and makes it available to application components and the platform itself. Spring Boot manages this application state with the `ApplicationAvailabilityProvider` and makes it available to application components and the platform itself.
[[boot-features-application-availability-liveness]] [[boot-features-application-availability-liveness]]
=== Liveness State ==== Liveness State
The "Liveness" state of an application tells whether its internal state allows it to work correctly, or recover by itself if it's currently failing. The "Liveness" state of an application tells whether its internal state allows it to work correctly, or recover by itself if it's currently failing.
An invalid "Liveness" state means that the application is in a broken state and cannot recover from it; the infrastructure should then restart the application to mitigate that problem. An invalid "Liveness" state means that the application is in a broken state and cannot recover from it; the infrastructure should then restart the application to mitigate that problem.
...@@ -210,7 +210,7 @@ If the application context has started successfully, Spring Boot assumes that th ...@@ -210,7 +210,7 @@ If the application context has started successfully, Spring Boot assumes that th
An application is considered live as soon as the context has been refreshed, see <<boot-features-application-events-and-listeners, Spring Boot application lifecycle and related Application Events>>. An application is considered live as soon as the context has been refreshed, see <<boot-features-application-events-and-listeners, Spring Boot application lifecycle and related Application Events>>.
[[boot-features-application-availability-readiness]] [[boot-features-application-availability-readiness]]
=== Readiness State ==== Readiness State
The "Readiness" state of an application tells whether the application is ready to handle traffic. The "Readiness" state of an application tells whether the application is ready to handle traffic.
A failing "Readiness" state tells the platform that it should not route traffic to the application for now. A failing "Readiness" state tells the platform that it should not route traffic to the application for now.
This typically happens during startup, while `CommandLineRunner` and `ApplicationRunner` components are being processed, or at any time if the application decides that it's too busy for additional traffic. This typically happens during startup, while `CommandLineRunner` and `ApplicationRunner` components are being processed, or at any time if the application decides that it's too busy for additional traffic.
...@@ -222,7 +222,7 @@ TIP: Tasks expected to run during startup should be executed by `CommandLineRunn ...@@ -222,7 +222,7 @@ TIP: Tasks expected to run during startup should be executed by `CommandLineRunn
[[boot-features-managing-application-availability]] [[boot-features-managing-application-availability]]
=== Managing the Application Availability State ==== Managing the Application Availability State
Application components can retrieve the current availability state at any time, by injecting the `ApplicationAvailabilityProvider` and calling methods on it. Application components can retrieve the current availability state at any time, by injecting the `ApplicationAvailabilityProvider` and calling methods on it.
More often, applications will want to listen to state updates or update the state of the application. More often, applications will want to listen to state updates or update the state of the application.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment