cluster_service_discovery is deprecated, but still used in some places. originally written by Infochimps.