superfly / flyctl

Command line tools for fly.io services
https://fly.io
Apache License 2.0
1.41k stars 235 forks source link

fly deploy is very slow #2824

Open andrecasal opened 1 year ago

andrecasal commented 1 year ago

Describe the bug Briefly, describe what broke and provide the following details:

** Paste your fly.toml

app = "andrecasal-com"
primary_region = "mad"
kill_signal = "SIGINT"
kill_timeout = 5
processes = [ ]

[experimental]
allowed_public_ports = [ ]
auto_rollback = true

[mounts]
source = "data"
destination = "/data"

[deploy]
release_command = "node ./other/sentry-create-release"

[[services]]
internal_port = 8_080
processes = [ "app" ]
protocol = "tcp"
script_checks = [ ]

  [services.concurrency]
  hard_limit = 100
  soft_limit = 80
  type = "connections"

  [[services.ports]]
  handlers = [ "http" ]
  port = 80
  force_https = true

  [[services.ports]]
  handlers = [ "tls", "http" ]
  port = 443

  [[services.tcp_checks]]
  grace_period = "1s"
  interval = "15s"
  restart_limit = 0
  timeout = "2s"

  [[services.http_checks]]
  interval = "10s"
  grace_period = "5s"
  method = "get"
  path = "/resources/healthcheck"
  protocol = "http"
  timeout = "2s"
  tls_skip_verify = false
  headers = { }

Command output:

It's just extremelly slow on the transferring context: 50.26MB part.

redjonzaci commented 1 year ago

I noticed this too while going through https://fly.io/docs/django/getting-started/: 146 seconds for 56.08MB. I don't know what happens during that phase tho.