[英]How to increase Azure Service Bus Queue Size?
I am trying to create a windows azure service bus queue with a maximum size of 20GB. 我正在尝试创建最大大小为20GB的Windows Azure服务总线队列。
My understanding is that the maximum allowed size is 80GB, but I am not able to create a queue larger than 5GB if I use the "Custom Create" button or 16GB if I use the "Quick Create" button on Azure's portal. 我的理解是,允许的最大大小为80GB,但是如果我使用“自定义创建”按钮,则无法创建大于5GB的队列,如果我使用Azure门户上的“快速创建”按钮,则无法创建大于16GB的队列。
I've also tried to do this pragmatically as follow: 我也尝试过务实地做到这一点,如下所示:
if (!namespaceManager.QueueExists(queueName))
{
var queueDescription = new QueueDescription(queueName)
{
MaxSizeInMegabytes = 20480,
DefaultMessageTimeToLive = new TimeSpan(0, 1, 0, 0)
};
namespaceManager.CreateQueue(queueDescription);
}
But the following exception was thrown: 但是引发了以下异常:
The remote server returned an error: (400) Bad Request. SubCode=40000.
The specified value 20480 is invalid.
The property MaxSizeInMegabytes, must be one of the following values:
1024;2048;3072;4096;5120
Any ideas on how to create a service bus queue with a max size of 20GB? 关于如何创建最大大小为20GB的服务总线队列的任何想法?
It is pretty clear from the error message what are the possible options for a Service Bus Queue. 从错误消息中可以很明显地看出,服务总线队列有哪些可能的选项。
It can also clearly be seen from the official documentation on Service Bus Quotas and Limits . 从服务总线配额和限制的官方文档中也可以清楚地看到它。 Besides, the size cannot be changed once the queue has been created! 此外,创建队列后就无法更改大小!
UPDATE UPDATE
After technically proving, creating a partitioned queue with Max Size of 5G gives actually a Queue with max size of 80G. 经过技术验证后,创建最大大小为5G的分区队列实际上得到的最大大小为80G的队列。 Undocumented and unexpected, but that is the result: 没有记录和意外,但这是结果:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.