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, Apr 18, 19:32
Unknown Object (File)
Fri, Apr 5, 11:03
Unknown Object (File)
Fri, Apr 5, 10:41
Unknown Object (File)
Fri, Apr 5, 10:28
Unknown Object (File)
Fri, Mar 29, 04:28
Unknown Object (File)
Fri, Mar 22, 02:13
Unknown Object (File)
Fri, Mar 22, 02:13
Unknown Object (File)
Fri, Mar 22, 02:13
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.