concept node in category erlang

This is an excerpt from Manning's book Erlang and OTP in Action.
The fact that it’s usually straightforward to distribute an Erlang application over a network of nodes also means that scalability problems become an order of magnitude easier to attack. You still have to figure out which processes will do what, how many of each kind, on which machines, how to distribute the workload, and how to manage the data, but at least you won’t need to start with questions like, “How on Earth do I split my existing program into individual parts that can be distributed and replicated?” “How should they communicate?” and “How can I handle failures gracefully?”
A node is a running Erlang VM that has been configured to work in distributed mode. A node always has a name, which allows other nodes to find it and talk to it. The built-in function node() returns the current local node name, which is an atom of the form nodename@hostname. (This is always nonode@nohost for a VM that isn’t running in distributed mode.) There can be multiple nodes running on a single host machine.
Assuming you’ve managed to start a node at least once, look in your home directory. (On Windows, this is probably C:/Documents and Settings/<username>, C:/Users/ <username>, or whatever %HOMEDRIVE%%HOMEPATH% happens to expand to.) You should find a file named .erlang.cookie. If you open this file with a text editor, you’ll see a long string. This is your automatically generated cookie. You can check this by running the following command from the shell on an Erlang node:
(b@mybox.home.net)1> auth:get_cookie(). 'CUYHQMJEJEZLUETUOWFH'The string returned should be the same one you see in the .erlang.cookie file. An Erlang node doesn’t allow traffic from other nodes unless they know the magic cookie. When a node starts, it reads the .erlang.cookie file if it exists and uses the string found there as its magic cookie. (If you edit the file and change the string to something else, and then restart the node and rerun the previous command, you should see that the modified cookie is used.) If the node doesn’t find a cookie file, it instead creates a new file containing a randomly generated string—that’s how the file got there in the first place. Try deleting the file and restarting the node: you should see the file appear again with a fresh random string.
By default, a node assumes that all other nodes it wants to talk to are using the same cookie as itself. When you start several nodes on a single computer, as you did earlier (using the same user account and home directory), all of them use the same cookie file, and so they’re allowed to communicate with each other. If you want nodes on two different machines to communicate, the easiest way is to copy the generated cookie file from one machine to the other, ensuring that they’re equal but still sufficiently hard to guess. Preferably, nobody except the owner should have read access to the cookie file.
Short names work as long as the nodes are on the same subnet.