odpi / egeria

Egeria core
https://egeria-project.org
Apache License 2.0
806 stars 260 forks source link

Status / health check information for cohort connectivity #5471

Closed cmgrote closed 2 years ago

cmgrote commented 3 years ago

The objective of this issue is to discuss options and a proposed approach for exposing basic status / health check information on the connectivity of a given server to its cohort(s).

Understanding of current interactions:

Suggestions for providing status / health check information:

So as a proposed approach:

This would therefore not change any of the existing interfaces of a Connector while providing a default implementation of the logic that is based on already-existing and self-contained methods in the top-level abstract implementation (ConnectorBase), so I believe would also be backwards-compatible (?)

guptaneeru commented 3 years ago

Thank you Chris @cmgrote for opening this issue. This will be useful information to know the status of cohort/s for a local server. The way it is proposed, it will be connector agnostic.

guptaneeru commented 3 years ago

In addition to providing health check, we should also revisit the polling logic. Currently, Egeria tries to connect to Topic server in some sort of loop and fills up logs. This has been an issue whenever Kafka or server is not reachable. Logs are rolling over. We should poll in intervals not in a loop and also suppress logs if we can...

planetf1 commented 3 years ago

@guptaneeru probably multiple points here a) Whether an audit event is generated within that connection attempt - I'd err on probably but haven't looked in enough detail at how tight that is. b) The behaviour of the default audit log providers - for example it could handle repeated events better (last event occurred 10 times), or a wrapping logger could be provided. c) More than b) The fact that the audit log framework is pluggable - so a new logger could be written to better suit your needs (including log cycling etc)?

guptaneeru commented 3 years ago

Thank you @Nigel Nigle. How can I add our own audit logger?

planetf1 commented 3 years ago

@guptaneeru :

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 20 days if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 20 days if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 20 days if no further activity occurs. Thank you for your contributions.