Skip to content

Conversation

clement-leprovost
Copy link

This endpoint does an application-level ping. It is only useful for diagnosis purposes, or to pre-establish a connection before running actual operations.

This endpoint does an application-level ping. It is only useful for diagnosis purposes, or to pre-establish a connection before running actual operations.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.3%) to 90.282% when pulling e1af58f on feat/is-alive into 7b5f19c on master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage increased (+0.3%) to 90.282% when pulling e1af58f on feat/is-alive into 7b5f19c on master.

Test if the server is alive.
This performs a simple application-level ping. If up and running, the server answers with a basic message.
"""
return self._req(True, '/1/isalive', 'GET')

Choose a reason for hiding this comment

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

The is_search parameter is not super explicit it switches between APPID-1.algolia.net and APPID-dsn.algolia.net. I think in that case we don't need it.

Copy link
Author

Choose a reason for hiding this comment

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

Yes, I know, but I'd rather use it exactly for that reason:

  • If we want to test that the cluster is up, better target the dynamic DNS anyway, it doesn't hurt.
  • "Warming up" a connection is most likely to be useful for searches than for write operations.

@ercolanelli-leo Is that OK for you?

Choose a reason for hiding this comment

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

Yes, you are right, I actually missed the part about warming up the connection in your PR description.
In that case it makes sense for me, and the tests pass, let's merge it!

@LeoErcolanelli LeoErcolanelli merged commit a15c536 into master Jul 12, 2017
@LeoErcolanelli LeoErcolanelli deleted the feat/is-alive branch July 12, 2017 11:47
shortcuts pushed a commit that referenced this pull request Nov 24, 2023
…on (#277)

* chore(ci): fix mainGenerator in clients.configchore/main-generator.json

* chore: update release issue description
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.

3 participants