title: How to successfully set up a simple cluster singleton in Akka.NET
body: <p>I was running into a problem attempting to set up a Cluster Singleton within an Akka.NET cluster where more than one instance of the singleton was starting up and running within my cluster. The cluster consists of Lighthouse (the seed node) and <em>x</em> number of instances of the main cluster node of which there are cluster shards as well as this singleton that exist within this node.</p>
  
  <p>In order to reproduce the problem I was having I set up an <a href="https://github.com/jpierson/x-akka-cluster-singleton" rel="nofollow">example solution in GitHub</a> but unfortunately I'm having a different problem here as I always get <em>Singleton not available</em> messages and my singleton never receives a message. This is sort of opposite problem that I was getting originally but nonetheless I would like to sort out a working example of cluster singleton.</p>
  
  <blockquote>
    <p>[DEBUG][8/22/2016 3:06:18 PM][Thread
    0015][[akka://singletontest/user/my-singleton-proxy#1237572454]]
    Singleton not available, buffering message type [System.String]</p>
  </blockquote>
  
  <p>In the Lighthouse process I see the following messags.</p>
  
  <blockquote>
    <p>Akka.Remote.EndpointWriter: Dropping message
    [Akka.Actor.ActorSelectionMessage] for non-local recipient
    [[akka.tcp://sync@127.0.0.1:4053/]] arriving at
    [akka.tcp://sync@127.0.0.1:4053] inbound addresses
    [akka.tcp://singletontest@127.0.0.1:4053]</p>
  </blockquote>
  
  <p>Potentially related:</p>
  
  <ul>
  <li><a href="https://github.com/akkadotnet/akka.net/issues/1960" rel="nofollow">https://github.com/akkadotnet/akka.net/issues/1960</a></li>
  </ul>