golemfactory / ray-on-golem

GNU General Public License v3.0
6 stars 4 forks source link

Suggested heads support #188

Closed approxit closed 9 months ago

approxit commented 9 months ago

What I've done:

Notable remarks:

shadeofblue commented 9 months ago

please create a complementary pull request for golem-core-python, thank you :)

approxit commented 9 months ago

After additional consideration, we decided that suggested heads will be implemented a little more genetic, with priority_head_subnet_tag parameter in yaml. This will be used only in case of head node deployment, so this param can be shared in all available_node_types. Additional demand and scoring will be used in setup, only for the head node and when priority_head_subnet_tag is truthy.

By default ray-on-golem-heads subnet is used both for the mainnet and testnet. As providers are available only on the mainnet, it is acceptable for us to have the same configuration for the testnet anyways. For dev purposes sdk subnet is used for priority_head_subnet_tag.

In addition, I've fixed how stacks are cached, as we need to distinguish now the head node demand from worker demand. Both could have the same configs, but context matters from now on.