GithubHelp home page GithubHelp logo

Comments (6)

prashanthpai avatar prashanthpai commented on May 18, 2024

I'll start working on this.

A GET on the peer will fetch static information about that peer from the store without contacting the peer.

[ppai@gd2-1 ~]$ curl -i -X GET http://127.0.0.1:24007/v1/peers/6b8ae6de-105d-4423-a3ee-214a72fd5b04
HTTP/1.1 200 OK
Content-Type: application/json; charset=UTF-8
Date: Thu, 17 Nov 2016 12:41:46 GMT
Content-Length: 145

{"id":"6b8ae6de-105d-4423-a3ee-214a72fd5b04","name":"192.168.56.26","addresses":["192.168.56.26"],"client":false,"memberID":7442247378072614556}

Adding status to the endpoint URL in future, should return health or online/offline status of the peer. This will contact the actual peer.

$ curl -i -X GET http://127.0.0.1:24007/v1/peers/6b8ae6de-105d-4423-a3ee-214a72fd5b04/status

from glusterd2.

atinmu avatar atinmu commented on May 18, 2024

@prashanthpai when are we planning to pick this item?

from glusterd2.

prashanthpai avatar prashanthpai commented on May 18, 2024

This is pretty much ready. I want some clarity on what things the response should really contain. glusterd1 only has a Connected field. In glusterd2, we can return result of etcdhealth endpoint. The response will ensure that gusterd2 process is up (because etcd is embedded) and that etcd cluster state is healthy. In glusterd2 peers do not have to main a persistent connection between each other. etcd does it for us. So what other information (if any) should be returned as peer status response ? @atinmu @kshlm

from glusterd2.

atinmu avatar atinmu commented on May 18, 2024

@prashanthpai I guess that's about it until @kshlm has a different opinion

from glusterd2.

aravindavk avatar aravindavk commented on May 18, 2024

I think we should retain "Connected"(or "online") field. (Assuming API output from peer will be shown even if peer is down)

from glusterd2.

prashanthpai avatar prashanthpai commented on May 18, 2024

Fixed in PR #200

from glusterd2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.