Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. N8N
  3. n8n / Cloudron Performance Discussion & Best Practice

n8n / Cloudron Performance Discussion & Best Practice

Scheduled Pinned Locked Moved N8N
4 Posts 2 Posters 104 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    umnz
    wrote last edited by
    #1

    Hey everyone,

    I'm currently running an instance of Cloudron with n8n (version 1.107.4) and I'm trying to determine what the best configuration is for performance out of the box since I'm experiencing frequent issues, laggy interface and occasional connection timeouts.

    I have an instance with 4 vCPU + 8GB of RAM. By default, it looks like Cloudron allocates 256MB to Postgres and Redis.

    When I run a n8n app, I cannot get it to exceed 100% CPU out of 400% available CPU. The UI frequently locks up when processes are being run - and upon further investigation it looks like Postgres is being maxed.

    So I increased memory to 2GB for Postgres and Redis via the services panel in Cloudron. 2GB for Postgres was quickly filled and performance improved a little bit. But Redis use didn't change at all. I'm using whatever configuration n8n is set up for out of the box.

    I then pumped Postgres up to 4GB and its currently sitting at 70% again, performance seems to have improved a little bit but I cannot get n8n to use more than 100% CPU of 400%. I've confirmed at the VPS level that only 25% of the CPU is being used. Does anyone know how to get n8n to use more CPU? It is set to 100% in the Resource Panel.

    My workflows are relatively simple workflows that use scheduled triggers as well as web hooks. They basically check and/or send emails so the types of nodes I'm using are Outlook, Teams etc. Nothing I would consider to be insanely intensive. I'm also only running about 10 active workflows.

    I'm hoping others might find this post and share their thoughts / configurations / tips / tricks etc.

    1 Reply Last reply
    0
    • nebulonN Offline
      nebulonN Offline
      nebulon
      Staff
      wrote last edited by
      #2

      By default Cloudron does not restrict CPU usage per app (unless a limit is manually set). So presumably n8n itself is only single-threaded and thus only uses one CPU core at a time. This would mean you would have to increase the single-core performance of your server instead of adding more cores. This depends on the VPS provider in this case then and is likely not related to Cloudron as such.

      For redis, I am not sure how n8n uses redis and if that would improve your situation or if they use it for something which isn't your bottleneck.

      U 1 Reply Last reply
      0
      • nebulonN nebulon

        By default Cloudron does not restrict CPU usage per app (unless a limit is manually set). So presumably n8n itself is only single-threaded and thus only uses one CPU core at a time. This would mean you would have to increase the single-core performance of your server instead of adding more cores. This depends on the VPS provider in this case then and is likely not related to Cloudron as such.

        For redis, I am not sure how n8n uses redis and if that would improve your situation or if they use it for something which isn't your bottleneck.

        U Offline
        U Offline
        umnz
        wrote last edited by
        #3

        @nebulon thanks for the insights.

        Is it normal for Postgres to look like this all the time? It was like this at 256, 512, 1GB and now 4GB of RAM. The system information doesn't match the RAM allocation that's being reported.

        a55cbc64-da97-4fdf-8895-a5aca2d80475-image.png

        80bc31d9-db90-44be-92d9-af9cc9c098f4-image.png

        1 Reply Last reply
        0
        • nebulonN Offline
          nebulonN Offline
          nebulon
          Staff
          wrote last edited by
          #4

          It is not unusual that the memory usage for a service like postgres is filled up. Generally if memory is available it is good to be utilized, however since a database engine doesn't know what else is on the system, we have that limit, otherwise it might just use up everything for caching.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Bookmarks
          • Search