Counteracting this force is the weight of the piston and the force of a compression spring which is compressed by the piston rising; because the spring is operating over a very small part of its possible range of extension, the spring force approximates to a constant force.