Selection method of reducer in different environments