[PYTHON] About gunicorn

memorandum

I'm using GCP's Cloud run and didn't know much about "gunicorn", so a memorandum.

"Gunicorn" is a Python WSGI HTTP Server for UNIX. "WSGI" is a standardized interface definition for connecting a web server and a web application (or web application framework) in Python. In the past, it was implemented in various states, but is it a standardized version?

The following is the command when the last server of GCP is started.

#exec: Execute the specified command
# --bind IP:The order of PORT. Origin to connect. If left blank, will IP be the default setting?
# --workers :Number of processes
# --threads: number of threads
# app:app → Left is source code specification, right is name.
CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 app:app

Recommended Posts

About gunicorn
About LangID
About CAGR
About python-apt
About Permission
About requirements.txt
About locale
About permissions
About Opencv ②
About axis = 0, axis = 1
About Opencv ③
About import
About numpy
About pip
About Linux
About numpy.newaxis
About endian
About Linux
About import
About Opencv ①
About Linux
About Linux
About Linux ①
About cv2.imread
About _ and __
About wxPython
Notepad about TecoGAN
About python slices
Briefly about __name__
About python comprehension
About Docker Volume
[Linux] About export
About reference type
About the test
Learn about programming
About Flask customization
About variable scope. .. ..
About Python tqdm.
About python yield
Notes about with
About python, class
About Linear Models
About Go functions
About pandas describe
About Kivy root
About Firestore timeout
About python inheritance
About python, range ()
About Confusion Matrix
[Linux] About PATH
About python decorators
Linux (about groups)
Note about awk
About python reference
About Bitnami Autostart
About Python decorators
About Milkcocoa SDK
Notes about pytorch
[Python] About multi-process
About Numpy broadcast
About symbolic links