The invention relates to the field of
cloud storage and discloses a
cloud storage resource distribution method and
system. The
cloud storage resource distribution method includes the steps that when a request, for locking shared resources, of a
client side is received, a lock node of the shared resources and a
client side lock identity node are created in a synchronous storage space; if the lock node does not exist in the synchronous storage space, the lock node is created successfully, and the
client side exclusively uses the shared resources; if the lock node exists in the synchronous storage space already, the lock node is not created successfully, an own
client side identity node is created, and other
client side lock identity nodes which are created lately are registered and observed; when the shared resources are unlocked, corresponding lock node and the
client side lock identity node are deleted, and the client side which registers and observes the client side lock identity node is notified. Dead halt of distributed service nodes cannot lead to
deadlock, the problem of single-point fault is solved, high reliability is realized, the client side which registers and observes is notified timely when lock resources are released, each client side does not need to poll lock state,
system expenditure is saved, and distribution efficiency of the lock resources is improved.