gunicorn: use more aggressive multi-threading settings
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			This commit is contained in:
		@@ -121,7 +121,7 @@ write_files:
 | 
			
		||||
runcmd:
 | 
			
		||||
  - update-ca-certificates
 | 
			
		||||
  - pip install git+https://git.pictuga.com/pictuga/morss.git#[full] gunicorn
 | 
			
		||||
  - gunicorn --bind 0.0.0.0:${PORT:-8000} -w 4 --preload --access-logfile - morss
 | 
			
		||||
  - gunicorn --bind 0.0.0.0:${PORT:-8000} --workers 4 --worker-class=gevent --preload --access-logfile - morss
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
## Run
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								docker-entry.sh
									
									
									
									
									
										
										
										Executable file → Normal file
									
								
							
							
						
						
									
										2
									
								
								docker-entry.sh
									
									
									
									
									
										
										
										Executable file → Normal file
									
								
							@@ -1,7 +1,7 @@
 | 
			
		||||
#! /bin/sh
 | 
			
		||||
 | 
			
		||||
if [ -z "$1" ] || [ "$@" = "run" ]; then
 | 
			
		||||
	gunicorn --bind 0.0.0.0:${PORT:-8000} -w 4 --preload --access-logfile - morss
 | 
			
		||||
	gunicorn --bind 0.0.0.0:${PORT:-8000} --workers 4 --worker-class=gevent --preload --access-logfile - morss
 | 
			
		||||
else
 | 
			
		||||
	morss $@
 | 
			
		||||
fi
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user