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

fix: observe GRPC client #135

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

gatici
Copy link
Contributor

@gatici gatici commented Oct 21, 2024

This PR aims to solve GPRC client connection issues which appears when GPRC server (webconsole) is restarted.

If the Webconsole is restarted, other modules loses the GRPC connection to Webconsole
They tries to connect again for hours with no success.

2024-09-26T11:32:10.014Z [smf] 2024-09-26T11:32:10Z [ERRO][Config5g][GRPC] Connectivity status idle, trying to connect again

NF observes the GRPC client availability and connection status in an infinite loop.
If the connection is ready it does nothing. If GRPC client does not exist, it creates new client. If GRPC client connection is not ready, it closes the existing client and creates another client.
Only one GRPC client exists for any time slot.

Copy link
Contributor

@gab-arrobo gab-arrobo left a comment

Choose a reason for hiding this comment

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

I see that changes are not consistent across the different NFs (in some NFs the updateConfig is in service/init.go like this in NF/PR and in other NFs, the same function goes in factory/factory.go). Would this be a good time to make the change consistent across all NFs?

@gatici
Copy link
Contributor Author

gatici commented Oct 21, 2024

I see that changes are not consistent across the different NFs (in some NFs the updateConfig is in service/init.go like this in NF/PR and in other NFs, the same function goes in factory/factory.go). Would this be a good time to make the change consistent across all NFs?

I will move the implementation to under service/init.

@gatici gatici marked this pull request as draft October 21, 2024 21:00
@gatici gatici force-pushed the TELCO-1381-observe-grpc-client branch from fbdde66 to 26e1312 Compare October 22, 2024 20:59
@gatici gatici force-pushed the TELCO-1381-observe-grpc-client branch from 26e1312 to 4fa3dfc Compare October 22, 2024 21:04
@gab-arrobo
Copy link
Contributor

@gatici do not forget to rebase your branch

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