The invention discloses a distributed type dynamic cache expanding method and
system supporting load balancing, which belong to the technical field of
software. The method comprises steps of: 1) monitoring respective
resource utilization rate at regular intervals by each
cache server; 2) calculating respective weighing load value Li according to the current monitored
resource utilization rate, and sending the weighting load value Li to a cache clustering manager by each
cache server; 3) calculating current average load value of a
distributed cache system by the cache clustering manager according to the weighting load value Li, and executing expansion operation when the current average load value is higher than a threshold thremax; and executing shrink operation when the current average load value is lower than a set threshold thremin. The
system comprises the cache servers, a cache
client side and the cache clustering manager, wherein the cache servers are connected with the cache
client side and the cache clustering manager through the network. The invention ensures the uniform distribution of the network flow among the cache nodes, optimizes the
utilization rate of system resources, and solves the problems of ensuring
data consistency and continuous availability of services.