Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Production deployment of kinto-server with Docker #2158

Open
adebisi-fa opened this issue May 27, 2019 · 6 comments
Open

Production deployment of kinto-server with Docker #2158

adebisi-fa opened this issue May 27, 2019 · 6 comments
Labels
enhancement stale For marking issues as stale. Labeled issues will be closed soon if label is not removed.

Comments

@adebisi-fa
Copy link

Hello,

A sincere appreciation to the entire kinto team for this wonderful and brilliant solution! Kinto truly rocks!!!

It was mentioned in the documentation that uwsgi is the preferred way to run kinto in production, as it could be deployed behind a proxy server (e.g. nginx).

Kinto Local Server, kinto start ... was discouraged as not production ready, (maybe due to pserve's limitation facing the internet directly or something). However, the Docker image uses, kinto start, and it appears that's the only way to run kinto server on docker or other orchestrators.

So, is it technically (performance wise) possible to deploy kinto with the following configuration, as an alternative to the uwsgi, in production? Viz:

nginx --proxy--> kinto start . . . instances (scaled by supervisord, or any docker orchestrator)

Thanks, please.

Foluso.

@Natim
Copy link
Member

Natim commented May 27, 2019

I use a custom Dockerfile with that installs uwsgi and run:

/usr/local/bin/uwsgi --ini kinto.ini

@adebisi-fa
Copy link
Author

Ooh, awesome!!

Please, is there a technical reason why the official docker image isn't using /usr/local/bin/uwsgi --ini kinto.ini (after installing uwsgi) in place of kinto start --ini kinto.ini?

Thanks, please.

@Natim
Copy link
Member

Natim commented May 27, 2019

That's a good point, I guess we can change that.

@Natim
Copy link
Member

Natim commented May 27, 2019

I had a closer look at the Dockerfile, and it seems to be designed for a quick launch (with the memory backend and all) and not for a production use.

I would be glad to know what others think about it.

I guess I would recommand you to build your own Dockerfile based on this one: https://github.com/mozilla-services/kinto-dist/blob/master/Dockerfile

@leplatrem
Copy link
Contributor

I think it would make sense that the official container could be used in production.

Is uwsgi really slower to start?

@Natim
Copy link
Member

Natim commented May 28, 2019

No uwsgi is not slower, what I meant was more that the image does all the setup and things at once (create the ini file, etc.) I meant quick launch like no config.

@alexcottner alexcottner added the stale For marking issues as stale. Labeled issues will be closed soon if label is not removed. label Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement stale For marking issues as stale. Labeled issues will be closed soon if label is not removed.
Projects
None yet
Development

No branches or pull requests

4 participants