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

Implemented a caching API to query chunkserver status #46

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

Conversation

echenj
Copy link
Contributor

@echenj echenj commented Oct 29, 2014

The metaserver ping function has been modified to include a caching system. The ping function itself has also been modified to return a Status object instead of modifying the Status passed as a parameter. The cache refresh time is 30 seconds, but will not refresh unless a user asks for data. The added queries will pull information from the cache.
The three new queries are:

  • /query/stats/<hostname/ip>
    • Displays all of the attributes for any UpServer instance
  • /query/dead/<hostname/ip>
    • Displays the current status of any server, and also the entire disconnect history
  • /query/dead/count
    • Displays all of the servers that have any recorded disconnects and their disconnect counts

@comptonqc
Copy link
Contributor

Do any of the query endpoints take parameters?

@echenj
Copy link
Contributor Author

echenj commented Oct 29, 2014

Looks like the markup got rid of the hostname stuff, I'll add that back into the original post.

@fsareshwala
Copy link
Contributor

Thank you very much for your contribution! It looks like there are some conflicts that need to be resolved here. Can you take a look at resolving those conflicts so that we can review the change and hopefully get it in?

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