If this is a constand problem for your pet, your vet can teach you to express the glands yourself. If your pet is getting frequent infection (different from being overly full) then your vet can remove the glands completely.
You can somewhat help this problem by feeding your dog a fiber filled diet. This will help to express the glands in a natural way.
You can also help control this by keeping your dog at a healthy weight.
Let me know if you still have questions.