Thermal and airflow optimization of server rooms