1
0

topology.rst 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. =============
  2. Salt Topology
  3. =============
  4. Salt is based on a powerful, asynchronous, network topology using ZeroMQ. Many
  5. ZeroMQ systems are in place to enable communication. The central idea is to
  6. have the fastest communication possible.
  7. Servers
  8. =======
  9. The Salt Master runs 2 network services. First is the ZeroMQ PUB system. This
  10. service by default runs on port ``4505`` and can be configured via the
  11. ``publish_port`` option in the master configuration.
  12. Second is the ZeroMQ REP system. This is a separate interface used for all
  13. bi-directional communication with minions. By default this system binds to
  14. port ``4506`` and can be configured via the ``ret_port`` option in the master.
  15. PUB/SUB
  16. =======
  17. The commands sent out via the salt client are broadcast out to the minions via
  18. ZeroMQ PUB/SUB. This is done by allowing the minions to maintain a connection
  19. back to the Salt Master and then all connections are informed to download the
  20. command data at once. The command data is kept extremely small (usually less
  21. than 1K) so it is not a burden on the network.
  22. Return
  23. ======
  24. The PUB/SUB system is a one way communication, so once a publish is sent out
  25. the PUB interface on the master has no further communication with the minion.
  26. The minion, after running the command, then sends the command's return data
  27. back to the master via the ``ret_port``.