Skip to content

Conversation

@benosteen
Copy link
Contributor

@benosteen benosteen commented Nov 28, 2022

This extra configuration is meant to help scale the service internally, by increasing workers based on demand.

The environment variable UWSGI_PROCESSES should be used to set the maximum number of allowed processes, and if not set, this will default to 16. (The variable value will override the processes = 16 line from the config.)

While threading is enabled, the default number of threads is 1. I have a forked version of PyLD that I've made threadsafe, it may take time to get this in to the official. No code has been updated on the official repo in 2 years.

thegetty/pyld#1

I've updated the requirements to pull from my fork of the repo to show, but this should be done more officially if we want to be able to up the threads. It should be put back to the normal PyLD before merging.

@benosteen benosteen merged commit 9aeb52b into master Nov 29, 2022
@benosteen benosteen deleted the uwsgi-threading branch November 29, 2022 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants