+

Search Tips   |   Advanced Search

Grouping nodes using wsadmin.sh

Define groups of nodes to simplify large environment configurations. Node groups allows us to submit jobs to multiple nodes.

Create a job manager and register one or more nodes in a flexible management environment. Verify that the job manager process is running.

We can coordinate management actions among multiple deployment managers, asynchronously administer multiple unfederated application servers, and submit jobs to start servers from a management profile containing a job manager. To begin using the job manager to run jobs, register the application server and deployment manager nodes as managed nodes of the job manager.

Node groups can be used to improve the system administration, including easy management of branch office systems and server farms. For example, a business has 1000 global store locations, and each location has three application servers. Each store location is connected to the business headquarters data center. The business manages all systems and runs jobs from the business headquarters. In this scenario, the business can manage the branch offices by creating one node group per continent.


Tasks

  1. Connect to the job manager process:

      cd app_server_root/bin
      wsadmin -profileName myJobManager -lang jython

  2. Create a node group.

      AdminTask.createManagedNodeGroup('-groupName European_Branch_Offices -description "Management group for all European branch offices"')

  3. Add nodes to the node group.

    Each node can belong to one or more groups. The following example commands add the Hursley_office, Berlin_office, Warsaw_office, and Paris_office nodes to the European_Branch_Offices node group:

      AdminTask.addMemberToManagedNodeGroup('-groupName European_Branch_Offices -managedNodeNameList "[Hursley_Node01][Berlin_Node01][Warsaw_Node01][Paris_Node01]"')

  4. Verify the system added the nodes to the node group.

      AdminTask.getManagedNodeGroupMembers('-groupName European_Branch_Offices')

    The command returns a list of node names that are registered with the node group of interest, as the following sample output displays:

      "[Hursley_Node01][Berlin_Node01][Warsaw_Node01][Paris_Node01]"

A node group with node group members exists in a flexible management configuration.


What to do next

Use the job manager to submit, monitor, and manage jobs for our node groups.


Related:

  • Job manager
  • Create management profiles for job managers
  • JobManagerNode
  • ManagedNodeAgent