How early should I arrive at the airport for my flight?

It is recommended to arrive at least 2 hours before domestic flights and 3 hours before international flights.