• No results found

<Insert Picture Here> Managing WebLogic Server Lifecycle

N/A
N/A
Protected

Academic year: 2021

Share "<Insert Picture Here> Managing WebLogic Server Lifecycle"

Copied!
24
0
0

Loading.... (view fulltext now)

Full text

(1)

<Insert Picture Here>

(2)

Starting WLS with Domain Supplied

Scripts

$DOMAIN_HOME/startWebLogic.sh

• Starts the domain admin server

Starting Managed Servers

• $DOMAIN_HOME/bin/startManagedWebLogic.sh

(3)

Stopping WLS Servers via Scripts

$DOMAIN_HOME/bin/stopWebLogic optionalUser

optionalPassword t3://host:port

(4)

Creating a Boot Identity File

• Create a file called boot.properties in the

DOMAIN_NAME/servers/<server_name>/security

directory that contains two lines: • username=username

password=password

• The first time you start the server, the server reads the Boot Identity file and overwrites it with an encrypted version of the username and password.

• Thereafter, the server remembers the credentials for subsequent startup cycles.

(5)

Starting WLS Servers as a Windows

Service

There are the scripts named installSvc.cmd and

uninstallSvc.cmd located in

%MIDDLEWARE_HOME%/wlserver_10.3/server/bin

You should set a number of environment variables

before calling these scripts

Boot.properties file should exists for each servers that

is going to be started as a Windows service

(6)
(7)

Node Manager

Is a process that runs on a machine and it not

associated with a domain

• Required to start WLS Servers from Console

• WLST can also call node manager to start/stop servers

Two Flavors

(8)

Starting/Stopping Node Manager

Starting Node Manager

• $WL_HOME/server/bin/startNodeManager.sh(cmd)

Stopping Node Manager

• Nothing supplied (kill -9 in UNIX for example)

You can install/uninstall NodeManager as a Windows

Service using scripts named installNodeMgrSvc.cmd

and uninstallNodeMgrSvc.cmd located in

(9)

What is a Machine?

Logical representation of physical host

Includes configuration of Node Manager

• Listen Ports

(10)

Relationship of Machines to Other

Components

10

computer1 computer2 computer3

(11)
(12)

How a Node Manager Starts an

Administration Server

12

Machine A

Admin server WLST

1. The user issues a command to start the administration server.

2. NM determines the domain directory and authenticates the user.

3. NM obtains the startup properties for AS.

5. AS obtains the domain

configuration. 4. NM creates

the process for AS.

(13)

How a Node Manager Starts a Managed

Server

13

Machine A

Admin server Admin Console

Machine B

Managed Server 1 5. MS1 caches

the configuration. Node

Manager

3. NM creates

the MS1 process. 4. MS1 obtains the

configuration. 1. The user issues a command to start MS1.

(14)

How a Node Manager Restarts a

Managed Server

14

Machine A

Admin server

Machine B

Managed Server 1 (5. If AS is not available, MS1 obtains cached configuration.) Node Manager 3. NM creates the MS1 process. 4. MS1 obtains the configuration. 1. NM determines that MS1 needs a restart.

(15)

How a Node Manager Shuts Down a

Managed Server

15

Machine A

Admin server

Machine B

Managed Server 1 Node Manager

1. User issues the shutdown command for MS1.

(16)

Node Manager Configuration and Log

Files

Two sets of files:

• The Node Manager config files, located in

DOMAIN_HOME/servers/server_name/

data/nodemanager

• The Node Manager log files, located in

DOMAIN_HOME/servers/server_name/

logs and <WL_HOME>/common/ nodemanager

(17)

Node Manager Configuration and Log

Files

17

server_2

server_1

Node Manager log files nodemanager.log Node Manager configuration files:

nodemanager.properties nm_password.properties nodemanager.domains nm_data.properties

Server configuration files: boot.properties startup.properties

Server configuration files: boot.properties startup.properties

Server state files:

server_1.lck server_1.pid server_1.state

Server state files:

server_2.lck server_2.pid server_2.state Server log files:

server_1.out

Server log files:

server_2.out

(18)
(19)

Starting/Stopping Servers with WLS

Admin Console Requirements

Admin Server has to be running

• Hosts the Console

(20)
(21)

Creating a Managed Server on a

Remote Computer

1.Install WLS on both computers.

2.Create a managed server using the Administration Console. 3.Create a managed server template using pack.

4.Create a managed server on a remote computer using unpack.

5.Start the remote managed server.

(22)
(23)

pack and unpack: Examples

23

On computer one (administration server):

On computer two (remote managed server):

[oracle@wls-sysadm]$ cd $WL_HOME/common/bin [oracle@wls-sysadm]$ pack -managed=true

-domain=/u01/app/oracle/user_projects/domains/mydomain -template=/home/oracle/work/mydomain_managed.jar

-template_name="My Managed Server Domain"

[oracle@wls-mgdsvr2]$ cd $WL_HOME/common/bin [oracle@wls-mgdsvr2]$ unpack

(24)

Domain scale-up using GridControl

24

References

Related documents

DIAGRAMS Diagram 1 Architecture Overview https://myappserver.domain.com:443 DATABASE SERVER mydbserver.domain.com Database Node APPLICATION SERVER myappserver.domain.com Admin

• Operations Manager 2007 • Configuration Manager 2007 R2 • Data Protection Manager 2007 • Virtual Machine Manager 2008 • Manage Server license for VMM 2008 • Server

Node Manager Machine Managed Server Managed Server Node Manager Machine Managed Server Managed Server Cluster Node Manager Machine Managed Server Managed

 Machine: specifies the physical machine that the server is running on and the Node Manager properties; (the Node Manager is a process agent running on the

Node Manager is a WebLogic Server utility that enables you to start, shut down, and restart Administration Server and Managed Server instances from a remote location. Although

Architecture Redesign https://mywebentry.domain.com APPLICATION SERVER myappserver.domain.com Admin Node Forms Node Concurrent Processing Node Web Node DATABASE

Architecture Resource Manager MapReduce Status Job Submission Client Node Manager Node Manager Container Node Manager App Mstr Node Status Resource Request Resource Manager

Aplicações Client Security Virtual Machine Server Security F-Secure S.O. Applications Server Security Policy