Page MenuHomeDevCentral

Run with uWSGI on Docker
Changes PlannedPublic

Authored by dereckson on Nov 13 2022, 00:22.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 12, 11:56
Unknown Object (File)
Sat, Dec 7, 09:21
Unknown Object (File)
Thu, Nov 28, 03:41
Unknown Object (File)
Nov 22 2024, 13:24
Unknown Object (File)
Nov 22 2024, 07:46
Unknown Object (File)
Nov 19 2024, 14:20
Unknown Object (File)
Nov 19 2024, 14:19
Unknown Object (File)
Nov 19 2024, 14:08
Subscribers
None

Details

Reviewers
DorianWinty
Summary

Provide a uWSGI configuration and wrapper

Allow to build a Docker image to run the API.

Test Plan

Image has been built on Dwellers, tested with curl.

Diff Detail

Repository
rAPICLEAN Nasqueron API :: Clean URL
Lint
Lint Skipped
Unit
No Test Coverage
Branch
main
Build Status
Buildable 4294
Build 4561: arc lint + arc unit

Event Timeline

dereckson created this revision.
dereckson added inline comments.
config.yml
1

Currently, each query gradually increases RAM consumption.

Add max-requests: N to recycle workers after N requests, so we can avoid continuous RAM increase.

14

That option will make uWSGI natively speak HTTP.

As we don't call the service directly, but through nginx,
and nginx has uwsgi support, it would make sense to use instead http.
That would avoid two proxies.