cowprotocol / services

Off-chain services for CoW Protocol
https://cow.fi/
Other
190 stars 74 forks source link

Handle large number of settlements better #84

Closed nlordell closed 3 months ago

nlordell commented 2 years ago

In today's testing we had a lot of orders in the system which yielded at some point ~400 settlements. Currently the driver loop simulates all of them which can take a long time even when we do it in batches. A better solution could be to order by objective value first and only simulate the first N (one batch) settlements. Only if all fail we continue to simulate.

Relevant logs are are from 2021-09-24 14:00 UTC staging solver mainnet. We can also try testing our system with a large amount of orders or rinkeby or xdai.

Original issue https://github.com/gnosis/gp-v2-services/issues/1157 by @vkgnosis

github-actions[bot] commented 3 months ago

This issue has been marked as stale because it has been inactive a while. Please update this issue or it will be automatically closed.