Skip to content

[cmd] Check services are up when the platform starts #38

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jjmerchante
Copy link
Contributor

@jjmerchante jjmerchante commented Feb 26, 2025

Server, producer and consumers wait until the required services are up before starting.

Fixes chaoss/grimoirelab#740

Copy link
Member

@sduenas sduenas 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 several problems with this solution:

  • The component could get stuck waiting for any of the required services to be available. It's better to limit the tries.
  • Each iteration waits the same time to check if the service is available. Normally is better to use a exponential backoff approach to avoid collisions.
  • OpenSearch is only available if the archivists is configured for that. Right now we don't have any other backend to store the data but there will be. I think this should be addressed now.

@jjmerchante jjmerchante force-pushed the check-services branch 2 times, most recently from 8eeced4 to 6ff6b40 Compare March 4, 2025 08:06
Server, producer and consumers wait until the required services
are up before starting.
If the services are not available after 10 retries, the service
fails to start.

Signed-off-by: Jose Javier Merchante <[email protected]>
@jjmerchante jjmerchante force-pushed the check-services branch 2 times, most recently from dbd67e9 to 5be1f8c Compare March 6, 2025 10:51
@jjmerchante
Copy link
Contributor Author

I updated the PR to fail when the services are not ready

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.

Check services are up when the platform starts
2 participants