Text this: Preventing and Rectifying Cloud Quality of Service Violation Through Adaptive Resource Scaling and Replication