Use spies on any farm on a planet you will invade the turn before you invade. This will bring the population don to 6 billion (for non-home planets).

That's a really good tip.
I've been playing a really good game today where I've had to fight three defensive wars. I will usually just put a rally on the influence border between me and an opponent/potential opponent.
However, if they're in my space, I will try to put a centralized one in between my major ship producers, have my ships fleet up there and then send them out in waves.
Also, I will usually make up three different kinds of ship for each hull size I have available. (aside from tiny, if I make these at all I'll only make one kind)
They will usually be a slow but heavily armed and defended ship which I like to call a tank (usually for sitting on top of planets), a quite well armed ship with an engine or two for general fighting and finally a lightly armed but stupidly fast ship for intercepting transports or scrambling to planets that are about to be invaded.
For cargo hulls, I will make a fast transport, a faster and longer distance freighter, a fast constructor and a fast ship loaded up with sensors.
I will sometimes obsolete some of the older models of my ships depending on my industrial strength. (smaller ships are cheaper, so I may keep them around if there's a chance I need one fast)