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

Ensure app deploys work as expected on Fly.io machines #475

Merged
merged 1 commit into from
Jul 15, 2023

Conversation

gerhard
Copy link
Member

@gerhard gerhard commented Jul 15, 2023

Following the migration to Fly.io machines, we needed to make sure that:

  • deploys work as expected
  • there is an extra app instance - flyctl scale count 2 did the trick
    • 👍 we are now running 2 app instances, no request degradation or error traces in Honeycomb.io, and no new exceptions in Sentry.io
  • existing fly.toml is valid
    • 👍 yes, the config works fine for machines, only tweaked a few values

All in all, this was much smoother than expected. All merit goes to Fly.io 💪

Other improvements:

Next step: migrate PostgreSQL manually & upgrade to latest 14.x while at it.

@gerhard gerhard force-pushed the migrate-app-to-fly-machines branch from 6415118 to ec2cf79 Compare July 15, 2023 11:09
@gerhard gerhard changed the title Ensure that deploys work as expected on machines Ensure app deploys work as expected on Fly.io machines Jul 15, 2023
@gerhard gerhard force-pushed the migrate-app-to-fly-machines branch from ec2cf79 to 464e4a9 Compare July 15, 2023 11:10
@gerhard
Copy link
Member Author

gerhard commented Jul 15, 2023

@jerodsanto we are now running 2 instances of our app. Everything is OK.

flyctl status

App
  Name     = changelog-2022-03-13
  Owner    = changelog
  Hostname = changelog-2022-03-13.fly.dev
  Image    = thechangelog/changelog-prod:2c261662860cd0062c8d91a065d11ac0a89cb2ec.dev
  Platform = machines

Machines
PROCESS	ID            	VERSION	REGION	STATE  	ROLE	CHECKS            	LAST UPDATED
app    	1857264a157478	286    	iad   	started	    	1 total, 1 passing	2023-07-15T10:50:18Z
app    	e784457f422618	286    	iad   	started	    	1 total, 1 passing	2023-07-15T10:50:48Z

Following the migration to machines, we needed to make sure that:
- deploys work as expected
  - 👍 all good since bluegreen is now supported:
    https://community.fly.io/t/finally-bluegreen-deployments-for-appsv2/13851
- there is an extra app instance - `flyctl scale count 2` did the trick
  - 👍 we are now running 2 app instances, no request degradation or
    error traces in Honeycomb.io, and no new exceptions in Sentry.io
- existing `fly.toml` is valid
  - 👍 yes, the config works fine for machines, only tweaked a few values

All in all, this was much smoother than expected. All merit goes to Fly.io 💪

Other improvements:
- bump `flyctl` to latest
- bump `dagger` to latest-1 (waiting for
  dagger/dagger#5450)
- fix local deploys
    - yes, we still have the option to deploy straight to production from local 💚

Next step: migrate PostgreSQL manually & upgrade to latest `14.x` while at it.

Signed-off-by: Gerhard Lazu <[email protected]>
@gerhard gerhard force-pushed the migrate-app-to-fly-machines branch from 464e4a9 to 4586f51 Compare July 15, 2023 15:50
@gerhard gerhard merged commit 9378fbf into thechangelog:master Jul 15, 2023
3 checks passed
@gerhard gerhard deleted the migrate-app-to-fly-machines branch July 15, 2023 16:03
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

Successfully merging this pull request may close these issues.

1 participant