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

13.2. Creating a New Fabric


Revision History
12/04/12
Clarified what happens when a fabric is created.
12/04/12
Added note about removing the default broker from the original container.

Overview

If there is no existing fabric for a broker to join, you will need to create one from the standalone broker. There are two options for how to do this:
  • The recommended approach is to create the fabric such that the broker is converted into a managed Fabric Server. The container will revert to being a vanilla broker, so you will need to either create a new broker with the desired configuration or deploy an updated broker profile into the Fabric Server.
    Ensuring that the new broker is configured properly requires creating a broker profile with the proper settings. This can be done once the new fabric is created using the fabric:mq-create command. The fabric:mq-create command can also create the new broker.
  • The alternative approach is to create the fabric such that the broker becomes a non-managed Fabric Server. The broker becomes a Fabric Server that is fully capable of being part of a fabric's ensemble. However, the broker retains control over its own configuration. It will continue to be managed as if it were a standalone broker and will not respond to fabric commands that attempt to alter its configuration.

Becoming a new fabric

Several things happen when a fabric is created from a standalone broker:
  1. The broker installs the required Fuse Fabric bundles to become a Fabric Server.
  2. The Fabric Server starts up the ensemble process.
  3. A new ensemble containing an empty configuration registry and a runtime registry with a single entry for the Fabric Server is created.
  4. The Fabric Server delegates control over its configuration to the ensemble.
    Note
    If the fabric is created with a non-managed server, this step is skipped.
  5. The ensemble associates the profiles required to be a Fabric Server with the container.
  6. Unless the --no-import flag is used, the ensemble imports a set of profiles.
    • If the --import-dir flag is used, the profiles are imported from the specified location.
    • If no location is specified the default set of profiles is imported from InstallDir/fabric/import.
  7. The ensemble installs the default mq profile to the container.
    This starts a default broker instance in the container.
    Note
    If the fabric is created with a non-managed server, this step is skipped.
  8. The ensemble waits for commands to update the fabric.

Procedure

To create a new fabric from a standalone broker:
  1. Delete the standalone broker configuration(s) from your installation's /etc folder.
    The configuration is stored in /etc/org.fusesource.mq.fabric.server-configName.cfg.
  2. Connect to the standalone broker's command console.
  3. Remove any brokers running in the container.
    1. Use config:list to locate any PIDs using the form org.fusesource.mq.fabric.server.ID.
    2. Use config:delete to delete all of the PIDs using the form org.fusesource.mq.fabric.server.ID.
  4. Enter the following command:
    JBossA-MQ:karaf@root> fabric:create
    Note
    If you want to import a predefined set of profiles, use the -p import-dir option to specify the set of profiles to import.
  5. Add a new broker to the fabric as described in Section 11.2, “Deploying a New Broker into a Fabric”.
Red Hat logoGithubRedditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

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

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

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

Red Hat 소개

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

© 2024 Red Hat, Inc.