Skip to main content

JEAP 6 - Domain Mode 啟動

這還不是Cluster, 因為我想了一下講法, 如果一次寫太多,一來是太多東西要講了,我無從下筆。二來文章太長反倒不好找, 所以就先從 Domain 開始寫起!
如果你還不知道Domain 與 Standalone 的區隔,請先從先前的文章開始看起。

=====================================================

同先前的文章所講,J老闆負責Domain 的位置,理所當然地就是從
JB_INSTALL_PATH/domain 裡面去下手囉!


進入之後,要先看一下最重要個兩個XML 設定檔案

  1. Domain Configuration   
  2. Host Configuration

Domain Configuration
修改的位置在domain.xml, 整個Domain 共用的設定都放在這裡,它主要是多個profile的組合。每個Profile會定義subsystem的設定。Subsystem 就是每個server instance 重要功能。
(這樣講好像繞口令,稍微來看一下XML)



至於各Profile 裡面的subsystem 設定,等以後有機會再寫吧。

Host Configuration
修改的位置在host.xml, 真正去定義跑在那台機器上的設定檔案。

接下來,要來真正啓動我們的Domain Server 了!
預設的方式如下,有兩台機器,每個機器各自起動 2-3個server, 由 77 (藍色) 那一臺當做為Domain Controller!





















1. 決定其中一台Host為Domain controller 
在啓動前,與Standalone 一樣,我們需要建立一個新的使用者!
JB_INSTALL_PATH/bin 下執行 add-user.sh
這次請選擇 a).
輸入 username 與 password



請記得最下面的 <secret value="">


2. 指定Server Group
我們這次有 3 個group, 每個都使用Profile "default"



3. 在Host one 設定每個Server 的單一設定與它所屬的Group



4.不要忘記把IP位置設定在interface 的位置


以上第一Host 的設定就完成了!可以試著啓動看看!



可以看到剛剛設定的三台server 都有啟動了!

5. 設定第二台的Host, 告訴它Domain Controller 的位置, 還有他的host name.
記得剛剛加使用者的加密密碼<secret value="">嗎?把它放在Security realm的裡面!
Domain Controller 設定時還要放上登入的user name喔! 


6. 在Host two 設定每個Server 的單一設定與它所屬的Group


7.這裡也一樣不要忘記把IP位置設定在interface 的位置

這樣就可以啓動第二台了!

可以看到剛剛設定的二台server 都有啟動了
也可以到 Admin Console 去看一下介面!

第一台 Host

台 Host

到各host裡面JB_INSTALL_PATH/domain/servers 下也會看到個server 的 working space!

以上為Domain 啓動Server 的方式!
Deploy 程式,請用Web-console 或是 cli deploy喔!
以後有空再寫!







Comments

Weber Tsao said…
Hi Christina,

我是Thinkpower的Weber,也就是那個一啟動domain mode就掛掉的苦主。

後來我發現問題了,在於我安裝的jdk版本的問題。

因為我安裝的是jdk7,所以master啟動的時候沒問題,下netstat指令去看也有看到port 9999在listening。

但是啟node2的時候就會出現JBAS010900: Could not connect to remote domain controller的錯誤!

似乎是jdk7在network上有什麼影響,我換成jdk6之後就沒有任何問題了。node2 and node3都順利的啟動成功。

提供給您參考一下,順便自己也記個memo。

今天辛苦了,謝謝。

Weber
Christina Lin said…
Hi Weber,

謝謝你的測試,這個應該是Java 7 在Mac 上的bug 哩~

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7159361

除非Java 版本更新,不然有個work around, 請你在JVM 的啓動參數,加上下面這個試試看囉~

-Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.KQueueSelectorProvider

Popular posts from this blog

Red Hat JBoss Fuse - Getting Started with Fuse Integration Service 2.0 Tech preview

I just realized that I did not do a getting started for Fuse Integration Service 2.0 Tech preview before I did the pipeline demo, thanks for those of you who reminded me! :)

To get started with FIS 2.0, for people who has just getting to know the technology, here is how I interpret it. Basically, it's divide into two aspect,

1. Integration development, FIS uses Apache Camel as the core technology that creates, orchestrate, compose microservices into a super lightweight thin integration layer, and become the API provider and service orchestrator through exposing RESTful or messaging service endpoints. And you can choose to either package and run it with Spring-Boot or Karaf.


2. Application Deployment and Management, FIS takes advantages of OpenShift platform, and allows you to separately deploy the micro-integration service among distributed environment, at the same time takes care of the failover, high availability, load balancing and service lookup problem for you.


So, now we know …

Red Hat JBoss Fuse/A-MQ - Fuse and A-MQ Version 6.3 GA is released!

Fuse and A-MQ 6.3 GA has just went out. Maybe, you would think this is just only a minor version release why should I care? Hold your thoughts on that! Because they have done a lot of improvements and also added many new features into this release.

Besides various bug fixes and making sure Fuse Fabric is much more stable. There are two major change in this version update:

New Tooling in JBoss Developer Studio (JBDS) 9.1 GA. Newer Apache Camel version – Camel v2.17. I was really impressed by the work put in to make developing Camel application much simpler. First is the installation of tooling itself. Now it has a all-in-one installer so you don't need to worry about which plugins you need to check. See the videos below to see the new "Getting Started" of Fuse 6.3.



And If you notice from the above video, the presentation of camel route in JBDS has also updated. It fixed some of the miss representation of logic and making it easier to read.

Old Camel Route
New Camel Route
On …

Fuse Integration Service - Setup JBDS and create first quickstart application

Before we go and start creating our first application, I want to show you how to setup your JBoss Developer Studio, create a small application from the quickstart example and then running it on Fuse Integration Service.

I am using JBoss Developer Studio version 9, you can find it here.
After download the

jboss-devstudio-9.0.0.GA-installer-eap.jar
double-click it, and start installing with default values.

After successful installation, we will need install the plugins for Fuse, on JBoss Central view, select software update, select enable early access.


And select JBoss Fuse Development for the plugin,


Click on install, and we are all set to go!

First thing first, we want to create a Fuse project to deploy on the base of Fuse Integration Service, which is OpenShift. If you have not installed it, please go back to my previous post for instructions. So on your JBDS, right click and start creating the project. Select new, maven project, if you have installed the plugin correctly, you should …