How can I improve my frontend loading?

Describe the problem/error/question

My load time for my workflow and frontend are rather slow. I also have trouble executing test mode effectively. Often, the test execution gets run and can be seen in the executions but it doesn’t show up in the editor. In the editor, it will be an infinite “executing…” until I hit “Stop”.

My setup for N8N is straightforward.
I’m not using Queue Mgmt yet.
Deployed on Fly.io using fly.toml docker
DB: Supabase Postgres

Any suggestions on how I can improve?

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
    (1.84.1)
  • Database (default: SQLite):
    Postgres (Supabase)
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
    Docker in Fly.io
  • Operating system:
    Linux

Sounds like you do not have web socket support enabled. Do you have a reverse proxy or something running?
Not sure about flyio, if that would be doing something.

app = '<censored>-n8n'
primary_region = 'iad'
kill_signal = "SIGINT"
kill_timeout = 180

[build]
  image = 'n8nio/n8n:latest'

[env]


  GENERIC_TIMEZONE = 'America/Los_Angeles'
  N8N_DIAGNOSTICS_ENABLED = 'false'
  N8N_HIRING_BANNER_ENABLED = 'false'
  N8N_TEMPLATES_ENABLED="false"
  N8N_HOST = '<censored>-n8n.fly.dev'
  N8N_PORT = '8080'
  N8N_PROTOCOL = 'https'
  TINI_SUBREAPER = 'true'
  WEBHOOK_URL = 'https://<censored>-n8n.fly.dev/'

# Performance optimizations
  N8N_METRICS="true"
  EXECUTIONS_DATA_PRUNE = 'false'

# PostgreSQL configuration for n8n
  DB_TYPE = "postgresdb"
  DB_POSTGRESDB_HOST = "supabase"
  DB_POSTGRESDB_PORT = "<censored>"
  DB_POSTGRESDB_DATABASE = "<censored>"
  DB_POSTGRESDB_USER = "<censored>"
  DB_POSTGRESDB_SCHEMA = "<censored>"

  N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS = 'true'
  N8N_USER_FOLDER = '/home/node'
  NODE_FUNCTION_ALLOW_EXTERNAL = "moment, lodash"
  NODE_FUNCTION_ALLOW_BUILTIN="*" # Allow all built-in modules

[[mounts]]
  source = 'n8n_vol'
  destination = '/home/node/.n8n'
  auto_extend_size_threshold = 80
  auto_extend_size_increment = '1GB'
  auto_extend_size_limit = '10GB'

[http_service]
  internal_port = 8080
  force_https = true
  auto_stop_machines = true
  auto_start_machines = true
  min_machines_running = 3
  processes = ['app']

  [http_service.concurrency]
    type = 'connections'
    hard_limit = 200
    soft_limit = 10

[[vm]]
  cpu_kind = 'shared'
  cpus = 4
  memory_mb = 1024

Does this help?

how can I turn on web socket support in n8n?

I have no idea how this thing you share works, but you need to add it somewhere in there. It isnt a setting in n8n but in your reverse proxy.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.