目录
- job配置
- Node First测试
- Parallel测试
- Sequential测试
- 并行测试结果
- job执行线程监控
- 总结
job配置
Workflow : 配置了5个step
节点配置:
接下来,基于两个节点,调整Workflow中的Strategy,配置Thread Count,以及配置Orchestrator中Random Subset进行job的并行测试。
Node First测试
-
Thread count = 1,Orchestrator = None,logout为:
-
Thread count = 1,Orchestrator = 1,logout为:
-
Thread count = 1,Orchestrator = 2,logout为:
-
Thread count = 2,Orchestrator = None,logout为:
-
Thread count = 2,Orchestrator = 1,logout为:
-
Thread count = 2,Orchestrator = 2,logout为:
Parallel测试
-
Thread count = 1,Orchestrator = None,logout为:
-
Thread count = 1,Orchestrator = 1,logout为:
-
Thread count = 1,Orchestrator = 2,logout为:
-
Thread count = 2,Orchestrator = None,logout为:
-
Thread count = 2,Orchestrator = 1,logout为:
-
Thread count = 2,Orchestrator = 2,logout为:
Sequential测试
-
Thread count = 1,Orchestrator = None,logout为:
-
Thread count = 1,Orchestrator = 1,logout为:
-
Thread count = 1,Orchestrator = 2,logout为:
-
Thread count = 2,Orchestrator = None,logout为:
-
Thread count = 2,Orchestrator = 1,logout为:
-
Thread count = 2,Orchestrator = 2,logout为:
并行测试结果
Strategy | Thread Count | Random Subset | 执行时间(s) | 完成任务的节点 | Step顺序执行 |
---|---|---|---|---|---|
Node First | 1 | None | 25 | node1, node2 | Y |
Node First | 1 | 1 | 12 | node1 | Y |
Node First | 1 | 2 | 25 | node1, node2 | Y |
Node First | 2 | None | 12 | node1, node2 | Y |
Node First | 2 | 1 | 12 | node2 | Y |
Node First | 2 | 2 | 12 | node1, node2 | Y |
Parallel | 1 | None | 15 | node1, node2 | N |
Parallel | 1 | 1 | 8 | node1 | N |
Parallel | 1 | 2 | 14 | node1, node2 | N |
Parallel | 2 | None | 8 | node1, node2 | N |
Parallel | 2 | 1 | 8 | node1 | N |
Parallel | 2 | 2 | 8 | node1, node2 | N |
Sequential | 1 | None | 24 | node1, node2 | Y |
Sequential | 1 | 1 | 24 | node2 | Y |
Sequential | 1 | 2 | 25 | node1, node2 | Y |
Sequential | 2 | None | 12 | node1, node2 | Y |
Sequential | 2 | 1 | 12 | node1 | Y |
Sequential | 2 | 2 | 12 | node1, node2 | Y |
job执行线程监控
job配置:
job线程运行情况:
总结
- 在Orchestrator不做选择时,默认按照节点名排序执行,可选择排序方式
- 在Orchestrator中Random Subset选择 <b>1</b> 时,job最终只在一个节点执行,与采用哪种形式的Strategy,和Thread Count无关
- 即使在Node First模式下,调整Orchestrator节点数和Thread Count,可以实现节点的并行执行
- Parallel执行,是job中Step并行执行,即step执行不会按照step顺序执行
- Sequential方式,每个Step按照节点顺序执行, 当所有节点的上一个job step执行完,才会在所有节点执行下一个job step
网友评论