public class SimpleLoadBalancer extends Object
nodeAddress fsPort maxLoad priority 10.0.0.121 5500 8 10 10.0.0.122 5500 8 10 10.0.0.123 5500 8 10 127.0.0.1 5500 8 5Where nodeAddress is the network name of the node or its IP address, fsPort is the port where the FederateStarter can be found on the node, maxLoad is an int indicating the maximum number of jobs the node can handle, and priority indicates which nodes should be scheduled first (nodes of lower priority are only scheduled when high priority nodes are full). The example above shows three nodes with priority 10, and the localhost with a lower priority. So only when 24 federates are running, localhost will be used.
Copyright (c) 2016-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OTS License.
Copyright © 2014–2019 Delft University of Technology. All rights reserved.