The invention discloses a session keeping method and device in a load balancing
system, equipment and a medium, and relates to the technical field of
cloud computing, and the method comprises the steps: receiving and analyzing a
client request to obtain a quintuple corresponding to the
client request, and querying whether corresponding cache data exists in a
shared memory cache; if not, acquiring a hash value corresponding to the
client request based on a target hash
algorithm, and acquiring a first target index value from a preset annular hash space based on the hash value; determining a first target
upstream server corresponding to the client request according to the first target index value; whether the first target
upstream server is abnormal or not is judged, if the first target
upstream server is abnormal, a second target index value is searched backwards in sequence based on the first target index value, and the client request is sent to the corresponding second target upstream
server. The index values are randomly distributed in the annular hash space, so that the problem of overlarge pressure of a
single server is avoided.