Sun Java System Reference Configuration Series: Portal Service on Application Server Cluster

ProcedureTo Configure the Availability Service for pscluster

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.

  1. 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.

  2. Start the Application Server Admin Console.

    1. Start a browser.

    2. Go to the following URL:

      https://ps1.pstest.com/4849

      The Application Server Admin Console login page opens.

    3. 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.

  3. Modify Availability Service settings.

    1. Click on the small triangle next to Configurations in the left pane under Common Tasks.

      The configurations are expanded.

    2. Click on the small triangle next to pscluster-config.

      The pscluster configuration is expanded.

    3. Click on the Availability Service.

      The Availability Service settings are displayed in the right pane.

    4. 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

    5. Click Save.

  4. Close the Console.

  5. Verify that HADB is working and that ps1 and ps2 are part of the HADB cluster.

    1. 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
    2. 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