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

%3CLINGO-SUB%20id%3D%22lingo-sub-2081224%22%20slang%3D%22en-US%22%3EHow%20can%20i%20create%20a%20scale%20out%20for%20my%20app%20Service%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2081224%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20a%26nbsp%3B%20.net%20app%20service%20that%20I%20need%20to%20scale%20out%20.%20I%20have%20created%20a%20custom%20autoscale%20%2C%20with%20scale%20out%20if%20cpu%20is%20%26gt%3B%2050%20and%20scale%20in%20if%20cpu%20%26lt%3B%2025.%20I%20increase%20and%20decrease%20instances%20by%202%2C%20max%20is%205.%26nbsp%3B%3C%2FP%3E%3CP%3EI%20know%20the%20call%20to%20the%20api%20is%20quite%20time%20consuming.%20I%20though%20I%20would%20have%20seen%20the%20instances%20increase%20if%20i%20refresh%20the%20autoscale%20page%20in%20the%20portal%20%2C%20but%20i%20always%20see%20it%20as%201.%3C%2FP%3E%3CP%3ECouple%20of%20other%20questions%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlso%20do%20i%20need%20to%20create%20a%20Load%20Balancer%20%3F%3C%2FP%3E%3CP%3EDo%20the%20created%20instances%20share%20the%20same%20ip%20address%20%3F%20So%20if%20the%20app%20service%20has%20a%20particualr%20ip%20address%20do%20the%20created%20instances%20share%20it%20or%20do%20they%20get%20new%20ip%20addresses%20allocated.%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20there%20a%20step%20by%20step%20for%20creating%20a%20load%20balanced%20app%20service%20%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2081582%22%20slang%3D%22en-US%22%3ERe%3A%20How%20can%20i%20create%20a%20scale%20out%20for%20my%20app%20Service%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2081582%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F937105%22%20target%3D%22_blank%22%3E%40DebbieSipple%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAlthough%20your%20API%20might%20be%20time%20consuming%20it%20might%20not%20be%20consuming%20much%20CPU.%3C%2FP%3E%3CP%3EIf%20you%20go%20to%20the%20App%20Service%20Plan%20it%20will%20have%20the%20CPU%20that%20it%20is%20consuming%20so%20you%20can%20see.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20don't%20need%20a%20Load%20Balancer.%3CBR%20%2F%3EThe%20App%20Plan%20is%20the%20like%20the%20VM%20instance%20and%20the%20Web%20Apps%20are%20sites%20on%20IIS.%20Therefore%2C%20there%20is%20only%20one%20single%20IP%20address.%3CBR%20%2F%3E%3CBR%20%2F%3EI%20hope%20this%20helps%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2081639%22%20slang%3D%22en-US%22%3ERe%3A%20How%20can%20i%20create%20a%20scale%20out%20for%20my%20app%20Service%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2081639%22%20slang%3D%22en-US%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F906140%22%20target%3D%22_blank%22%3E%40cpateman%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20the%20reply.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOh%20ok%20so%20ip%20address%20is%20a%20single%20%2C%20great.%3C%2FP%3E%3CP%3EI%20will%20go%20to%20that%20App%20Plan%20and%20see%20the%20cpu%20that%20its%20consuming.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBut%20is%20there%20there%20a%20metric%20you%20can%20recommend%26nbsp%3B%20that%20i%20can%20use%20under%20%22Custom%20AutoScale%22%20to%20try%20and%20see%20if%20my%20scale%20out%20is%20actually%20working%20%2C%20maybe%20number%20of%20threads%20%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

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 ?

 

3 Replies

Hi@DebbieSipple 

 

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

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 ?

 

Hi, @DebbieSipple 

 

If you use something like Postman you can run a Collection Run by pushing something like 100 requests.

(https://learning.postman.com/docs/running-collections/intro-to-collection-runs/)

Then look at the App Service Plan metrics to see what the output is.

 

If for example that caused the CPU to go up to 25% then you can set your scale metric to 20% and rerun your test to see the result.