Commit 832f28c
authored
Implements a readiness endpoint (#82)
* Implements a readiness endpoint
When this converter-application is deployed to a Kubernetes (or Kubernetes-like) environment, a readiness endpoint can be crucial for ensuring that the application has started and is ready to accept new connections.
The same endpoint can also be used in other contexts, like e.g. for testing that another application is able to reach the converter-application (used like a ping endpoint basically).
This new /ready endpoint checks that the officeManager in the converter service is running and can execute tasks, and responds with 200 OK if so. Otherwise it responds with 503 Service Unavailable
* Updates docs for the readiness endpoint1 parent a098076 commit 832f28c
3 files changed
Lines changed: 22 additions & 1 deletion
File tree
- src/main/kotlin/de/kontextwork/converter/module/convert
- controller
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
46 | 58 | | |
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
65 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
66 | 74 | | |
0 commit comments