Domain Architecture

WLS/Admin 2013. 8. 20. 11:30

• Domain
 웹로직에서 구분하는 가장 큰 논리적인 집합, 기본 관리단위
 업무 / 조직 / 기능 별로 도메인을 구성할 수 있음
• Server
 JVM 상에 실행되어 지는 하나의 인스턴스 (Admin Server / Managed Server)
• Cluster
 여러개의 웹로직 인스턴스를 묶어 하나의 서버개념으로 구성 할 수 있게 해주는 단위
 반드시 동일 도메인 내에서만 클러스터링 가능

 

 Domain

 Admin Server : 2개도 아니고 하나가 반드시 존재. 관리만한다.

 Managed Server : 여러개의 Magement 서버가 존재할수 있고 Admin서버가 관리한다. 실제 일을 한다.

 Application -> managed server 위에 올라감

 

* Domain 당 Admin Server 1개
** A: Admin Server
*** M : Managed Server

 

 

 

 

 

 

순서

1. ADMIN 서버가 떠야한다.

2. ADMIN 서버가 뜨면 MANAGED서버가 뜨는대 필요한 정보들을 ADMIN 서버에 저장한다.

   ADMIN 서버에 있는 정보를 가지고 MANAGED 서버가 구동된다. 클러스터일 경우 정보를 갖오면서 클러스터링

  까지 된다.

3. ERROR발생시 ADMIN서버를 통해서 DOMAIN서버에 기록된다.

 

• Domain configuration
 On the file system by a set of XML configuration files, including config.xml
 At run time by a hierarchy of in-memory JMX objects

  죽어있을때 XML파일을 건드리면되고 MANAGEMENT 서버가 하나라도 살아 있을경우 JMX OBJECTS를 이용한다

• When you activate change
 Each server determines whether is can accept the change.
 Then, if all servers are able to accept the change, they update their working configuration hierarchy and the

    change is completed. Otherwise, the pending changes are rolled back and nothing happens.

각각의 서버는 바뀐서버를 받아들일수 있는지 없는지를 체크한 후 YES라는 답을 받아야 반영이 된다.

만약에 하나라도 답이 없으면 반영이 되지 않는다. 모두다 살아있을 때만 반영된다.

 

  

 

WORKING DIRECTORY의 파일을 복사해서 사용한다.

Starting Managed Server

• DOMAIN_DIR/bin/startManagedWebLogic.sh
• WLST and NODE Manager
• Administration Console
 Requires Node Manager on each machine.
 Requires additional configuration. Examples:
 Username and Password
 Listen Ports
 CLASSPATH, JAVA_PATH
 Security type (plain vs. SSL)

 

weblogic // welcome1

 

머신이 같을 경우 admin 서버에서 managed 서버를 만들수 있다..

remote일 경우

 

 

Pack and Unpack Example

 

 

Admin 서버가 실행중이지 않을때 MSI Mode로 managed server를 시작할수 있다.

 물리적으로 config subdirectory를 managed server에 복사해두면 admin server가 없어도 부팅이 가능하다.

 만약에 그것도 안되면 강제적으로 admin 서버의 config파일을 managed server에 복사해 온다

 

 Managed Server Independence (MSI)
• It can start in MSI mode if the Admin Server is unavailable.
• To start a managed server in MSI mode:
 The Managed server’s root directory should contains the config
subdirectory
 If the config subdirectory does not exist, copy it from the Admin
Server’s root directory
 Star the managed server
• Writes log messages to its local log file (does not forward message
to the domain log file.)
• The first time you start a Managed Server instance, it must be able to
contact the Admin Server to get its copy of the config.xml. Thereafter,
the Managed Server can start even if the Admin Server is unavailable.

 

When the Admin Server is Down
• The Admin Server can
Go down without affecting the operation of the Managed Server
Be restarted when the Managed Server are still running.


• When an Admin Server goes down:
The domain log entries are unavailable.
Managed Server can start in independent mode
The Admin Console and management tool are unavailable.

 

admin 서버가 죽었다고 해서 실행되어 있는 managed server에는 문제가 없다.

 

 

 

 

'WLS > Admin' 카테고리의 다른 글

2. Web Tier  (0) 2013.08.20
J2EE  (0) 2013.08.20
1. WLS란?  (0) 2013.08.20
Posted by Any DB
,