simple-http.yaml
file:
num_replicas
to 0 in order to enable scale-to-zero. When there are no replicas running, and you try
to make a request to the service, you will get back a response from the load balancer with a message that says ‘No ready replicas’.
If you are enabling scale-to-zero, you should add error-handling logic in your code to handle the case when there are no ready replicas.
As soon as the first request is made when there are zero replicas, a replica will be immediately provisioned. The time it takes for the replica
to be ready depends largely on the boot time of your cloud instances, as well as the time it takes to run your setup/run scripts.
https://services.komodo.io/service-id
You can use this endpoint as you would any other URL. This points to our load balancer, which will redirect you to one of the replicas,
so if you’re using curl, make sure to specify the -L
flag to follow redirects: