morning mate, this is from how to brew by john palmer, hope it helps:
A foam will start to rise and form a smooth surface. This is good. If the foam suddenly billows over the side, this is a boil-over (Bad). If it looks like it is going to boil over, either lower the heat or spray the surface...