Heartbeat groups resources into groups in the haresources file. Each resource in the group is then always started together on the same machine.
Heartbeat always starts resources from left to right in the group, and stops them in the reverse order - right to left.