-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Config option to set worker cap #1659
base: master
Are you sure you want to change the base?
Conversation
what's the motivation for this feature edit. ultimately, there's no best way to distribute work among the tasks, but what we have right now works well on fishtest, so why change that? |
|
You can just set the following in config.ini
And you will get the current behavior as on tests.stockfishchess.org, but it will be configurable. I already submitted a few pull requests to get rid of hardcoded values such as captcha key or tests.stockfishchess.org URL which are inapplicable for the other instance and are not compatible with https://github.com/glinscott/fishtest/wiki/Fishtest-server-setup |
at https://tests.stockfishchess.org/tests/view/642df05c77ff3301150e87f2 there are workers with 56 cores that got 29616 games each. With TC=150+1.5 it will probably takes 7 days to complete 29616 games. So a computer with 56 cores will be dedicated exclusively to one test for the whole week. For example, if you change priority or throughput, the changes will take place only after 7 days. Also, why should a worker be so greedy to get 29616 games for the whole week in advance? Cannot it get smaller batches, say, every hour? |
This looks to me like an issue with how batch size is calculated with respect to the available memory (or for other reasons idk, there seems to be no correlation with how fast the worker gets through these games and the actual batch size), not with the absolute limit on the batch size. |
This should not use the number of tasks, because as we can see for the test you linked empty tasks count the same as tasks with thousands of games. The logic is just flawed. |
The reason for this scaling is that mongodb documents have a size upperbound, which was hit in the past. So one wants to limit the total number of tasks, not the total number of games. |
… config, it is silently increased to the next even
Fixes #1635
Added config option to set number of games cap of a single task for a worker.
There is a
fishtest.ini
config file at~/
.This file and this
GamesCap
parameter is not mandatory. By default (if not GamesCap parameter is specified in the config), it is set to 9000 games per task. I.e. the tasks larger than 9000 games will be limited to 9000 games. However, if you setGamesCap
for example to 100, then the largest batch a worker will receive is 100.This option is configured on the server, not on the worker.