Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-8307

[Broker-J] Document the virtualHostInitialConfiguration

    Details

      Description

      There is no document of the virtualHostInitialConfiguration item in the JSON initial configuration file.

      This is important for any automated configuration of the Qpid broker - for instance a chef recipe configuration of a virtual host that wants a "Node Creation Policy" defined at startup.

      In response to a question on Qpid-users (reference http://qpid.2158936.n2.nabble.com/Qpid-Broker-J-Configuring-nodeAutoCreationPolicies-for-an-BDB-HA-cluster-from-json-td7683530.html )

      On 5/1/19, 3:09 PM, "Oleksandr Rudyy" <orudyy@gmail.com> wrote:

           Hi Tom,

          The node auto creation policies can be set on virtual host only, as it is

          an attribute of virtual host. Adding policies into virtual host node

          configuration does not have any effect. The settings are simply ignored and

          removed on configuration update.

          If you need to have the policies in broker initial configuration, you can

          add them into virtual host inital configuration. Though, at the moment,

          virtualHostInitialConfigurati can only have string values. Thus, you need

          to stringify your policy json.

          For example,

          ...

          "virtualHostInitialConfiguration":

          "{\"type\":\"BDB_HA\",\"context\":{},\"name\":\"$parent.name\",\"nodeAutoCreationPolicies\":

          [\{\"pattern\":\"*\",\"nodeType\":\"Queue\" ... }]}"

          ...

         Kind Regards,

          Alex

        Attachments

          Activity

            People

            • Assignee:
              orudyy Alex Rudyy
              Reporter:
              tomj Tom Jordahl
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: