0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

jbossのserver-groupとprofileの関係について

Last updated at Posted at 2025-09-14

domain構成の場合

1. domain.shで起動させる場合

ドメインコントローラでないホスト(ホストコントローラー)が
起動時に読み込むスクリプト「host-slave.xml」の場合

/opt/jboss/EAP-7.4.0/bin/domain.sh --host-config=host-slave.xml -Djboss.domain.master.address=192.168.2.166 -Djboss.bind.address=192.168.2.167

上記の起動コマンドの意味は

domain.shがconfig何を使用するの?「host-slave.xml」使うよ

2. host-slave.xmlを読み込むとどうなる

「host-slave.xml」内にserver-groupあるのが定義させている。

  <servers>
        <server name="server-one" group="main-server-group"/>
        <server name="server-two" group="other-server-group">
            <socket-bindings port-offset="150"/>
        </server>
</servers>

だからデフォルトの「server-one」「server-two」が、起動する

ちなみに「server-one」「server-two」のプロファイルってどこで指定しているの?

回答

それはマスター側の以下のファイルに記載あり

3.指定先はまさかのドメインコントローラ側の「domain.xml」

cat /opt/jboss/EAP-7.4.0/domain/configuration/domain.xml

  <server-groups>
        <server-group name="main-server-group" profile="full">
            <jvm name="default">
                <heap size="1000m" max-size="1000m"/>
            </jvm>
            <socket-binding-group ref="full-sockets"/>
        </server-group>
        <server-group name="other-server-group" profile="full-ha">
            <jvm name="default">
                <heap size="1000m" max-size="1000m"/>
            </jvm>
            <socket-binding-group ref="full-ha-sockets"/>
        </server-group>
    </server-groups>

次回の検証テーマ

GUIで変更したらどのファイルが変更されるのか調査

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?