The invention discloses a resource allocation device and method based on cloud computing and belongs to the technical field of cloud computing. The resource allocation device comprises a baseplate, a shell, a top cover, a power source, a resource allocation system, a temporary controller, a transceiver, a data storer, a network transmitter and a cross connection circuit board, a liquid crystal display screen is arranged on the top cover, a supporting member is arranged on the baseplate, and a bottom cooling fan is arranged on each of the supporting member and the baseplate; a resource allocation system comprises a cloud resource monitoring module, a cloud resource health degree management module, a health degree warning module, a cloud resource scheduling module, a receiving module and a release module, an antiskid rubber pad is arranged at the bottom of the baseplate, and a cooling fan is arranged on the shell. Performance indexes of cloud computing resources are automatically monitored, current health degree of the cloud resources are calculated according to the performance indexes and a health degree model, automatic resource scheduling technology of cloud computing is utilized, intelligent allocation of the cloud resources is realized, and performance optimization of the cloud resources is guaranteed.