JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle GlassFish Server 3.1-3.1.1 High Availability Administration Guide
search filter icon
search icon

Document Information

Preface

1.  High Availability in GlassFish Server

2.  Setting Up SSH for Centralized Administration

3.  Administering GlassFish Server Nodes

4.  Administering GlassFish Server Clusters

5.  Administering GlassFish Server Instances

6.  Administering Named Configurations

7.  Configuring Web Servers for HTTP Load Balancing

8.  Configuring HTTP Load Balancing

How the HTTP Load Balancer Works

Installing the Loadbalancer Plug-In

HTTP Load Balancing Algorithm

Features of the GlassFish Loadbalancer Plug-In

Auto Apply

Weighted Round Robin

User-Defined Load Balancing

Setting Up HTTP Load Balancing

Prerequisites for Setting Up HTTP Load Balancing

Procedure for Setting Up HTTP Load Balancing

To Set Up Load Balancing Using the asadmin Tool

HTTP Load Balancer Deployments

Using Clustered Server Instances

Using Multiple Standalone Instances

Configuring the HTTP Load Balancer

Configuring an HTTP Load Balancer on the DAS

Creating an HTTP Load Balancer Reference

Enabling Server Instances for HTTP Load Balancing

Enabling Applications for HTTP Load Balancing

Creating the HTTP Health Checker

Creating a Health Checker

Additional Health Check Properties for Healthy Instances

Changing the HTTP Load Balancer Configuration

Exporting the HTTP Load Balancer Configuration File

Enabling Dynamic Reconfiguration

Disabling (Quiescing) a Server Instance or Cluster

To Quiesce a Server Instance or Cluster

Disabling (Quiescing) an Application

To Quiesce an Application

Configuring HTTP and HTTPS Failover

HTTPS Routing

Configuring HTTPS Routing

Known Issues

Using Redirects with the HTTP Load Balancer

The auth-pass-through-enabled Attribute

The proxyHandler Property

The rewrite-location Property

Configuring Idempotent URLs

Monitoring the GlassFish Loadbalancer Plug-In

Configuring Log Messages

Types of Log Messages

Load Balancer Configurator Log Messages

Request Dispatch and Runtime Log Messages

Configurator Error Messages

Enabling HTTP Load Balancer Logging

To Turn on HTTP Load Balancer Logging

Understanding Monitoring Messages

9.  Upgrading Applications Without Loss of Availability

10.  Configuring High Availability Session Persistence and Failover

11.  Configuring Java Message Service High Availability

12.  RMI-IIOP Load Balancing and Failover

Index

Monitoring the GlassFish Loadbalancer Plug-In

Configuring Log Messages

The Loadbalancer Plug-In uses the web server’s logging mechanism to write log messages. The default log level is set to the default logging level on Sun Java System Web Server (INFO), Apache Web Server (WARN) and Microsoft IIS (INFO). The log levels, FINE, FINER, and FINEST, map to the DEBUG level on the web server.

These log messages are written to the web server log files, and are in the form of raw data that can be parsed using scripts, or imported into spreadsheets to calculate required metrics.

Types of Log Messages

The Loadbalancer Plug-In generates the following types of log messages:

Load Balancer Configurator Log Messages

These messages will be logged when you are using idempotent URLs and error page settings.

An output for idempotent URL pattern configuration contains the following information:

Request Dispatch and Runtime Log Messages

These log messages are generated while a request is being load balanced and dispatched.

Configurator Error Messages

These errors appear if there are configuration problems, for example, if the custom error page referenced is missing.

Enabling HTTP Load Balancer Logging

The Loadbalancer Plug-In logs the following information:


Note - When load balancer logging is enabled, and if the web server logging level is set to DEBUG or to print verbose messages, the load balancer writes HTTP session IDs in the web server log files. Therefore, if the web server hosting the Loadbalancer Plug-In is in the DMZ, do not use the DEBUG or similar log level in production environments.

If you must use the DEBUG logging level, turn off load balancer logging by setting require-monitor-data property to false in loadbalancer.xml.


To Turn on HTTP Load Balancer Logging

  1. Set the logging options in the web server. The procedure depends on the web server:
    • With Oracle iPlanet Web Server

      In the server’s Admin console, go to the Magnus Editor tab and set the Log Verbose option to On.

    • For Apache Web Server, set the log level to DEBUG.
    • For Microsoft IIS, set the log level to FINE in the sun-passthrough.properties file.
  2. Set the load balancer configuration’s monitor option to true.

    Use the asadmin create-http-lb-config subcommand to set monitoring to true when you initially create the load balancer configuration, or use the asadmin set command to set it to true later. Monitoring is disabled by default.

Understanding Monitoring Messages

The format of the Loadbalancer Plug-In log messages is as follows.