I need to decrease the latency of obtaining results from Optaplanner. Is it possible to run an job across multiple instances (and/or machines) in a cluster? I couldn't seem to find any information/attempt on achieving this.
First use the benchmarker (see docs chapter) and look at the BEST_SCORE graphs, this will give you a lot of insight. Furthermore, as you try the techniques below, it allows you to objectively compare their usefulness.
1 000
, it's terrible. If it's above 10 000
, it's good. To improve it, see docs chapter about stepLimit benchmarking to figure out which score constraint (= score rule in DRL) is the bottleneck.We're working on adding single-tenant multi-vm parallel solving (note that multi-tenant multi-vm parallel solving is already possible, if you do it yourself).