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 to Cloud for the API #36

Open
d-krupke opened this issue Jul 28, 2024 · 4 comments
Open

Deployment to Cloud for the API #36

d-krupke opened this issue Jul 28, 2024 · 4 comments
Labels
help wanted Extra attention is needed

Comments

@d-krupke
Copy link
Owner

Instead of just using some worker containers, it may be cheaper to deploy the code to the cloud and use google cloud run to schedule and run the optimization on demand. Especially for low frequency APIs, this can be significantly cheaper as you only need to rent an expensive cloud machine for the time you are actually optimizing. Should not be too complicated, but I am not a cloud expert, so I am slow in getting all the details right and not just having a "worked for me".

@d-krupke d-krupke added the help wanted Extra attention is needed label Jul 28, 2024
@d-krupke
Copy link
Owner Author

This could be a subsection at the end of https://d-krupke.github.io/cpsat-primer/building_an_optimization_api.html

@michip
Copy link
Collaborator

michip commented Jul 30, 2024

For people with unlimited budgets, the AWS on-demand instances might also be an option. Also (in general) for optimization tasks where you don't need an immediate result, the "EC2 spot instances" could offer a nice discount in comparison with other servers types.

@d-krupke
Copy link
Owner Author

I don't know much about AWS. However, I know that one can do some heavy optimization in Google Cloud with only a few euros for the worker (on big machines). I would also know how to implement that part, though, I have never been responsible for the actual deployment. What I am not sure about, yet, is how to deploy the web and redis containers cheaply.

For people with unlimited budgets, the AWS on-demand instances might also be an option. Also (in general) for optimization tasks where you don't need an immediate result, the "EC2 spot instances" could offer a nice discount in comparison with other servers types.

@d-krupke
Copy link
Owner Author

Considering that OR-Tools is Google, I would like to have Google Cloud in there out of respect. They don't make money with OR-Tools but they make money with the cloud. Adding an additional AWS section would of course also be nice, but if we do that, I would like to publish it together with a Google Cloud section.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants