Commit 6e273f4
authored
CLOUDP-321067: update health check (#268)
# Summary
This pull request introduces health check functionality for the `mongot`
service, updates readiness and liveness probes, and removes a test
decorator for local testing. The changes enhance the monitoring and
reliability of the `mongot` service and simplify the test suite.
### Enhancements to `mongot` service health checks:
* Added a new constant `MongotDefautHealthCheckPort` set to port `8080`
in `mongodbsearch_types.go`. A helper method `GetMongotHealthCheckPort`
was also introduced to retrieve this value.
* Updated the `buildSearchHeadlessService` function to include a new
service port for health checks, using the `GetMongotHealthCheckPort`
method.
* Modified the `createMongotConfig` function to dynamically set the
health check address using the new health check port.
### Readiness and liveness probe improvements:
* Introduced constants for probe paths (`SearchLivenessProbePath` and
`SearchReadinessProbePath`) in `search_construction.go`.
* Replaced the existing readiness probe configuration with new methods
`mongotLivenessProbe` and `mongotReadinessProbe`. These methods
configure HTTP-based probes using the health check port and paths.
### Test suite simplifications:
* Removed the `@skip_if_local` decorator from several
`test_om_connectivity` test cases in `om_appdb_scale_up_down.py`,
enabling them to run in all environments.1 parent 060ad1f commit 6e273f4
File tree
4 files changed
+55
-7
lines changed- api/v1/search
- controllers/search_controller
- docker/mongodb-kubernetes-tests/tests/opsmanager/withMonitoredAppDB
4 files changed
+55
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
189 | 190 | | |
190 | 191 | | |
191 | 192 | | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
316 | 323 | | |
317 | 324 | | |
318 | 325 | | |
| |||
350 | 357 | | |
351 | 358 | | |
352 | 359 | | |
353 | | - | |
| 360 | + | |
354 | 361 | | |
355 | 362 | | |
356 | 363 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| |||
183 | 185 | | |
184 | 186 | | |
185 | 187 | | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
| 188 | + | |
| 189 | + | |
191 | 190 | | |
192 | 191 | | |
193 | 192 | | |
| |||
209 | 208 | | |
210 | 209 | | |
211 | 210 | | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
212 | 247 | | |
213 | 248 | | |
214 | 249 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
0 commit comments