02-Wls Topologies Intro

download 02-Wls Topologies Intro

of 24

Transcript of 02-Wls Topologies Intro

  • 8/6/2019 02-Wls Topologies Intro

    1/24

    Introduction to WLS Topologies

  • 8/6/2019 02-Wls Topologies Intro

    2/24

    2

    Agenda

    Topology

    Domain

    Server

    Admin Server

    Managed Server

    Cluster

    Node Manager

    Machine

    Configuration Files Administration Tools Sample Configuration Schemes

  • 8/6/2019 02-Wls Topologies Intro

    3/24

    3

    Domain

    What is it?

    a logically related group of WebLogicServer instances that you managefrom a single set of configurationartifacts.

    Whats in a domain?

    Servers

    Clusters of servers Rules:

    All WebLogic Server instances withinthe same domain must be at thesame major and minor version.

    Servers within a domain can be at

    different Maintenance Pack levels aslong as the Administration Server isat the same Maintenance Pack Levelor higher than its Managed Servers.

    config.xml

  • 8/6/2019 02-Wls Topologies Intro

    4/24

    4

    Server

    What is it?

    A configured instance to hostapplications and resources

    WebApps, Enterprise Apps,

    Web Services, JMS, JDBC, Diagnostics,

    What types of servers are

    there? Administration Server

    Managed Server

    JNDI

    JMS Queue

    JDBC Pool

  • 8/6/2019 02-Wls Topologies Intro

    5/24

    5

    Administration Server

    What is it? Central configuration controller for the entire

    domain What else does it do?

    Hosts the Administration Console Enables you to start and stop servers from a

    central location Enables you to migrate servers and services

    within the domain

    Enables you to deploy applications withinthe domain

    Guidelines: There must be exactly one* Administration

    Server in domain An Administration Server controls only one

    domain.

    For production use, we recommend nothosting application logic or resources on theAdministration Server

    *The Administration Server does not need to run at all times, but is required for makingconfiguration and deployment changes to a running domain.

    Admin Server

    Managed Servers

    config.xml

    Admin Console

  • 8/6/2019 02-Wls Topologies Intro

    6/24

    6

    Managed Server

    What is it? A running instance that hosts

    applications and resources needed bythose applications - The real workhorses in a WebLogic domain

    Each Managed Server is independentof all other Managed Servers in thedomain (unless they are in a cluster,defined later)

    You can have as many Managed

    Servers in a domain as you need Individual Managed Servers are

    typically added for capacity andapplication isolation

    JND

    I

    JMSQueue

    JDBC Pool

  • 8/6/2019 02-Wls Topologies Intro

    7/247

    Administration Server to Managed ServerInteraction

    The Administration Server stores the mastercopy of the domain configuration, including theconfiguration for all managed servers in thedomain

    Each Managed Server stores a local copy of itsconfiguration.

    When a Managed Server starts, it connects tothe Administration Server to synchronize theconfiguration

    When configuration is changed, theAdministration Server sends changedconfiguration to Managed Servers

  • 8/6/2019 02-Wls Topologies Intro

    8/248

    Cluster

    A cluster is a group of ManagedServers running simultaneouslyand working together to provideincreased scalability andreliability

    Scalability: through parallelism

    Reliability/Availability: through

    replication and redundancy

    A cluster appears as a singleinstance to most clients.

    Clusters enable some advancedfeatures, such as Whole ServerMigration, Service Migration, andclustered JMS destinations.

    Cluster 1

    Cluster 2

    Admin Svr

  • 8/6/2019 02-Wls Topologies Intro

    9/2416

    Agenda

    Topology

    Domain

    Server

    Admin Server

    Managed Server

    Cluster

    Node Manager

    Machine

    Configuration Files Administration Tools Sample Configuration Schemes

  • 8/6/2019 02-Wls Topologies Intro

    10/2417

    Domain DirectoryDomain name

    Start and stopscripts

    Root configuration forthe domain

    Configuration files for

    WLDF, JDBC, JMS,and Security

    Pending configurationchanges

    Subdirectory for each ManagedServer in the domain

  • 8/6/2019 02-Wls Topologies Intro

    11/24

  • 8/6/2019 02-Wls Topologies Intro

    12/24

    19

    Two-Phase Configuration Changes

    Changes activated in batches:

    Reliability, consistency:

    Make (related) changes as a group

    Validate before making the change

    Activate or Roll back as a single unit( all changes on all servers

    General process: Get an edit lock

    make changes

    changes are stored in the pending directory

    activate your changes (with implicit validation through the Admin

    Console or WLST) changes are distributed to servers in the domain

    Two phases: prepare and commit

    Prepared on all servers; any failures will cause total rollback

  • 8/6/2019 02-Wls Topologies Intro

    13/24

    20

    Agenda

    Topology

    Domain

    Server

    Admin Server

    Managed Server

    Cluster

    Node Manager

    Machine

    Configuration Files Administration Tools Sample Configuration Schemes

  • 8/6/2019 02-Wls Topologies Intro

    14/24

    21

    Administration Tools

    Configuration Wizard

    GUI/scriptable tool to create and extend WebLogic domains Template based

    Administration Console

    Browser-based tool for configuring and monitoring domains,deploying applications, and controlling servers

    WebLogic Scripting Tool (WLST) Script or command line tool to do the same thing as theAdministration Console and Configuration Wizard

    Note that we will cover details on WLST in a separate document

    weblogic.Admin

    Deprecated command line tool for configuring a domain

    Recommend using WLST instead

    weblogic.Deployer

    Command line tool for deploying applications

  • 8/6/2019 02-Wls Topologies Intro

    15/24

    22

    Configuration Wizard

    Wizard that walks you throughdomain creation off line

    Not intended to run against arunning domain

    Requires a domain template

    WLS ships with a defaulttemplate and templates forsamples domains

    Customers and layered productscan create their own templates

    Can be executed in graphical

    and console mode No equivalent tool existed in

    OC4J

  • 8/6/2019 02-Wls Topologies Intro

    16/24

    23

    Administration Console

    Graphical interface to configure,

    manage, monitor a domain One Administration Console for

    each domain

    The Administration Server in thedomain hosts the Admin Console

    application Open the Admin Console with the

    following URL:

    http://host:port/console

    Typically in dev:

    http://localhost:7001/console Similar to the OC4J Oracle

    Enterprise Manager ApplicationServer Control

    http://localhost:7001/consolehttp://localhost:7001/console
  • 8/6/2019 02-Wls Topologies Intro

    17/24

    Automation with Domain Templates

    Configuration Wizard and Domain Template Builder

    GUI/scriptable tool to generate templates from existing domains

    Scriptable with WLST to clone domains to multiple environments

    Fusion Middleware Templates Out of the Box

    SOA, WebCenter, Identity

    ManagedServer 1

    Domain

    ManagedServer 2

    App 1

    App n

    Res n

    Res 1

    ManagedServer 1

    Domain

    ManagedServer 2

    App 1

    App n

    Res n

    Res 1

    ManagedServer 1

    Domain

    ManagedServer 2

    App 1

    App n

    Res n

    Res 1

    ManagedServer 1

    Domain

    ManagedServer 2

    App 1

    App n

    Res n

    Res 1

    Domain Template Builder

    Build Template of Domain

    Env 1 Env 2 Env n

  • 8/6/2019 02-Wls Topologies Intro

    18/24

    26

    Agenda

    Topology

    Domain

    Server

    Admin Server

    Managed Server Cluster

    Node Manager

    Machine

    Configuration Files Administration Tools Sample Configuration Schemes

  • 8/6/2019 02-Wls Topologies Intro

    19/24

    27

    Single Server/DevelopmentConfiguration

    Single server acts asthe AdministrationServer and as a hostfor applications

    Not recommended forproduction, butstandard fordevelopment

    JNDI

    JMS Queue

    JDBC Pool

    config.xml

    Admin Console

  • 8/6/2019 02-Wls Topologies Intro

    20/24

    28

    Configuring for Application Isolation

    Deploy applicationsto their own servers

    Admin server on itsown server (highlyrecommended)

    Each managedserver on its ownphysical server

    Admin Server

    Managed Server

    Node Manager

    A1 A2 A3

  • 8/6/2019 02-Wls Topologies Intro

    21/24

    29

    Configuring for Extreme ApplicationIsolation

    Each applicationgets its owndomain

    Admin server on

    its own server(highlyrecommended)

    Each managed

    server on its ownphysical server

    A1 A1 A1

    A2 A2 A2

    Domain 1

    Domain 2

  • 8/6/2019 02-Wls Topologies Intro

    22/24

    30

    Configuring for High Availability

    Clustered servers forHA and scalability

    All managed serversin the same clusterare on differentmachines, althoughmachines arefrequently shared

    Admin Server

    Managed Server

    Node Manager

    A1

    A2 A2 A2

    A1 A1

    A2

    A1

  • 8/6/2019 02-Wls Topologies Intro

    23/24

    31

    Configuring for Perf and Utilization

    Multiple ManagedServers per machine

    All Managed Serversin one cluster

    Cluster replicationscheme considerslocation indeterminingsecondary ManagedServers

    A1

    A1 A1 A1

    A1 A1

    A1

    A1

  • 8/6/2019 02-Wls Topologies Intro

    24/24

    32

    Simplified Administration

    Multipleapplicationsdeployed to asingle cluster

    Admin server onits own server(highlyrecommended)

    Single domain tomanage

    A1

    A2

    A3

    A1

    A2

    A3

    A1

    A2

    A3