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)
Mon, Jun 2, 00:09
Unknown Object (File)
Mon, May 26, 03:48
Unknown Object (File)
Wed, May 21, 20:53
Unknown Object (File)
Tue, May 20, 10:29
Unknown Object (File)
Thu, May 15, 14:32
Unknown Object (File)
Wed, May 14, 18:21
Unknown Object (File)
Sun, May 11, 20:56
Unknown Object (File)
Sun, May 11, 09:19
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.