简体   繁体   中英

Configure the embedded queue in the Seize block

the documentation of the Seize block says:

“The rich interface of Queue (ability to use priorities, timeouts, remove agents, etc.) is fully exposed by Seize.”

Where can I configure that queue? I need to configure that queue in order to choose the preferred agent by comparison as queue blocks allow:

queue block configuration

But I can't find that “rich interface” of the queue blocks in the interface of the size block. Also, I see that the queue blocks have great logs like the statistics_log. How can I add the queue of the size block in that log? (I already have ticked the “Force statistics collection” for that block but still doesn't shows in the statistics_log).

statistics_log without size block

Because I wasn't able to configure the size bock queue, I placed a queue before the size block, but the issue with that is that the queue of the size block is still active and the minimum capacity is one, so it alters the statistics of the queue block because is like having two queues as the image shows:

seize queue has min one unit

How can I turn off the queue of the size block? Thank you!

Best way is to put a Queue block before a Seize block. You cannot actually reduce the Seize`s queue capacity below 1. But setting it to 1 basically renders that queue irrelevant.

When you want to compute your actual queue statistics, you can add "1" to the upstream Queue block if seize.size()>1 (1 agent is seizing and 1 is in the build-in queue to seize next)

The help text isn't very good at explaining that;)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM