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

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

问题描述

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

我目前正在将消耗计划用于处理来自服务总线队列的消息的函数.每条消息大约需要 5 秒来处理,通常每秒有数百条消息需要处理.

我只是担心在某个时候我会开始在没有预先警告的情况下看到内存不足异常,尽管在计费之前了解成本也会对我有所帮助.

我浏览了门户网站,我发现的只是成功计数和脉搏(它似乎从未报告我的函数的任何数据.虽然绘制了图形 - 它们总是空的.)

还有这篇博文:

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

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

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.)

There is also this blog post:

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

..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!

解决方案

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天全站免登陆