The embodiment of the application discloses a
data migration method based on a distributed lock and a related device, at least relates to cloud technology and the like, reduces the
data migration times of service data between service nodes, improves the stability of
server load, and reduces the
delay of service migration. The method comprises the following steps: obtaining an access request sent by a service using device, and obtaining first lock information based on the access request, wherein the first lock information comprises a first oscillation protection time, and the first oscillation protection time is used to indicate the effective protection time of the distributed lock when the second service node accesses the service data while holding the first lock information; when the current
running time is not less than the first oscillation protection time, receiving service data sent by a storage service node, and then sending an access response message to the service using device, wherein the access response message comprises the service data, and the access response message is used to instruct the service using device to perform an access operation on the service data.