Skip to content

Per language tree manager settings #1257

@andreaskoepf

Description

@andreaskoepf

Recently additional languages were added to the system. The current tree manager settings keeps 100 trees active which is a reasonable number for languages like English. For languages with few contributors this number is probably too high with the consequence that it will take a long time until trees reach their goal size, go through ranking and get the ready_for_export state.

Here is a snapshot of the language distribution of (non-synthetic) messages in the system ~2023-02-06 09:00 UTC:

 lang  | count 
-------+-------
 vi    |     9
 hu    |    10
 de    |  1410
 ja    |   105
 ko    |     4
 fr    |   699
 zh    |    97
 en    | 15118
 es    |   741
 pt-BR |   213
 ru    |  1056

Current goal_tree_size is set to 12 messages, i.e. to complete 100 trees 1200 messages are necessary. A simple solution would be to specify certain settings like the number of active trees per language. We could for example use 25 as default and specify higher values for the most active languages. The configuration parameters of the tree manager can be found in config.py#L8-L142.

(If you have ideas for an algorithm to dynamically adjusts the max_active_trees value please let us know. Please also consider side-effects like less diverse tasks/less fun for contributors when the tree count is getting too low.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions