Comments (6)
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.
@prashanthpai when are we planning to pick this item?
from glusterd2.
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.
@prashanthpai I guess that's about it until @kshlm has a different opinion
from glusterd2.
I think we should retain "Connected"(or "online") field. (Assuming API output from peer will be shown even if peer is down)
from glusterd2.
Fixed in PR #200
from glusterd2.
Related Issues (20)
- pvc request failed to create volume with error "timeout in synchronizing txn" HOT 16
- glustershd needs to be restarted for volume start/stop operations HOT 1
- Healinfo for disperse volumes errors out HOT 3
- Replicate volume created on single node without force HOT 1
- glustershd memory keeps increasing while creating PVCs HOT 11
- Fix spurious socket connect failure issue in brick multiplexing stop code path HOT 1
- stale brick process when volume stop operations are done in parallel in brick multiplexing mode HOT 8
- Need to avoid setting 'all-bricks-in-cluster' in transaction context for volumer {create,expand,replace-brick} HOT 7
- Inconsistency in glustershd process HOT 1
- Glusterd2--version displays some logs along with it
- Support RWO with Loopback devices HOT 1
- parallel volume deletion requests fail with device or resource busy for some of the PVs HOT 1
- disable glustershd for GCS 1.0 HOT 2
- Volume status shows PID as 0 for few volumes HOT 1
- PVC delete failed to delete 146/250 gluster volumes
- Brick process didn't come up on the node post gluster node reboot HOT 2
- GlusterD kubernetes: systemctl start glusterd silent failures. HOT 1
- Can gd2 take a directory as requirement (instead of 'add-device') for loopback bricks? HOT 2
- Please fix systemd depency to rpcbind HOT 1
- Is glusterd2 dead? HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from glusterd2.