The devices used for information and communication purpose consume an increasing amount of energy. As a result, the datacenters consume a lot of energy. Due to the expanding use of cloud services, there is considerable interest in reducing the energy consumption of datacenters. Effective resource utilization techniques and reduction in energy consumption are two crucial metrics in today's cloud computing environment. Many issues come along with contradicting objectives, viz., minimizing energy consumption raising the expenses of service supply. Autoscaling features of the cloud can bundle these issues. The major hurdle for effective resource scalability is the lack of proper management of energy supply to devices of servers in the datacenter. The main objective of the article is to supply energy to devices as per the allocated job-size on the interaction of complex energy, to increase the energy utilization of servers. Also, using renewable energy (RE) to supplement the operational energy of the cloud datacenter.In this direction, the article presents a predator-prey-based mathematical model for energy scaling that leverages the accessibility of RE source to decrease the high energy demands of the datacenter. It is formalized using ecological concepts of metabolism and allometric scaling. An allometric energy scaling (AES) algorithm is presented. The performance and evaluation of the proposed algorithm are implemented with the Cloudsim 4.0 simulator. The results are compared with the HEFT algorithm, and AES algorithm gives slightly better results in the case of optimum energy consumption and processing cost compared with the HEFT algorithm.