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

Apps v2 - don't let fly regions commands work on v2 apps. #1990

Open
catflydotio opened this issue Mar 31, 2023 · 4 comments
Open

Apps v2 - don't let fly regions commands work on v2 apps. #1990

catflydotio opened this issue Mar 31, 2023 · 4 comments
Labels
apps-v2 bug Something isn't working

Comments

@catflydotio
Copy link
Contributor

We don't use the region pool in Apps v2, but I can create one for my v2 app:

$ fly regions set lhr
Region Pool: 
lhr
Backup Region: 
@catflydotio catflydotio added bug Something isn't working apps-v2 labels Mar 31, 2023
@catflydotio
Copy link
Contributor Author

Update: I think @dangra is going to add some V2 functionality to fly regions commands. There may still be cleanup to do after that, though.

@gbraad
Copy link

gbraad commented Apr 22, 2023

@catflydotio: I filed an issue (superfly/fly#300) ^^^, which probably ended up in the wrong repo. The command fly regions and fly scale act in very unexpected ways.

Especially, as fly deploy always seems to deploy 2 machines in the region, after I have used fly regions (even with a single 'primary' location).

Please have a look at the issue and let me know if more information is needed.

@catflydotio
Copy link
Contributor Author

catflydotio commented Apr 23, 2023

@gbraad As it stands, the region pool is not used by Apps V2; instead the app's regions are defined by where it has Machines. Hence this issue.

There's a new doc to explain how to use fly scale with Apps V2: https://fly.io/docs/apps/scale-count/

fly deploy deploys 2 Machines for resilience purposes. If the process group has services, Fly Proxy can autostart and autostop its Machines according to the concurrency settings you choose (https://fly.io/docs/apps/autostart-stop/). If the process group has no services, a second standby Machine is created but will only start in the case of the first Machine experiencing a host failure.

@gbraad
Copy link

gbraad commented Apr 24, 2023

Thanks for the links. This explains a lot about the behaviour I see.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
apps-v2 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants