Distributed resource allocation method in horizontal dynamic cloud alliance

The invention discloses a distributed resource allocation method in a horizontal dynamic cloud alliance. The method includes that a local cloud provider sets an initialized tentative resource price according to demands of the local cloud provider for resources and sends the information of the initialized tentative resource price to various cooperative cloud providers, the cooperative cloud providers enter into a competing iterative stage, the cooperative cloud providers calculate the quantity of resources which can be provided by each cooperative cloud provider and send the information of the quantity of resources to the local cloud provider according to the resource price information sent by the local cloud provider and conditions of each cooperative cloud provider, the local cloud provider calculates the total quantity of resources supplied by the cooperative cloud providers according to a received feedback message and judges whether the calculated total quantity of supplied resources is equal to the quantity of resources required by the local cloud provider or not, if the calculated total quantity of supplied resources is equal to the quantity of resources required by the local cloud provider, the competing iterative stage is stepped out, and if the calculated total quantity of supplied resources is not equal to the quantity of resources required by the local cloud provider, the local cloud provider adjusts the resource price according to a certain rule.