-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Sets the minimum number of Fly machines to 1 #1535
Conversation
Signed-off-by: Mihovil Ilakovac <[email protected]>
All right, nice! Client -> it will have 0 minimum instances -> yeah, that makes sense to me. Server -> we set it to 1 -> that makes sense, that way we are sure jobs and other stuff works. Db -> it will have 0 minimum instances -> I guess that is ok, right? Could that cause any issues? Connection dropping between server and db maybe? Btw, while this is separate issue, I thought this might be a good moment to also give a bit of thought to this one: #1342 . |
This PR
They can edit the
We do not have explicit instructions for editing the TOML files. We only mention that they should include them their version control: https://wasp-lang.dev/docs/advanced/deployment/cli#setup
We should 👍
In our setup, the minimum for the DB is 1 and we don't use their "Scale to zero" feature for Postgres. https://fly.io/docs/postgres/managing/scale-to-zero/ The two machines issueThere is an option to disable HA -> https://fly.io/docs/reference/app-availability/#turn-off-redundancy-on-deploy |
So regarding instructions to users about how we set min number of machines and that they can set it to 0 if they don't have any Jobs / long running stuff -> you said above that we should provide them with those instructions -> let's do it in this PR, while we are at it? I guess we should put this info into docs? But I think it is also interesting to put this info into output of Database scaling down, two machines -> ok yeah, we can tackle those separately. Anything else needed to finalize this PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@infomiho nice! Some changes are required: the main thing is I suggested some wording changes -> it is better to be redundant in this case and offer a bit longer explanation, then leave them wondering what this is about. I also wanted to let them know to reach out to us, so we learn about these issues.
I've adjusted the message 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good @infomiho !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job adding prettier, but it really makes it hard to review a PR, because there are so many changes and I have to check what is just formatting and what is something more!
It is usually advised to do formatting as a separate PR, not as part of another PR, for this reason.
Closes #1466
It updates the
fly-server.toml
file by replacing a line. The technique of replacing the line has already been used to setup some other things in the client TOML file.