Forum Discussion

DebbieSipple's avatar
DebbieSipple
Copper Contributor
Jan 21, 2021

How can i create a scale out for my app Service ?

I have a  .net app service that I need to scale out . I have created a custom autoscale , with scale out if cpu is > 50 and scale in if cpu < 25. I increase and decrease instances by 2, max is 5. 

I know the call to the api is quite time consuming. I though I would have seen the instances increase if i refresh the autoscale page in the portal , but i always see it as 1.

Couple of other questions:

 

Also do i need to create a Load Balancer ?

Do the created instances share the same ip address ? So if the app service has a particualr ip address do the created instances share it or do they get new ip addresses allocated.?

 

Is there a step by step for creating a load balanced app service ?

 

  • cpateman's avatar
    cpateman
    Copper Contributor

    HiDebbieSipple 

     

    Although your API might be time consuming it might not be consuming much CPU.

    If you go to the App Service Plan it will have the CPU that it is consuming so you can see.

     

    You don't need a Load Balancer.
    The App Plan is the like the VM instance and the Web Apps are sites on IIS. Therefore, there is only one single IP address.

    I hope this helps

    • DebbieSipple's avatar
      DebbieSipple
      Copper Contributor

      Hello cpateman

       

      Thanks for the reply.

       

      Oh ok so ip address is a single , great.

      I will go to that App Plan and see the cpu that its consuming.

       

       

      But is there there a metric you can recommend  that i can use under "Custom AutoScale" to try and see if my scale out is actually working , maybe number of threads ?

       

Resources