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

Deployment demos? #75

Open
amellnik opened this issue Oct 29, 2022 · 5 comments
Open

Deployment demos? #75

amellnik opened this issue Oct 29, 2022 · 5 comments
Assignees

Comments

@amellnik
Copy link

Would it be helpful to include demos or documentation on how to deploy Oxygen APIs to AWS, GCP or similar? I had a similar project that I just deprecated and I remember that moving from a version running locally to a deployed instance was a common pain point. If so I'd be glad to add them.

@ndortega
Copy link
Member

@amellnik
Absolutely, that's a great idea. In retrospect, that's a pretty big piece of documentation that's missing from the project. I appreciate the help!

@pboes
Copy link

pboes commented Apr 20, 2023

Absolutely second that. As a non-architect this is what keeps me from using Oxygen for my use case. If there was something like

https://genieframework.com/docs/genie/v5/tutorials/16--Using_Genie_With_Docker.html

(esp the precompilation bit) and/or analogous to

https://fastapi.tiangolo.com/deployment/deta/

for some service that would be so valuable to me. Right now it boils down a lot of trial and error based off of myriads of bits.

@frankier
Copy link
Contributor

See also #103

I have created a similar Docker image in a pretty straightforward way. It's working fine with just normal precompile at build time and without PackageCompiler. Personally I'd advise deferring PackageCompiler until needed.

@damjanmk
Copy link
Contributor

damjanmk commented Apr 1, 2024

There is this using Azure: https://discourse.julialang.org/t/tutorial-deploying-an-oxygen-jl-app-to-microsoft-azure/107595

@arlowhite
Copy link

arlowhite commented Sep 26, 2024

We're deploying Julia docker containers to AWS ECS (aka Fargate)

These are some of the key issues when you deploy:

  • minimize container startup time (compile to CPU targets)
  • create a /health endpoint. (load balancers pings this to see if container is alive)
    Ideally, Oxygen.jl would have a way to prioritize handling the health check route, I've created an issue for this:
    Prioritized handling of specific routes (for health checks) #223
  • run with --threads=auto,1 (important to have a dedicated interactive thread)

This is still a work in progress, we're at the dev stage now, but should be in production within a year. Here's our Dockerfile and ECS config within the CDK project:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants