title: Some ideas about leader election
body: <p>I am trying to perform leader election. These days I am thinking of using a key-value store to realize that but I am not quite sure if the idea is reliable as for scalability and consistency issues. The real deployment will have thousands of nodes and the election should take place without any central authority or service like zookeeper.</p>
  
  <p>Now that, my question is:</p>
  
  <p>Can I use a key-value store(preferably C-A tunable like riak) to perform the leader election? What are the possible pros/cons of utilizing a KV store for leader election?</p>
  
  <p>Thanks!</p>
  
  <p>EDIT:
  I am not interested in bully algorithm approach anymore.</p>