Skip to content

Latest commit

 

History

History

python-asgi

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Python / ASGI

Simple Python websocket benchmark server using uvicorn and websockets-library.

Run

docker run -p 8080:8080 villekr/python-asgi-websocket-benchmark

Optional Environment Variables

  • HOST - Bind socket to this host
    • Default: "127.0.0.1"
    • Type: string
  • PORT - Bind socket to this port
    • Default: 8080
    • Type: int
  • LOG_LEVEL - Uvicorn logging level
    • Default: "error"
    • Type: string [ critical | error | warning | info | debug | trace ]
  • LOOP - Python event loop
    • Default: "auto"
    • Type: string [ auto | uvloop | asyncio ]
  • WS - Websocket server
    • Default: "auto"
    • Type: string [ auto | none | websockets | wsproto ]
  • WORKERS - Number of worker processes
    • Default: 1
    • Type: integer