Skip to content
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

WEBLATE_WORKERS=1 spawns many more processes #2407

Closed
2 tasks done
Derkades opened this issue Jun 17, 2024 · 3 comments
Closed
2 tasks done

WEBLATE_WORKERS=1 spawns many more processes #2407

Derkades opened this issue Jun 17, 2024 · 3 comments
Assignees
Labels
bug Something is broken.

Comments

@Derkades
Copy link
Contributor

Describe the issue

Setting WEBLATE_WORKERS to 1 means concurrency is set to 0 in some places, due to a floored divide by two. We would like to run with 1 celery worker to reduce memory usage. The default results in ~1.7GiB, WEBLATE_WORKERS=1 results in ~8GiB of memory used. We were hoping for something closer to 0.5-1GiB.

I already tried

  • I've read and searched the documentation.
  • I've searched for similar filed issues in this repository.

Steps to reproduce the behavior

Set WEBLATE_WORKERS=1

Expected behavior

No response

Screenshots

No response

Exception traceback

No response

Additional context

No response

@Derkades Derkades changed the title Cannot set WEBLATE_WORKERS to 1 WEBLATE_WORKERS=1 spawns many more processes Jun 17, 2024
@nijel nijel added the bug Something is broken. label Jun 17, 2024
@nijel nijel self-assigned this Jun 17, 2024
@nijel
Copy link
Member

nijel commented Jun 17, 2024

Memory usage should get better in the next release, see WeblateOrg/weblate#11686.

@nijel nijel closed this as completed in 3bcec30 Jun 17, 2024
@Derkades
Copy link
Contributor Author

Thank you! That helps for small instances.

Copy link

Thank you for your report; the issue you have reported has just been fixed.

  • In case you see a problem with the fix, please comment on this issue.
  • In case you see a similar problem, please open a separate issue.
  • If you are happy with the outcome, don’t hesitate to support Weblate by making a donation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is broken.
Projects
None yet
Development

No branches or pull requests

2 participants