-
Notifications
You must be signed in to change notification settings - Fork 35
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
Discussion: Optimisation API with intermittent tasks #56
Comments
Google Cloud Run works excellent for this. A company I am consulting is using batch jobs which have some delay but you can get considerable resources at a pretty low price. Here is the general process:
You can probably also completely skip the part with the API and either trigger the command manually or do an automatic trigger once a specific file in GCS appears. |
I've set this up on Google Cloud, but have a couple of questions - would you be able to help out?
|
Unfortunately, I am not an expert in Google Cloud. There should be an option for larger machines and you should not need a web server. A simple CLI command which you trigger should be enough. It kind of sounds odd how you set it up - the build should never fail as the build should only create the container that you trigger later on to run the CLI command. |
Hello,
Firstly, thank you for such a useful guide to using OR Tools! This has helped me considerably in setting up my optimisation program.
I'm not sure if this is an appropriate "issue", but I was wondering if you could help with the following query about an optimisation API.
I am setting up a model with three stages of optimisation, therefore the execution time is around 5 minutes. However, I'm only planning on executing the model once per day. I'm wondering about using Google Cloud to run my model since it looks like I'll only get charged for minutes used, rather than having an expensive server sitting idle for most of the time. If this is incorrect and there's a much better platform, please let me know!
Is it possible to run the FastAPI and Redis services on a small (cheap) server, and only run the optimisation API on demand? Would I need to set the optimisation API up separately in Cloud Run instead of being all in one container?
I'm new to Python, optimisation in general, OR Tools, and Google Cloud - sorry if this is a silly question!
The text was updated successfully, but these errors were encountered: