You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Tomas Vavricka (Jira)" <ji...@apache.org> on 2022/11/11 12:23:00 UTC

[jira] [Closed] (QPID-8558) [Broker-J] Enhancement of sole connection enforcement policy evaluation

     [ https://issues.apache.org/jira/browse/QPID-8558?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tomas Vavricka closed QPID-8558.
--------------------------------

> [Broker-J] Enhancement of sole connection enforcement policy evaluation
> -----------------------------------------------------------------------
>
>                 Key: QPID-8558
>                 URL: https://issues.apache.org/jira/browse/QPID-8558
>             Project: Qpid
>          Issue Type: Improvement
>          Components: Broker-J
>            Reporter: Marek Laca
>            Priority: Minor
>              Labels: Broker, Java
>             Fix For: qpid-java-broker-9.0.0
>
>
> Java broker implements the sole connection enforcement policy extension of the AMQP 1.0 protocol. The extension ensures that the remote container can open only one active connection to the broker at the same time.
> The implementation is ineffective. When a new connection is opened the IO-thread transfer the check to the virtual host configuration thread. The configuration thread iterates throw all registered connections and checks their remote container id and the policy. This technique ensures exclusive access to the collection of the connections and nothing can be added or removed during the check. Hence, the configuration thread works as a master thread and every IO-thread has to wait till it receives a permission to go. The waiting time increases with the number of open connections. The processing of the messages is degraded, even when the user does not utilize the sole connection enforcement policy.
> The policy can be implemented as a connection limiter and there is no need for a global lock or the usage of configuration thread. The limiter can check the connections from different remote containers in parallel. If user does not utilize the sole connection enforcement policy then every connection will have a unique container id and the processing of a new incoming connection will not be block by another connections.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org