Service discovery is a way to update HAProxy automatically with the IP addresses of servers in the network. HAProxy can watch DNS records for changes, and then add or remove servers from its configuration to match.