Azure Functions内存/消耗单位使用量 [英] Azure Functions memory / consumption unit usage

查看:112
本文介绍了Azure Functions内存/消耗单位使用量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以查看内存使用情况/您当前/历史上用于Azure函数的消耗量单位?

Is it possible to view memory usage / how many consumption units you are presently/historically using for Azure Functions?

我当前正在将消耗计划用于一个功能,该功能处理来自服务总线队列的消息.每条消息大约需要5秒钟的处理时间,通常每秒要处理数百条消息.

I'm currently using the consumption plan for a function which handles messages from a service bus queue. Each message takes around 5 seconds to process and there are usually several hundred messages / second to be handled.

我的担心仅仅是,在某个时候我会开始看到内存不足的异常而不会发出警告,尽管这对我在开票之前先了解一下成本的想法也会有所帮助.

My fear is simply that at some point I will starting seeing outofmemoryexceptions with no forewarning, though it would also be helpful for me to get an idea of costing before being billed.

我浏览了门户网站,发现的只是成功次数和脉搏(似乎从未报告过我的功能的任何数据.尽管绘制了图表-它们始终为空.)

I've looked through the portal and all I've found is the success count and pulse (which never seems to report any data for my function. Though the graphs are drawn - they are always empty.)

也有此博客文章:

https://blogs .msdn.microsoft.com/appserviceteam/2016/11/15/making-azure-functions-more-serverless/

..本质上说,您不再需要指定存储容量上限,只要您的使用量在1.5GB& amp;之内即可.您的处理时间不到5分钟,那么生活就很好了.知道我有多少房间会让我放心!

..which essentially says that you do not need to specify your memory cap anymore and providing your usage is within 1.5GB & your processing is under the 5 minute timeout then life is good. Knowing how much room I have would be reassuring though!

推荐答案

您可以在Azure门户中使用Monitor -> Metrics视图:

You can use the Monitor -> Metrics view in the Azure Portal:

有关此主题的更多信息,请参见此功能费用/结算常见问题解答.

For more information on this topic see this functions cost/billing FAQ.

这篇关于Azure Functions内存/消耗单位使用量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆