您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

B 系列可突增虚拟机大小B-series burstable virtual machine sizes

B 系列 VM 非常适合于并非持续需要 CPU 完全性能的工作负荷,例如 Web 服务器、概念证明、小型数据库和开发生成环境。The B-series VMs are ideal for workloads that do not need the full performance of the CPU continuously, like web servers, proof of concepts, small databases and development build environments. 这些工作负荷通常具有可突增的性能要求。These workloads typically have burstable performance requirements. B 系列使你能够购买具有基准性能的 VM 大小,该大小可在使用小于其基准时产生信用额度。The B-series provides you with the ability to purchase a VM size with baseline performance that can build up credits when it is using less than its baseline. 如果 VM 具有累积信用额度,则当应用程序需要更高的 CPU 性能时,VM 可以使用最多100% 的 vCPU 在基准之上突发。When the VM has accumulated credits, the VM can burst above the baseline using up to 100% of the vCPU when your application requires higher CPU performance.

B 系列有以下 VM 大小:The B-series comes in the following VM sizes:

Azure 计算单元 (ACU) :不同 *Azure Compute Unit (ACU): Varies*
高级存储:受支持Premium Storage: Supported
高级存储缓存:不支持Premium Storage caching: Not Supported
实时迁移:支持Live Migration: Supported
内存保留更新:受支持Memory Preserving Updates: Supported
VM 生成支持:第1代和第2代VM Generation Support: Generation 1 and 2

* B 系列 Vm 是可突增的,因此 ACU 的数字会因工作负荷和核心使用而异。*B-series VMs are burstable and thus ACU numbers will vary depending on workloads and core usage.

大小Size vCPUvCPU 内存:GiBMemory: GiB 临时存储 (SSD) GiBTemp storage (SSD) GiB VM 的基本 CPU 性能Base CPU Perf of VM VM 的最大 CPU 性能Max CPU Perf of VM 初始信用额度Initial Credits 累积的额度/小时Credits banked/hour 最大累积积分Max Banked Credits 最大数据磁盘数Max data disks 最大缓存吞吐量和临时存储吞吐量:IOPS/MBpsMax cached and temp storage throughput: IOPS/MBps 最大非缓存磁盘吞吐量:IOPS/MBpsMax uncached disk throughput: IOPS/MBps 最大 NIC 数Max NICs
Standard_B1ls1Standard_B1ls1 11 0.50.5 44 5%5% 100%100% 3030 33 7272 22 200/10200/10 160/10160/10 22
Standard_B1sStandard_B1s 11 11 44 10%10% 100%100% 3030 66 144144 22 400/10400/10 320/10320/10 22
Standard_B1msStandard_B1ms 11 22 44 20%20% 100%100% 3030 1212 288288 22 800/10800/10 640/10640/10 22
Standard_B2sStandard_B2s 22 44 88 40%40% 200%200% 6060 2424 576576 44 1600/151600/15 1280/151280/15 33
Standard_B2msStandard_B2ms 22 88 1616 60%60% 200%200% 6060 3636 864864 44 2400/22.52400/22.5 1920/22.51920/22.5 33
Standard_B4msStandard_B4ms 44 1616 3232 90%90% 400%400% 120120 5454 12961296 88 3600/353600/35 2880/352880/35 44
Standard_B8msStandard_B8ms 88 3232 6464 135%135% 800%800% 240240 8181 19441944 1616 4320/504320/50 4320/504320/50 44
Standard_B12msStandard_B12ms 1212 4848 9696 202%202% 1200%1200% 360360 121121 29092909 1616 6480/756480/75 4320/504320/50 66
Standard_B16msStandard_B16ms 1616 6464 128128 270%270% 1600%1600% 480480 162162 38883888 3232 8640/1008640/100 4320/504320/50 88
Standard_B20msStandard_B20ms 2020 8080 160160 337%337% 2000%2000% 600600 203203 48604860 3232 10800/12510800/125 4320/504320/50 88

1 仅 Linux 支持 B1ls1 B1ls is supported only on Linux

工作负荷示例Workload example

考虑一下办公签入/签出应用程序。Consider an office check-in/out application. 该应用程序在营业时间需要 CPU 突发,但在休息时间不需要太多计算力。The application needs CPU bursts during business hours, but not a lot of computing power during off hours. 在此示例中,工作负荷要求使用 64GiB RAM 的 16vCPU 虚拟机才能有效工作。In this example, the workload requires a 16vCPU virtual machine with 64GiB of RAM to work efficiently.

下表显示每小时流量数据,而图表是该流量的视觉表示形式。The table shows the hourly traffic data and the chart is a visual representation of that traffic.

B16 特征:B16 characteristics:

最大 CPU 性能:16vCPU * 100% = 1600%Max CPU perf: 16vCPU * 100% = 1600%

基线:270%Baseline: 270%

每小时流量数据图表

方案Scenario 时间Time CPU 使用率 (%)CPU usage (%) 累积的积分1Credits accumulated1 可用积分Credits available
B16ms 部署B16ms Deployment 部署Deployment 部署Deployment 480(初始信用额度)480 (Initial Credits) 480480
无流量No traffic 0:000:00 00 162162 642642
无流量No traffic 1:001:00 00 162162 804804
无流量No traffic 2:002:00 00 162162 966966
无流量No traffic 3:003:00 00 162162 11281128
无流量No traffic 4:004:00 00 162162 12901290
无流量No traffic 5:005:00 00 162162 14521452
低流量Low Traffic 6:006:00 270270 00 14521452
来到办公室的员工(应用需要 80% vCPU)Employees come to office (app needs 80% vCPU) 7:007:00 12801280 -606-606 846846
继续来到办公室的员工(应用需要 80% vCPU)Employees continue coming to office (app needs 80% vCPU) 8:008:00 12801280 -606-606 240240
低流量Low Traffic 9:009:00 270270 00 240240
低流量Low Traffic 10:0010:00 100100 102102 342342
低流量Low Traffic 11:0011:00 5050 132132 474474
低流量Low Traffic 12:0012:00 100100 102102 576576
低流量Low Traffic 13:0013:00 100100 102102 678678
低流量Low Traffic 14:0014:00 5050 132132 810810
低流量Low Traffic 15:0015:00 100100 102102 912912
低流量Low Traffic 16:0016:00 100100 102102 10141014
签出的员工(应用需要 100% vCPU)Employees checking out (app needs 100% vCPU) 17:0017:00 16001600 -798-798 216216
低流量Low Traffic 18:0018:00 270270 00 216216
低流量Low Traffic 19:0019:00 270270 00 216216
低流量Low Traffic 20:0020:00 5050 132132 348348
低流量Low Traffic 21:0021:00 5050 132132 480480
无流量No traffic 22:0022:00 00 162162 642642
无流量No traffic 23:0023:00 00 162162 804804

1 累积的积分/在一小时中使用的积分等于:((Base CPU perf of VM - CPU Usage) / 100) * 60 minutes1 Credits accumulated/credits used in an hour is equivalent to: ((Base CPU perf of VM - CPU Usage) / 100) * 60 minutes.

对于具有16个个 vcpu 和 64 GiB 内存的 D16s_v3,每小时费率为 $0.936 个小时 (每月 $673.92) ; 对于带有16个 vcpu 和 64 GiB 内存的 B16ms,速度为每小时 $0.794 (每小时 $547.86 月) 。For a D16s_v3 which has 16 vCPUs and 64 GiB of memory the hourly rate is $0.936 per hour (monthly $673.92) and for B16ms with 16 vCPUs and 64 GiB memory the rate is $0.794 per hour (monthly $547.86). 这会节省15% 的费用! This results in 15% savings!

问与答Q & A

问:当我的信用额度用完时会发生什么情况?Q: What happens when my credits run out?

:当积分用完时,VM 会恢复到基线性能。A : When the credits are exhausted, the VM returns to the baseline performance.

问:如何从 VM 获得 135% 的基线性能?Q: How do you get 135% baseline performance from a VM?

:135% 在组成 VM 大小的8个 vCPU 之间共享。A : The 135% is shared amongst the 8 vCPU’s that make up the VM size. 例如,如果应用程序使用 8 个核心中的 4 个进行批处理,并且这 4 个 vCPU 中的每个都以 30% 的利用率运行,那么 VM CPU 性能的总额就等于 120%。For example, if your application uses 4 of the 8 cores working on batch processing and each of those 4 vCPU’s are running at 30% utilization the total amount of VM CPU performance would equal 120%. 这意味着 VM 将基于从基线性能起的 15% 增量来累积积分时间。Meaning that your VM would be building credit time based on the 15% delta from your baseline performance. 但它也意味着,如果有积分可用,则同一个 VM 可以使用所有 8 个 vCPU 的 100%,为该 VM 提供 800% 的最大 CPU 性能。But it also means that when you have credits available that same VM can use 100% of all 8 vCPU’s giving that VM a Max CPU performance of 800%.

问:如何监视积分余额和消耗情况?Q: How can I monitor my credit balance and consumption?

:使用 信用 指标可以查看 vm 的存款点数, 积分 指标显示 vm 已从银行消耗了多少 CPU 信用额度。A : The Credit metric allows you to view how many credits your VM have been banked and the ConsumedCredit metric will show how many CPU credits your VM has consumed from the bank. 你将能够从门户的指标窗格中查看这些指标,也可以编程方式通过 Azure Monitor API 查看这些指标。You will be able to view these metrics from the metrics pane in the portal or programmatically through the Azure Monitor APIs.

有关如何访问 Azure 指标数据的详细信息,请参阅 Microsoft Azure 中的指标概述For more information on how to access the metrics data for Azure, see Overview of metrics in Microsoft Azure.

问:积分如何累积和消耗?Q: How are credits accumulated and consumed?

:VM 累积和消耗率是这样设置的:完全在基本性能级别运行的 VM 既没有突增积分的净累积,也没有突增积分的净消耗。A : The VM accumulation and consumption rates are set such that a VM running at exactly its base performance level will have neither a net accumulation or consumption of bursting credits. 每当在基本性能级别下运行时,VM 的积分都会净增加,而每当 VM 的 CPU 利用率高于其基本性能级别时,VM 的积分都将净减少。A VM will have a net increase in credits whenever it is running below its base performance level and will have a net decrease in credits whenever the VM is utilizing the CPU more than its base performance level.

示例 :为小型时间和考勤数据库应用程序使用 B1ms 大小部署一个 VM。Example : I deploy a VM using the B1ms size for my small time and attendance database application. 此大小允许应用程序使用最多 20% 的 vCPU 作为基线,这是我每分钟可以使用或累积的 0.2 个积分。This size allows my application to use up to 20% of a vCPU as my baseline, which is 0.2 credits per minute I can use or bank.

应用程序在员工工作日(在 7:00-9:00 AM 和 4:00 - 6:00PM 之间)的开始和结束时间处于繁忙状态。My application is busy at the beginning and end of my employees work day, between 7:00-9:00 AM and 4:00 - 6:00PM. 在一天的其他 20 小时内,应用程序通常处于空闲状态,仅使用 10% 的 vCPU。During the other 20 hours of the day, my application is typically at idle, only using 10% of the vCPU. 对于非高峰小时,我每分钟获得 0.2 个积分,但每分钟仅消耗 0.l 个积分,因此我的 VM 将每小时累积 0.1 x 60 = 6 个积分。For the non-peak hours, I earn 0.2 credits per minute but only consume 0.l credits per minute, so my VM will bank 0.1 x 60 = 6 credits per hour. 对于非高峰的 20 小时,我将累积 120 个积分。For the 20 hours that I am off-peak, I will bank 120 credits.

在高峰小时内,应用程序的平均 vCPU 使用率为 60%,我仍每分钟获得 0.2 个积分,但我每分钟消耗 0.6 个积分,净成本为一分钟 0.4 个积分,或者每小时 0.4 x 60 = 24 个积分。During peak hours my application averages 60% vCPU utilization, I still earn 0.2 credits per minute but I consume 0.6 credits per minute, for a net cost of 0.4 credits a minute or 0.4 x 60 = 24 credits per hour. 我每天有 4 小时的高峰使用期,因此我的高峰使用期成本为 4 x 24 = 96 个积分。I have 4 hours per day of peak usage, so it costs 4 x 24 = 96 credits for my peak usage.

如果我用在非高峰时间获得的 120 个积分减去在高峰时间内使用的 96 个积分,我每天将累积可用于其他突发活动的 24 个积分。If I take the 120 credits I earned off-peak and subtract the 96 credits I used for my peak times, I bank an additional 24 credits per day that I can use for other bursts of activity.

问:如何计算累积的和使用的积分?Q: How can I calculate credits accumulated and used?

:可以使用以下公式:A : You can use the following formula:

(VM 的基础 CPU 性能 - CPU 使用率) / 100 = 累积的积分或每分钟使用量(Base CPU perf of VM - CPU Usage) / 100 = Credits bank or use per minute

例如,在上面的实例中,基线是 20%,如果使用 10% 的 CPU,则累积 (20%-10%)/100 = 0.1 个积分/分钟。e.g in above instance your baseline is 20% and if you use 10% of the CPU you are accumulating (20%-10%)/100 = 0.1 credit per minute.

问:B 系列是否支持高级存储数据磁盘?Q: Does the B-Series support Premium Storage data disks?

:B 系列大小支持高级存储数据磁盘。A : Yes, all B-Series sizes support Premium Storage data disks.

问:重新部署或停止/启动后,剩余信用额度为什么设置为 0?Q: Why is my remaining credit set to 0 after a redeploy or a stop/start?

:当 vm 为 "REDPLOYED" 并且 vm 移到另一个节点时,累计的信用额度将丢失。A : When a VM is “REDPLOYED” and the VM moves to another node, the accumulated credit is lost. 如果 VM 已停止/已启动,但仍保留在同一节点,VM 将保留累积的信用额度。If the VM is stopped/started, but remains on the same node, the VM retains the accumulated credit. 每当 VM 在节点上重新开始时,它都会获得一个初始信用额度,Standard_B8ms 为240。Whenever the VM starts fresh on a node, it gets an initial credit, for Standard_B8ms it is 240.

问:如果在 B1ls 上部署不受支持的 OS 映像,会发生什么情况?Q: What happens if I deploy an unsupported OS image on B1ls?

:B1ls 仅支持 Linux 映像,如果你部署任何其他 OS 映像,可能无法获得最佳的客户体验。A : B1ls only supports Linux images and if you deploy any another OS image you might not get the best customer experience.

其他大小和信息Other sizes and information

定价计算器:定价计算器Pricing Calculator: Pricing Calculator

有关磁盘类型的详细信息:磁盘类型More information on Disks Types : Disk Types

后续步骤Next steps

了解有关 Azure 计算单元 (ACU) 如何帮助跨 Azure SKU 比较计算性能的详细信息。Learn more about how Azure compute units (ACU) can help you compare compute performance across Azure SKUs.