A consensus-based approach for selecting cloud plans