# High availability

**URL:** <https://discuss.dgraph.io/t/high-availability/3112>\
**Category:** Users\
**Created:** [August 30, 2018, 2:11pm UTC](https://discuss.dgraph.io/t/high-availability/3112 "2018-08-30T14:11:05Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![u007](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/u007/32/1220_2.png) [@u007](https://discuss.dgraph.io/u/u007)\
**Post date:** [August 30, 2018, 2:11pm UTC](https://discuss.dgraph.io/t/high-availability/3112/1 "2018-08-30T14:11:05Z")

</div>

hi,

ive setup dgraph via docker compose,  
i have 2 server node connected to zero node.  
but when 1 node is down, seems like node1 will also be down.

is there a way to setup in a way that it only requires 1 / X number of node online?

thank you

---

<div class="post-metadata">

**Author:** ![MichelDiz](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/micheldiz/32/11873_2.png) [@MichelDiz](https://discuss.dgraph.io/u/MichelDiz)\
**Post date:** [August 30, 2018, 2:19pm UTC](https://discuss.dgraph.io/t/high-availability/3112/2 "2018-08-30T14:19:34Z")

</div>

You can “/removeNode?id=2&group=2”

> **[Get started with Dgraph](https://dgraph.io/docs)**
>
> From learning the basics of graph databases to advanced functions and capabilities, Dgraph docs have the information you need.

Check this  
[https://github.com/dgraph-io/dgraph/issues/2466](https://github.com/dgraph-io/dgraph/issues/2466)

---

<div class="post-metadata">

**Author:** ![u007](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/u007/32/1220_2.png) [@u007](https://discuss.dgraph.io/u/u007)\
**Post date:** [August 30, 2018, 3:08pm UTC](https://discuss.dgraph.io/t/high-availability/3112/3 "2018-08-30T15:08:20Z")

</div>

> [@MichelDiz](#):
>
> /removeNode?id=2&group=2

hi @MichelDiz

i tried removing and it works, but how do i add back another node to the same group?  
my both my node could not connect back to zero

and is there a parameter to ask a node to connect as group X?

---

<div class="post-metadata">

**Author:** ![MichelDiz](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/micheldiz/32/11873_2.png) [@MichelDiz](https://discuss.dgraph.io/u/MichelDiz)\
**Post date:** [August 30, 2018, 3:15pm UTC](https://discuss.dgraph.io/t/high-availability/3112/4 "2018-08-30T15:15:41Z")

</div>

I believe you can not return a Node that has been removed, but you can create new ones. Then Zero will fill this new one.

---

<div class="post-metadata">

**Author:** ![u007](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/u007/32/1220_2.png) [@u007](https://discuss.dgraph.io/u/u007)\
**Post date:** [August 30, 2018, 3:21pm UTC](https://discuss.dgraph.io/t/high-availability/3112/5 "2018-08-30T15:21:58Z")

</div>

Hi,

sorry, how do i remove a group?  
and how do i transfer all tablets from 1 group to another?

---

<div class="post-metadata">

**Author:** ![MichelDiz](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/micheldiz/32/11873_2.png) [@MichelDiz](https://discuss.dgraph.io/u/MichelDiz)\
**Post date:** [August 30, 2018, 4:55pm UTC](https://discuss.dgraph.io/t/high-availability/3112/6 "2018-08-30T16:55:50Z")

</div>

In the doc’s link you’ll get that answer.

- `/moveTablet?tablet=name&group=2` This endpoint can be used to move a tablet to a group. Zero already does shard rebalancing every 8 mins, this endpoint can be used to force move a tablet.
- `/removeNode?id=3&group=2` If a replica goes down and can’t be recovered, you can remove it and add a new node to the quorum. This endpoint can be used to remove a dead Zero or Dgraph server node. To remove dead Zero nodes, just pass `group=0` and the id of the Zero node.

About removing a group, I’m not sure but maybe if you remove all nodes from that group you can achieve this.

Cheers.

---

<div class="post-metadata">

**Author:** ![dmai](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/dmai/32/1254_2.png) [@dmai](https://discuss.dgraph.io/u/dmai)\
**Post date:** [August 30, 2018, 5:05pm UTC](https://discuss.dgraph.io/t/high-availability/3112/7 "2018-08-30T17:05:06Z")

</div>

> [@MichelDiz](#):
>
> About removing a group, I’m not sure but maybe if you remove all nodes from that group you can achieve this.

Regarding group removal, see this topic:

> [@Option to gracefully remove a (undead) group](http://discuss.hypermode.com/t/option-to-gracefully-remove-a-undead-group/2921/3):
>
> You can turn off auto rebalancing with the flag and then use /moveTablet to move the predicates from one group to the other. Right now there isn’t a way to remove the group. You can continue running with the single server and single group just fine, and Dgraph will serve requests from that single group even though there’s technically two groups in the system (with the second one being empty).

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex007/uploads/dgraph/original/2X/2/2b38fdece2abe5814f2e51bee69d1e67fc304b0a.png) [@system](https://discuss.dgraph.io/u/system)\
**Post date:** [September 29, 2018, 5:05pm UTC](https://discuss.dgraph.io/t/high-availability/3112/8 "2018-09-29T17:05:21Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
