To implement portlet session failover, you must first create an HADB cluster and configure Application Server availability service settings for pscluster, as described in this procedure.
Create an HADB cluster and add it to your Application Server cluster.
Run the following command on either ps1 or ps2:
# /opt/SUNWappserver/sbin/asadmin configure-ha-cluster --user admin --hosts ps1.pstest.com,ps2.pstest.com pscluster
When prompted, type the app-server-admin-password.
Start the Application Server Admin Console.
Start a browser.
Go to the following URL:
https://ps1.pstest.com/4849
The Application Server Admin Console login page opens.
Log in to the Application Server Admin Console by typing the following values and clicking Login.
Input Field |
Value |
---|---|
User ID |
admin |
Password |
app-server-admin-password? |
The Application Server Admin Console opens.
Modify Availability Service settings.
Click on the small triangle next to Configurations in the left pane under Common Tasks.
The configurations are expanded.
Click on the small triangle next to pscluster-config.
The pscluster configuration is expanded.
Click on the Availability Service.
The Availability Service settings are displayed in the right pane.
Type the Availability Service settings shown in the following table.
Input Field |
Value |
---|---|
Availability Service |
Enabled |
Store Pool Name |
pscluster-hadb-pool |
Ha-agent-hosts |
10.0.2.3, 10.0.2.4 |
Ha-agent-ports |
1862 |
Ha-db-name |
pscluster |
Click Save.
Close the Console.
Verify that HADB is working and that ps1 and ps2 are part of the HADB cluster.
Check the HADB status.
# /opt/SUNWhadb/4.4.3-5/bin/hadbm status pscluster
When prompted, type the app-server-admin-password.
The status of the pscluster high availability database should be FaultTolerant.
Database Status pscluster FaultTolerant |
Check that ps1 and ps2 are part of the HADB cluster.
# /opt/SUNWhadb/4.4.3-5/bin/hadbm status --nodes pscluster
When prompted, type the app-server-admin-password.
When prompted, type the app-server-master-password.
All Application Server nodes should be in the running state.
NodeNo HostName Port NodeRole NodeState MirrorNode 0 ps1.pstest.com 15200 active running 1 1 ps2.pstest.com 15220 active running 0 |