I think the Chinese law is effective in this regard: in order to maintain any non-competition agreement, the company must continue to pay you a monthly compensation amount equal to 30% of your total monthly income when you were at the company. Whenever the payment stops, the non-competition agreement is automatically void.
If you ever see one of those contracts here, it's usually usually for a very reasonable situation and a well paid position.