Skip to content

Never scaling past 1 runner #56

@willfore

Description

@willfore

This could be a misunderstanding on my part but from reading all of the documentation and everything else I can get my hands on I can't figure out why my setup will not utilize more than one runner. Here is my setup

      {
          FLAME.Pool,
          name: Demo.FlamePool,
          min: 0,
          max: 50,
          max_concurrency: 1,
          idle_shutdown_after: 30_000,
          timeout: 60_000,
          log: :debug
        }

The backend is configured properly in my runtime.exs file and setup for using Fly as:

config :flame, FLAME.FlyBackend,
    token: System.fetch_env!("FLY_API_TOKEN"),
    cpu_kind: "performance",
    cpus: 4,
    memory_mb: 8192

I am using FLAME.call for a function that gets called around 30 times in a short period of time. These are fairly long running functions (some more than the timeout) which I have adjusted the timeout option for to accommodate this and prevent for the runner being terminated. For the life of me I can't figure out why it's only ever choosing to run the jobs on one runner and never spawns more than one. What am I missing here? Any help would be greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions