Mucus plug or increased discharge?

Ari
Can the mucus plug come out periodically over time in bits, like an increase in discharge or does it come out all at once? Are there times when it doesn't come out at all until you're in labour?