7

Actually I am getting System.OutOfMemoryException for blob trigger azure function.Do i need to scale up or Scale out App Service Plan to fix this problem.

What is the difference between these two?

enter image description here

5 Answers 5

12

For your original question, if your function is running on consumption plan, Scale up App Service Plan of your Azure service.The plan you already have less Memory and if you have multiple functions running in App Service Plan then scale out.

From the docs,

Scale up means :

A scale up operation is the Azure Web Sites cloud equivalent of moving your non-cloud web site to a bigger physical server. So, scale up operations are useful to consider when your site is hitting a quota, signaling that you are outgrowing your existing mode or options. In addition, scaling up can be done on virtually any site without worrying about the implications of multi-instances data consistency. Two examples of scale up operations in Windows Azure Web Sites are:

Scale Out means:

A scale out operation is the equivalent of creating multiple copies of your web site and adding a load balancer to distribute the demand between them. When you scale out a web site in Windows Azure Web Sites there is no need to configure load balancing separately since this is already provided by the platform.

Digram depicting the difference between the two :

enter image description here

5
  • but i my case, as I am getting System.OutOfMemoryException for blob trigger. Do I need to ScaleUp or Scale Out? Aug 5, 2020 at 9:18
  • try changing your platform target to x64 Aug 5, 2020 at 9:19
  • how can i do this, could you please share any article for this? Aug 5, 2020 at 9:20
  • 1
    Helpful diagrams, but the Scale Up diagram shows the situation before and after scaling, wheras the Scale Out diagram only shows the situation after.
    – Daan
    Jun 28 at 9:50
7

You need to scale up your app service plan.

"Scale up" means upgrade the capacity of the host where the app is hosted. Ex: Increase the memory from 1.75GB to 3.5GB.

"Scale out" means upgrade the capacity of the app by increasing the number of host instances.

1

In Short Scale Up is vertical scaling, where you add more resources to increase capacity of the underlaying Hardware/Infrastructure.

Where, Scale Out is horizontal scaling, where you add more instance of the same app to process/handle request simultaneously.

1

You scale up the HARDWARE or scale out INSTANCES

Scale up or out

0

If you choose Scale Out, you will get more VMs and balance your workloads to those VMs. If you choose Scale Up, your VM will get more punch to handle current workloads. More VMs or more power to your current VM

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.