With the development of network physical system, the distributed resource allocation strategy combined with physical system has been paid more and more attention, and many valuable research results have been obtained. This paper mainly studies the resource allocation of distributed system based on self-organizing clustering algorithm. This paper first introduces K-means clustering algorithm, and then proposes an intelligent scheduling algorithm based on K-means clustering algorithm. Through the simulation experiment, we can know that the resource allocation algorithm proposed in this paper is effective.