+

Search Tips   |   Advanced Search

Reallocating and load balancing users according to mail domain

Use the NewsEmailDigestService.loadBalanceEmailDigest() command to manually reallocate and load balance users in the different email tranches (or groups of email addresses) used by the email digest.

A scheduled task runs every month to load balance the users in the email address groups used by the email digest. This task ensures that users are spread across the groups in a uniform way according to their mail domain. The task is configured in the news-config.xml file and looks as follows. Note the default settings should not be modified.

<task serverName="unsupported" 
   startby="" 
   mbeanMethodName="" 
   targetName="ScheduledTaskService" 
   type="internal" 
   scope="cluster" 
   enabled="true" 
   interval="0 0 22 1 * ?" 
   description="Job to spread users in tranche" 
   name="PersonSpreadTranche"  > 
</task>
By default, the task runs on the first day of every month at 10:00 p.m. To not wait for the next scheduled task, we can run the task manually using the NewsEmailDigestService.loadBalanceEmailDigest() MBean command.

To reallocate and load balance users in the existing email address groups used by the email digest.

  1. Access the News configuration file:

      cd app_server_root/profiles/Dmgr01/bin
      ./wsadmin.sh -lang jython
      execfile("newsAdmin.py")

  2. Enter the following command:

    NewsEmailDigestService.loadBalanceEmailDigest()

    Reallocates and load balances the users in the email address groups used by the email digest according to mail domain. This command does not take any parameters.

    The command returns the number of users who have been reallocated to different email address groups for load balancing purposes.

    For example:

    wsadmin> NewsEmailDigestService.loadBalanceEmailDigest()
    1603


Parent topic:
Administer the News repository

Related reference:

News administrative commands