Reinforcement learning driven sustainable resource and power management for the MEC