How to stop message 'The maximum amount of instances for gateway was reached. Only 1 instance(s) are allowed for the Developer SKU.'

Andrew Unsworth 25 Reputation points
2023-08-23T10:24:00.5533333+00:00

We are running a developer sku instance of the Self Hosted gateway in kubenetes and we constantly get this error message in the logs

Message: The maximum amount of instances for gateway. Only 1 instance(s) are allowed for the Developer SKU.

I can't find any way to stop this message

Can anybody help ?

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,070 questions
{count} votes

Accepted answer
  1. JananiRamesh-MSFT 26,386 Reputation points
    2023-08-23T15:34:03.83+00:00

    Hi Andrew Unsworth Thanks for reaching out. Are you trying to add more instances to your SHG? The error message indicates that you are trying to deploy more than one instance of the Azure APIM Self-Hosted Gateway in the Developer SKU.

    The Developer SKU only allows one instance of the gateway to be deployed.

    Reference: https://azure.microsoft.com/en-us/pricing/details/api-management/

    If you haven't try adding more instances but still seeing this error message, it is possible that there is a configuration issue with your deployment.

    Do you have multiple pods running on the Kubernetes cluster? If yes, you need to reduce the no of pods to 1. Each pod will create new instance and as mentioned before Developer SKU only allows one instance of the gateway to be deployed.

    1. Make sure that you have only one deployment of the gateway running in your Kubernetes cluster. You can use the kubectl get deployments command to check the number of deployments.
    2. Make sure that you have only one pod running the gateway. You can use the kubectl get pods command to check the number of pods.
    3. Check the configuration of your deployment to make sure that you are not specifying more than one replica or pod for the gateway.

    let us know if you have further query or issue remains.

    Please "upvote/accept" if the answer is helpful so that it can help others in the community.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.