# Incomprehensible behavior RAFT

**URL:** <https://forum.opennebula.io/t/incomprehensible-behavior-raft/9635>\
**Category:** Product Support\
**Created:** [June 16, 2021, 8:44am UTC](https://forum.opennebula.io/t/incomprehensible-behavior-raft/9635 "2021-06-16T08:44:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![perrfect](https://avatars.discourse-cdn.com/v4/letter/p/45deac/32.png) [@perrfect](https://forum.opennebula.io/u/perrfect)\
**Post date:** [June 16, 2021, 8:44am UTC](https://forum.opennebula.io/t/incomprehensible-behavior-raft/9635/1 "2021-06-16T08:44:15Z")

</div>

Hello.  
I use Opennebula 5.12.0.4 and noticed incomprehensible behavior RAFT.  
I have 3 servers in a cluster.

```auto
HA & FEDERATION SYNC STATUS                                                    
ID NAME STATE TERM INDEX COMMIT VOTE FED_INDEX 
 0 oned-preprod-1. follower 41502 6241529 6241529 3 -1
 1 oned-preprod-2. follower 41502 6241529 6241529 -1 -1
 2 oned-preprod-3. leader 41502 6241529 6241529 3 -1

```

When i restarted opennebula service on a leader my 2 other servers can’t choose new leader and waiting when server oned-preprod-3 will online.

In the logs in this moment:

```auto
Failed to get heartbeat from leader. Starting election proccess
Vote not granted from follower 0: [one.zone.voterequest] Candidate's term is outdated
Follower 0 is in term 41501 current term is 41500. Turning into follower
Could not find information driver 'monitord'
oned is set to follower mode
Failed to get heartbeat from leader. Starting election proccess
Got vote from follower 0. Total votes: 1
Got majority of votes
Becoming leader of the zone. Last log record: 6241525 last applied record: 6241525
Could not find information driver 'monitord'
oned is now the leader of the zone

```

And other case.  
When i restarted opennebula service on 2 or 3 node at the same time i get 2 leaders in my cluster.

```auto
HA & FEDERATION SYNC STATUS                                                     
ID NAME STATE TERM INDEX COMMIT VOTE FED_INDEX 
 0 oned-preprod-1. follower 41517 6241563 6241563 0 -1
 1 oned-preprod-2. leader 41517 6241563 6241563 2 -1
 2 oned-preprod-3. leader 41517 6241563 6241563 3 -1

```

Why it happens and how decide the problems?

---

<div class="post-metadata">

**Author:** ![ruben](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/ruben/32/19_2.png) [@ruben](https://forum.opennebula.io/u/ruben)\
**Post date:** [June 18, 2021, 10:08am UTC](https://forum.opennebula.io/t/incomprehensible-behavior-raft/9635/2 "2021-06-18T10:08:03Z")

</div>

Considering this message

> Could not find information driver ‘monitord’

Could it be an out of sync configuration files? This would prevent the proper operation of the cluster and if some ID’s are not properly set it could lead to this multiple leader election.

---

<div class="post-metadata">

**Author:** ![perrfect](https://avatars.discourse-cdn.com/v4/letter/p/45deac/32.png) [@perrfect](https://forum.opennebula.io/u/perrfect)\
**Post date:** [June 18, 2021, 10:23am UTC](https://forum.opennebula.io/t/incomprehensible-behavior-raft/9635/3 "2021-06-18T10:23:28Z")

</div>

Hi.  
Thank you for your reply.  
I’ve sync .one directory for all my servers in the cluster. And of course backup and restore the database. ID’s on all server are different.
