A reinforcement learning-based load balancing algorithm for fog computing