I decided to open this pull request after I spent a good number of hours trying to debug why my pubsub was not working. The problem was that I was running several pods in kubernetes but they were not configured in an erlang cluster - they all were using the same value for --name (I know, I know)
I had read the docs of the redis adapter for phoenix pubsub a few times before I realized what was happening.
Hopefully this change will make it more obvious that node_name must be unique and save someone's time in the future.
I decided to open this pull request after I spent a good number of hours trying to debug why my pubsub was not working. The problem was that I was running several pods in kubernetes but they were not configured in an erlang cluster - they all were using the same value for
--name
(I know, I know)I had read the docs of the redis adapter for phoenix pubsub a few times before I realized what was happening.
Hopefully this change will make it more obvious that
node_name
must be unique and save someone's time in the future.