Weight gain

Sonya
So I am 26w 5d and I have already gained 27 lbs. I don't know how to control it and I've been gaining it pretty fast. I gained 5 lbs in like 2 1/2 weeks and I'm assuming that's not okay. I am getting tested for gestational diabetes in two weeks and I've been told that everyone on my dads side of the family has had it so I'm wondering if that could be why I'm gaining so much? Is anyone else having this problem? Is this a problem?