Development of QoS-aware agents with reinforcement learning for autoscaling of microservices on the cloud