Internal routing and autoscale

If I need to map different routes to different apps, I assume the “expected” thing to do is to run nginx as an app also and have it proxy to the various other apps. Question: how with this affect autoscaling? Since the configuration is based on number of connections coming through the public address, but with this setup all the traffic will come through the private network.

Autoscaling won’t know about your other apps, unfortunately. Until we make it work with custom metrics, it won’t be possible to automatically scale this ourselves.

In theory, you could use your own internal metrics to make API calls to us and scale each app accordingly.

Ok, so, with this kind of setup the autoscaler could scale up the nginx forwarder, but not the appservers?

Correct.

1 Like