public static Map<String, SupervisorDetails> genSupervisors(int numSup, int numPorts, int start, double cpu, double mem, Map<String, Double> miscResources) { return genSupervisorsWithRacks(1, numSup, numPorts, 0, start, cpu, mem, miscResources); }
public void testLargeTopologiesCommon(final String strategy, final boolean includeGpu, final int multiplier) { INimbus iNimbus = new INimbusTest(); Map<String, SupervisorDetails> supMap = genSupervisorsWithRacks(25 * multiplier, 40, 66, 3 * multiplier, 0, 4700, 226200, new HashMap<>()); if (includeGpu) { HashMap<String, Double> extraResources = new HashMap<>(); extraResources.put("my.gpu", 1.0); supMap.putAll(genSupervisorsWithRacks(3 * multiplier, 40, 66, 0, 0, 4700, 226200, extraResources));
@Test public void testAntiAffinityWithMultipleTopologies() { INimbus iNimbus = new INimbusTest(); Map<String, SupervisorDetails> supMap = genSupervisorsWithRacks(1, 40, 66, 0, 0, 4700, 226200, new HashMap<>()); HashMap<String, Double> extraResources = new HashMap<>(); extraResources.put("my.gpu", 1.0); supMap.putAll(genSupervisorsWithRacks(1, 40, 66, 1, 0, 4700, 226200, extraResources));