An Approach to Balance Maintenance Costs and Electricity Consumption in Cloud Data Centers