I 've had a tickly upper throat cough with thick mucus production for 2 months. It sets off spasms of coughing that end with me vomiting the mucus up?

Sinusitis. With the symptoms that you describe i would be concerned that you have a bacterial sinus infection and would benefit from an antibiotic. A persistent cough could also be indicative of pertussis or whooping cough, but that doesn't usually involve a thick mucus like you are having. It may be time to see your doctor.