Documente Academic
Documente Profesional
Documente Cultură
Rakesh kumar
DAY 2
Agenda
Boot Identity
Deployments
Weblogic clustering
Node Manager
Apache Overview
Apache Installation
STANDBY State
A server instance in STANDBY does not process any requestits regular Listen Port
is closed. The Administration Port is open, and accepts life cycle commands that
transition the server instance to either the RUNNING or the SHUTDOWN state.
Other Administration requests are not accepted.
Starting a server instance in standby is a method of keeping it available as a
hot backup, a useful capability in high-availability environments.
The only life cycle command that causes a server instance to enter the STANDBY
state and remain in that state is the Start in Standby command. A server instance
transitions through the STANDBY state when you issue a Start or a Start in Admin
command.
ADMIN State
In the ADMIN state, WebLogic Server is up and running, but available only for
administration operations, allowing you to perform server and application-level
administration tasks. When a server instance is in the ADMIN state:
The Administration Console is available.
The server instance accepts requests from users with the admin role. Requests from nonadmin users are refused.
The JDBC, JMS, and JTA subsystems are active, and administrative operations can be
performed upon them. However, you do not have to have administrator-level privileges to
access these subsystems when the server is in the ADMIN state.
Deployments or re-deployments are allowed, and take effect when you transition the
server instance from the ADMIN to the RUNNING state (using the Resume command).
Cluster Service is active and listens for heartbeats and announcements from other cluster
members. It can detect that other Managed Servers have joined the cluster, but is invisible
to other cluster members
RESUMING State
During this transitional state, WebLogic Server performs the operations required
to move itself from the STANDBY or ADMIN state to the RUNNING state.
A server instance transitions to the RESUMING state when you issue the Resume
command. A server instance transitions through the RESUMING state when you
issue the Start command.
RUNNING State
In the RUNNING state, WebLogic Server is fully functional, offers its services to
clients, and can operate as a full member of a cluster.
A server instance transitions to the RUNNING state as a result of the Start
command, or the Resume command from the ADMIN or STANDBY states.
You can transition a server instance in the RUNNING state to the SUSPENDING
state or the FORCE_SUSPENDING state using graceful and force Suspend and
Shutdown commands.
SUSPENDING State
During this transitional state, WebLogic Server performs the operations required
to place itself in the ADMIN state, suspending a subset of WebLogic Server
subsystems and services in an ordered fashion, and completing a predefined
portion of the application work currently in process (in-flight work).
FORCE_SUSPENDING State
SHUTTING_DOWN State
FAILED State
UNKNOWN State
You can start weblogic managed server from the below path
You can start weblogic admin sever from the below path
Boot Identity
If you want to bypass the prompt for username and password, we recommend
that you create and use a boot identify file, which contains your username
and password in an encrypted format.
Start the Administration Server at least once and provide the user credentials
on the command line.
Note: The first time you use this file to start a sever, the server reads the file
and then overwrites it with an encrypted version of the username and
password.
Using a boot identity file is the most secure and convenient way to bypass the
interactive prompt. However, instead of using a boot identify file, you can
add the following arguments to the weblogic.Server startup command:
-Dweblogic.management.username=username
-Dweblogic.management.password=password
If you supply both of these arguments, you can bypass the interactive prompt.
WebLogic Server Administration Console is a Web browser-based, graphical user interface that
you use to manage a WebLogic Server domain.
Use the Administration Console to:
Configure WebLogic Server services, such as database connectivity (JDBC) and messaging (JMS)
Stage - The Administration Server first copies the deployment unit source files to the staging
directories of target servers specified by the Staging Directory Name attribute. The target
servers then deploy using their local copy of the deployment files.
Nostage - The Administration Server does not copy deployment unit files. Instead, all servers
deploy using the same physical copy of the deployment files, which must be directly accessible
by the Administration Server and target servers.With nostage deployments of exploded archive
directories, WebLogic Server automatically detects changes to a deployment's JSPs or Servlets
and refreshes the deployment. (This behavior can be disabled if necessary.)
external stage - The Administration Server does not copy deployment files. Instead, the
Administrator must ensure that deployment files are distributed to the correct staging
directory location before deployment (for example, by manually copying files prior to
deployment). With external stage deployments, the Administration Server requires a copy of
the deployment files for validation purposes. Copies of the deployment files that reside in
target servers' staging directories are not validated before deployment.
Deployments
Deployment steps:
On the left-hand side Change Center pane, click Lock & Edit.
Confirm that the radio button next to Install this deployment as an application is
marked and click Next.
Click Finish.
On the right-hand content pane, mark the radio button next to the EAR just deployed.
Click Start to view the dropdown list and select Servicing all requests.
weblogic.Deployer
Administration Console
WLST
The WebLogic Scripting Tool (WLST) is a new command-line interface that you can use to
automate domain configuration tasks, including application deployment configuration
and deployment operations.
Deployments
Scalability
A solution that allows you to create additional capacity by introducing more servers to the cluster,
thereby reducing the load on existing servers.
Load balancing
The ability to distribute requests across all members of the cluster, according to the workload on
each server.
High availability
A mix of features that ensure applications and services are available even if a server or machine
fails. Clients can continue to work with little or no disruption in a highly available environment.
WebLogic achieves high availability using a combination of features: replication, failover, and
migratable services.
Failover Clusters
This class of cluster is the most widely used in todays e-commerce environment. Sometimes they
are also called HA clusters or segregated clusters. With this type, the emphasis is on complete
avoidance of unplanned downtime and also on achieving high availability.
Horizantal cluster
Vertical cluster
Vertical (or linear) clustering is running multiple server instances on the same
hardware to better utilize memory or threading and allow for protection
against software failure.
Horizontal clustering then is clustering across hardware boundaries for both
load balance and failover.
In simple terms:
Vertical: Involves multiple managed servers on the same machine.
Horizontal: Involves multiple managed servers on multiple machines.
Administration Server
1. Name : Sample_AdminServer
2. Listen Address : All Local Address
3.Listen Port: 10001
Administration Server
1. Name : Sample_AdminServer
2. Listen Address : All Local Address
3.Listen Port: 10001
Managed Servers
Clusters
mserver : multicast
Configuration Summary
Creating Domain
Node Manager
Node Manager is a Java utility that runs as separate process from WebLogic
Server and allows you to perform common operations tasks for a Managed
Server, regardless of its location with respect to its Administration Server.
While use of Node Manager is optional, it provides valuable benefits if your
WebLogic Server environment hosts applications with high availability
requirements.
If you run Node Manager on a machine that hosts Managed Servers, you can
start and stop the Managed Servers remotely using the Administration Console
or from the command line. Node Manager can also automatically restart a
Managed Server after an unexpected failure.
Node Manager
Java-based node manager - runs with in JVM (Java Virtual Machine) Process
and more secure than script-based node manager. Configuration for javabased node manager are stored in nodemanager.properties
Script-based node manager - is available for Linux and Unix systems only and
is based on shell script.
Node Manager
Node Manager
Note:
Node Manager Process is associated with a Machine and NOT with specific
Weblogic Domain
Machines
1.Configure each computer (on which you wish to use Node Manager) as a
Machine in WebLogic Server
Environments -> Machines -> New (Add Machine)
Environments -> Machines -> Machine Name (created above) -> Configuration -> Node Manager
2. Assign each server instance (Admin or Managed that you wish to control
with Node Manager) to Machine.
Environments -> Machines -> Machine Name (created above) -> Configuration -> Servers -> Add
(Add Server running on this node which you would like to monitor using Node Manager)
$WL_HOME\server\bin\startNodeManager.cmd (Windows)
Apache Overview
Apache is generally recognized as the world's most popular Web server (HTTP
server). Originally designed for Unix environments, the Apache Web server has
been ported to Windows and other network operating systems.
The Apache Web server provides a full range of Web server features, including
CGI, SSL, and virtual domains. Apache also supports plug-in modules for
extensibility. Apache is free software, distributed by the Apache Software
Foundation that promotes various free and open source advanced Web
technologies.
1)
2)
Untar apache
3)
./configure prefix=/usr/local/apache2
4)
Make
5)
Make install
Linux
WL_HOME/wlserver_10.0/server/plugin/linux/i686
WL_HOME/wlserver_10.0/server/plugin/linux/ia64
WL_HOME/wlserver_10.0/server/plugin/linux/s390
WL_HOME\wlserver_10.0\server\plugin\win\32 or
WL_HOME\wlserver_10.0\server\plugin\win\64
1.
Install the Apache HTTP Server Plug-In module for Apache 2.0.x by copying the
mod_wl_22.so file to the $APACHE_HOME\modules directory.
Add the following line to your APACHE_HOME/conf/httpd.conf file manually:
LoadModule weblogic_module modules/mod_wl_22.so
2.
Verify the syntax of the httpd.conf file with the following command:
$APACHE_HOME\bin\apachectl -t
The output of this command reports any errors in your httpd.conf file or returns:
Syntax OK
3.
Thank You ?