The core task of the stream server is to forward the queries coming from consumers (clients) to producers (hosts). The views.find_active_channel method defines the logic of searching through active producer channels and returning the best choice to forward consumer query.
We must test for picking available channels (that producers have recently connected to/that are currently active and share clusters with the users).