Skip to content

Commit

Permalink
Replace Sunnyvale with Virginia (#7)
Browse files Browse the repository at this point in the history
That's our current hot-spot for image downloads

Signed-off-by: Gerhard Lazu <[email protected]>
  • Loading branch information
gerhard authored Jul 28, 2023
1 parent ec37fc1 commit 563d326
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion INFRASTRUCTURE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
This app is deployed to Fly.io as 3 instances:

1. 🇺🇸 Sunnyvale
1. 🇺🇸 Ashburn
2. 🇫🇷 Paris
3. 🇸🇬 Singapore

Expand Down
6 changes: 3 additions & 3 deletions magefiles/dagger.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const (
// https://fly.io/docs/reference/regions/#fly-io-regions
Paris = "cdg"
Singapore = "sin"
Sunnyvale = "sjc"
Ashburn = "iad"

// https://fly.io/docs/reference/configuration/#picking-a-deployment-strategy
DeployStrategy = "rolling" // Required when MaxInstancesPerRegion set to 1
Expand Down Expand Up @@ -175,7 +175,7 @@ func deploy(ctx context.Context, c *dagger.Client, imageRef string) {
"scale",
"count", InstancesToDeploy,
"--max-per-region", MaxInstancesPerRegion,
fmt.Sprintf("--region=%s,%s,%s", Sunnyvale, Paris, Singapore),
fmt.Sprintf("--region=%s,%s,%s", Ashburn, Paris, Singapore),
"--yes",
}).
Sync(ctx)
Expand Down Expand Up @@ -338,7 +338,7 @@ kill_timeout = 30
grace_period = "1s"
interval = "5s"
restart_limit = 0
timeout = "4s"`, appName, Sunnyvale)})
timeout = "4s"`, appName, Ashburn)})

return flyctl
}
Expand Down

0 comments on commit 563d326

Please sign in to comment.