Skip to content
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

Add initial docs on k8s healthchecks #775

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

planetf1
Copy link
Member

@planetf1 planetf1 commented May 18, 2023

Draft doc on api healthchecks

@planetf1 planetf1 marked this pull request as ready for review May 19, 2023 10:00
@planetf1 planetf1 marked this pull request as draft May 19, 2023 10:10
@planetf1 planetf1 marked this pull request as ready for review June 29, 2023 09:53
@planetf1 planetf1 requested review from mandy-chessell, lpalashevski and juergenhemelt and removed request for mandy-chessell and cmgrote June 29, 2023 09:53
@planetf1
Copy link
Member Author

Hopefully this doc contribution is useful - if it looks ok, please consider merging :-)

Copy link
Contributor

@mandy-chessell mandy-chessell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Useful content - just need to correct calls away from deprecated REST API calls.

### Platform
This checks if the *platform* is available.

#### Platform is not running
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This call is deprecated. Should be https://44623abc-eu-gb.lb.appdomain.cloud:9443/open-metadata/platform-services/users/admin/server-platform/origin


#### Platform is not running
➜ ~ curl -k -X GET --connect-timeout 5 --max-time 5 "https://44623abc-eu-gb.lb.appdomain.cloud:9443/open-metadata/admin-services/users/admin/server-origin"
Egeria OMAG Server Platform (version 4.1-SNAPSHOT)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure how the platform returns a version if it is not running.

Egeria OMAG Server Platform (version 4.1-SNAPSHOT)

#### Platform is running
➜ ~ http --verify=no --pretty=format GET "https://44623abc-eu-gb.lb.appdomain.cloud:9443/open-metadata/admin-services/users/admin/server-origin"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again - deprecated request

This API call was introduced in [release 3.4](/release-notes/3-4.md)

#### Server is not known
```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This call indicates whether the server is running or not - the call to determine whether the server is known on the platform is {baseURL}/open-metadata/platform-services/users/{user}/server-platform/servers/{serverName}/is-known

```
#### No permission for api call
```
➜ ~ http --verify=no --pretty=format GET "https://44623abc-eu-gb.lb.appdomain.cloud:9443/open-metadata/admin-services/users/admin/servers/cocoMDS5/instance/status"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This call is deprecated - should use the platform services request {baseURL}/open-metadata/platform-services/users/{user}/server-platform/servers/{serverName}/instance/status

}
```
### Server is available
```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is also a simpler call to test if the server is active ... {baseURL}/open-metadata/platform-services/users/{user}/server-platform/servers/{serverName}/is-active


For example
```
curl -k -o - -X GET --connect-timeout 5 --max-time 5 "https://44623abc-eu-gb.lb.appdomain.cloud:9443/open-metadata/admin-services/users/admin/servers/cocoMDS5/instance/status" | grep '.*\"relatedHTTPCode\": 200'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update for latest request

@planetf1
Copy link
Member Author

Thanks for the review comments. will try and propose an update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants