Search This Blog

Monday, 29 October 2012

MSI mode in weblogic

When a Managed Server starts, it tries to contact the Administration Server to retrieve its configuration information. If a Managed Server cannot connect to the Administration Server during startup, it can retrieve its configuration by reading configuration and security files directly. A Managed Server that starts in this way is running in Managed Server Independence (MSI) mode. By default, MSI mode is enabled.
In Managed Server Independence mode, a Managed Server looks in its root directory for the following files:
      msi-config.xml—a replica of the domain’s config.xml
     SerializedSystemIni.dat
     boot.properties—an optional file that contains an encrypted version of your username
configuration files for managed server in MSI mode
If you enable replication of configuration data and if you have started the Managed Server at least once while the Administration Server was running, msi-config.xml and SerializedSystemIni.dat will already be in the server’s root directory. The boot.properties file is not replicated. If it is not already in the Managed Server’s root directory, you must create one.

If msi-config.xml and SerializedSystemIni.dat are not in the root directory, you can either:
      Copy config.xml and SerializedSystemIni.dat from the Administration Server’s root directory (or from a backup) to the Managed Server’s root directory. Then, rename the configuration file to msi-config.xml, or
      Use the -Dweblogic.RootDirectory=path startup option to specify a directory that already contains these files
Ø      you may have noticed password values that look like "{3DES}bOH6MEd8S82sxg2Nk=" in config.xml file . This is how WebLogic stores passwords encrypted with the "Triple DES" algorithm (see here for a description of 3DES).

When WebLogic stores or retrieves one of these passwords, it uses a hash key which is stored in the SerializedSystemIni.dat file.
MSI Mode and the Domain Log File
Each WebLogic Server instance writes log messages to its local log file and a domain-wide log file. The domain log file provides a central location from which to view messages from all servers in a domain.

Usually, a Managed Server forwards messages to the Administration Server, and the Administration Server writes the messages to the domain log file. However, when a Managed Server runs in MSI mode, it assumes the role of writing to the domain log file.
By default, the pathnames for local log files and domain log files are relative to the Manged Server’s root directory. With these default settings, if a Managed Server is located in its own root directory (and it does not share its root directory with the Administration Server), when it runs in MSI mode the Managed Server will create its own domain log file in its root directory. If a Managed Server shares its root directory with the Administration Server, or if you specified an absolute pathname to the domain log, the Managed Server in MSI mode will write to the domain log file that the Administration Server created.

Note: The Managed Server must have permission to write to the existing file. If you run the Administration Server and Managed Servers under different operating system accounts, you must modify the file permissions of the domain log file so that both user accounts have write permission.
MSI Mode and the Security Realm
A Managed Server must have access to a security realm to complete its startup process. If you use the security realm that WebLogic Server installs, then the Administration Server maintains an LDAP server to store the domain’s security data. All Managed Servers replicate this LDAP server. If the Administration Server fails, Managed Servers running in MSI mode use the
replicated LDAP server for security services. If you use a third party security provider, then the Managed Server must be able to access the security data before it can complete its startup process.
MSI Mode and SSL
If you set up SSL for your servers, each server requires its own set of certificate files, key files, and other SSL-related files. Managed Servers do not retrieve SSL-related files from the Administration Server (though the domain’s configuration file does store the pathnames to those files for each server). Starting in MSI Mode does not require you to copy or move the SSL-related
files unless they are located on a machine that is inaccessible.   
MSI Mode and Deployment
A Managed Server that starts in MSI mode deploys its applications from its staging directory: serverroot/stage/appName.
MSI Mode and Managed Server Configuration Changes
If you start a Managed Server in MSI mode, you cannot change its configuration until it restores communication with the Administration Server.
MSI Mode and Node Manager
You cannot use Node Manager to start a server instance in MSI mode, only to restart it. For a routine startup, Node Manager requires access to the Administration Server. If the Administration Server is unavailable, you must log onto Managed Server’s host machine to start the Managed Server.

MSI Mode and Configuration File Replication
Managed Server Independence mode includes an option that copies the required configuration files into the Managed Server's root directory every 5 minutes. This option does not replicate a boot identity file.

By default, a Managed Server does not replicate these files. Depending on your backup schemes and the frequency with which you update your domain's configuration, this option might not be worth the performance cost of copying potentially large files across a network.
MSI Mode and Restored Communication with an Administration Server
When the Administration Server starts, it can detect the presence of running Managed Servers (if -Dweblogic.management.discover=true, which is the default setting for this property). Upon startup, the Administration Server looks at a persisted copy of the file running-managed-servers.xml and notifies all the Managed Servers listed in the file of its
presence.
Managed Servers that were started in Managed Server Independence Mode while the Administration Server was unavailable will not appear in running-managed-servers.xml. To re-establish a connection between the Administration Server and such Managed Servers, use the weblogic.Admin DISCOVERMANAGEDSERVER command.
When an Administration Server starts up and contacts a Managed Server running in MSI mode, the Managed Server deactivates MSI mode and registers itself to the Administration Server for future configuration change notifications
Starting a Managed Server When the Administration Server Is Not Accessible
If a Managed Server cannot connect to the Administration Server during startup, it can retrieve its configuration by reading locally cached configuration data. A Managed Server that starts in this way is running in Managed Server Independence (MSI) mode.
Note: If the Managed Server that failed was a clustered Managed Server that was the active server for a migratable service at the time of failure, perform the steps described in “Migrating When the Currently Active Host is Unavailable”
Clusters. Do not start the Managed Server in MSI mode.
To start up a Managed Server in MSI mode:
1. Ensure that the following files are available in the Managed Server’s root directory:
      msi-config.xml.
       SerializedSystemIni.dat
     boot.properties
If these files are not in the Managed Server’s root directory:
a. Copy the config.xml and SerializedSystemIni.dat file from the Administration Server’s root directory (or from a backup) to the Managed Server’s root directory.
b. Rename the configuration file to msi-config.xml. When you start the server, it will use the copied configuration files.
Note: Alternatively, you can use the -Dweblogic.RootDirectory=path startup option to specify a root directory that already contains these files.
2. Start the Managed Server at the command line or using a script.
Note:The Managed Server will run in MSI mode until it is contacted by its Administration Server.


Starting from version 7 WebLogic managed servers can be started in the absence of an administration server. The feature that will enable a managed server to come up in the absence of administration server (MSI mode) is enabled by default. But some of the files required for MSI mode are only sent to the managed server only when another option (MSI file replication enabled) is ON.

This feature is same in version 8 except that the config.xml being copied and cached in the managed server is stored as msi-config.xml.

In version 9 the feature is still the same except that the complete config directory that contains the configuration file is copied by default to the managed servers. But some other files like the security (*.dat) file is not copied until the MSI file replication enabled option is ON.

Version 10 alleviate all the pains by making MSI mode and MSI file replication as a default option. So out of the box a managed server is enabled to run in independence mode. And all the files required to start a managed server by itself (/config dir and *.dat file) will be automatically copied to the managed server during startup and will be synced (automatically) with the master copy (in Admin Server).

5 comments:

Anonymous said...

Howdy just wanted to give you a quick heads up and let you
know a few of the images aren't loading correctly. I'm not sure why but
I think its a linking issue. I've tried it in two different internet browsers and
both show the same outcome.

Here is my web page: latest iphone games review

Anonymous said...

Heya i'm for the first time here. I came across this board
and I find It really useful & it helped me out much. I hope
to give something back and help others like you aided me.


Have a look at my website latest iphone games apps

Madhav said...

The concept is fine, which script to use to start managed server in MSI mode and what are the ways to do

Madhav said...

The concept is very good and helpful, how to start the managed server, which script to use and how to do

Blogger said...

Bluehost is ultimately the best website hosting company for any hosting plans you might require.