이 콘텐츠는 선택한 언어로 제공되지 않습니다.

11.2. Deploying a New Broker into a Fabric


Abstract

Deploying a broker into a fabric allows you to deploy multiple brokers from a single location and easily reuse large portions of the configuration.

Overview

Deploying a new broker instance into a fabric involves creating a new broker profile and deploying it to a Fabric Container. The fabric infrastructure simplifies these tasks by:
  • allowing you to do them from a remote location
  • providing tools that assist in automatically configuring fail over clusters, networks of brokers, and master/slave clusters.
  • allowing you to reuse parts of existing profiles to ensure consistency
  • providing tooling to do rolling updates
  • providing tooling to roll back changes when needed
From the Red Hat JBoss A-MQ console you can use the fabric:mq-create to create new broker profiles and new containers for the brokers. You can also use the management console to perform to create the profiles and assign them to containers.

Procedure

To deploy a new broker into a fabric:
  1. Create a template JBoss A-MQ XML configuration file in a location that is accessible to the container.
  2. In the command console, use the fabric:import command to upload the your XML configuration template to the Fabric Ensemble as shown in Example 11.1, “Uploading a Template to a Fabric Ensemble”.

    Example 11.1. Uploading a Template to a Fabric Ensemble

    JBossA-MQ:karaf@root> fabric:import -t /fabric/configs/versions/version/profiles/mq-base/configFile configFile
    version must match the version of the new profile you will create for the new broker.
  3. Use the fabric:mq-create command to create a profile for the new broker and assign it to a container.
    • To deploy the new broker into an existing container use the command shown in Example 11.2, “Creating a New Broker in an Existing Container”

      Example 11.2. Creating a New Broker in an Existing Container

      JBossA-MQ:karaf@root> fabric:mq-create --assign-container containerName --config configFile profileName
      This will create a new broker profile that inherits from the mq-base profile, but uses your XML configuration template, and deploy it to the specified container.
    • To deploy the new broker into an new container use the command shown in Example 11.3, “Creating a New Broker in a New Container”

      Example 11.3. Creating a New Broker in a New Container

      JBossA-MQ:karaf@root> fabric:mq-create --create-container containerName --config configFile profileName
      This will create a new broker profile that inherits from the mq-base profile, but uses your XML configuration template, create a new container named containerName, and deploy the broker profile to it.
      Note
      The new container will be a child of the container from which you execute the fabric:mq-create command.
    You can add network configuration settings to the profile as well.
  4. Use the fabric:profile-edit command shown in Example 11.4, “Editing a Broker Profile” to set the required properties.

    Example 11.4. Editing a Broker Profile

    JBossA-MQ:karaf@root> fabric:profile-edit --pid org.fusesource.mq.fabric.server-profileName/property=value profileName
    The properties that need to be set will depend on the properties you specified using property place holders in the template XML configuration and the broker's network settings.
Note
The management console makes this process easier by providing a Web-based UI.

More information

For more information on configuring brokers to work together see:
  • Using Networks of Brokers
  • Fault Tolerant Messaging
For more information on using the management console, see Using the Management Console.
Red Hat logoGithubRedditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

© 2024 Red Hat, Inc.