Use two triggers in the Keda's ScaledObject
As mentioned in this article                                        Scale Deployments Based on HTTP...
Tags: keda, autoscaling, performance, productivity