We have two search heads that are in big ip pool. One of them is master. When doing a license alert set up, it gets set up in both the search head and returns result from search heads randomly ending up giving no result some times when it queries the slave. how to avoid this?
If you have loadbalanced search heads they should be set up in a search head pool. This will ensure that scheduled searches run on one node in the pool.
See the documentation on search head pooling.