Hi all, I set up a new app on Fly.io with autoscaling enabled but I am using Cloudflare. How would you go about testing autoscaling in this scenario? Thank you
Do you have a staging set-up in Fly/CloudFlare that has the same config? If so, perhaps you just need some load-testing software (e.g. Apache Bench) to see if your scaling happens at the trigger points you’ve defined in your TOML config. You probably want to point this to a nonprod stack, unless you like chaos engineering ![]()
Hi, I don’t have a separate staging environment and the app hasn’t been launched yet, so I could test with the single environment I have for now. The problem is that with the app behind Cloudflare, any attempt to do load testing will be considered bot traffic by Cloudflare, so most of the requests get blocked and the autoscaling doesn’t kick in.
Ah, gotcha. Does CF have an allow-list feature, so you can add your load-test source IP?
yes I think I can allowlist IPs in the WAF. I could try that, thanks!
Great stuff. The other thing you could do is to temporarily set up a subdomain to point to your app directly, without CF. You may need to expose it with the Fly proxy. This would allow you to see how the auto-scaling behaves without having to reconfigure CF.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.