A Distributed Reinforcement Learning Approach for Energy and Congestion-Aware Edge Networks