Contents
<< Previous
Overview
* See Node Manager Overview
Configure a machine and assign servers to it
Machines
* Logical not physical entities
* Used to administer servers
* Required by node managers
* Optionally used by clusters
Create a Machine using Admin Console
Create a Machine using WLST
connect('weblogic','welcome1','t3://wlbox:7001') edit() startEdit() create('wlboxMachine', 'Machine') save()
Assign Servers to Machine
* Servers can only be added to machine when in SHUTDOWN state
Configure a Machine to Use Node Manager
* Use non-SSL node manager (default to SSL):
– Select Type: Plain
– Set SecureListener=false in nodemanager.properties
* Default to SSL type:
Describe the capabilities of node manager
* Can be used to
– start/stop/restart admin server
– start/stop/suspend/restart managed servers
– auto start admin and managed servers on failure
– monitor servers and collection log data
* Node mangers
– run on same computers as managed servers
– can be run as Windows services or Unix daemons
– available in either Java-based or script-based (unix only)
Configure, start, and stop a Java-based Node Manager
nodemanager.properties
* See here for details
* Property precedences: command line properties -overwrites-> nodemanager.properties -overwrites-> Admin Console Server Start tab properties
* To configure NM to use start/stop scripts:
CrashRecoveryEnabled=true StartScriptEnabled=true StopScriptEnabled=true StartScriptName=startWebLogic.sh
* To enable server auto start:
CrashRecoveryEnabled=true
* Use plain socket
SecureListener=false
– Also need to set node manager listen type to plain:
– WLST connect command:
nmConnect('weblogic', 'welcome1', 'localhost', '5556', 'wc_domain', '/apps/oracle/middleware/user_projects/domains/wc_domain','plain')
* To support custom identity and custom trust key stores:
SecureListener=true KeyStores=CustomIdentityAndCusotmTrust CustomIdentityKeyStoreFileName=/home/oracle/identity/wlbox1.keystore CustomIdentityKeyStorePassPhrase=secret CustomIdentityAlias=wlbox1 CustomIdentityPrivateKeyPassPhrase=secret CustomTrustKeyStoreFileName=/home/oracle/identity/wlbox1.truststore
– Also need to set node manager listen type to SSL:
– WLST connect command:
nmConnect('weblogic', 'welcome1', 'localhost', '5556', 'wc_domain', '/apps/oracle/middleware/user_projects/domains/wc_domain','ssl')
* Full example
#Tue Apr 24 14:36:27 EDT 2012 DomainsFile=/apps/oracle/middleware/wlserver_10.3/common/nodemanager/nodemanager.domains LogLimit=0 PropertiesVersion=10.3 DomainsDirRemoteSharingEnabled=false javaHome=/opt/java/jdk1.6.0_29 AuthenticationEnabled=true NodeManagerHome=/apps/oracle/middleware/wlserver_10.3/common/nodemanager JavaHome=/opt/java/jdk1.6.0_29/jre LogLevel=INFO DomainsFileEnabled=true StartScriptName=startWebLogic.sh ListenAddress= NativeVersionEnabled=true ListenPort=5556 LogToStderr=true SecureListener=true LogCount=1 DomainRegistrationEnabled=false StopScriptEnabled=true QuitEnabled=false LogAppend=true StateCheckInterval=500 CrashRecoveryEnabled=true StartScriptEnabled=true LogFile=/apps/oracle/middleware/wlserver_10.3/common/nodemanager/nodemanager.log LogFormatter=weblogic.nodemanager.server.LogFormatter ListenBacklog=50 KeyStores=CustomIdentityAndCusotmTrust CustomIdentityKeyStoreFileName=/home/oracle/identity/wlbox1.keystore CustomIdentityAlias=r1p1_ptl CustomIdentityKeyStorePassPhrase=secret CustomTrustKeyStoreFileName=/home/oracle/identity/wlbox1.truststore
Script Based Node Manager
* SSH Node Manager is a shell script name wlscontrol.sh in directory
[oracle@wlbox nodemanager]$ pwd /labs/wls1035/wlserver_10.3/samples/domains/wl_server/bin/nodemanager [oracle@wlbox nodemanager]$ ls wlscontrol.sh
* Requires SSH client installed
* Configuration:
– config ssh
– create NM user
– config security
Create NM User
groupadd oracle useradd -g oracle -m oracle passwd oracle useradd -g oracle -m ndmgr passwd ndmgr
Additional Config
* Config a machine to use NM
* Config nodemanager.domains
– specifies domains NM controls
* Ensure admin server address is defined
* Setting NM env variables
NM Config and Log 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
See this post for more details
Next >>
[mv_include id=’3268′]