Never scaling past 1 runner

Abierto
#56 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
25/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
elixir
Área
backend, cloud

Línea de trabajo

Start by reviewing the FLAME.Pool configuration, especially max_concurrency, and the FLAME.FlyBackend settings in runtime.exs. Reproduce the behavior with roughly 30 concurrent FLAME.call invocations and debug logging enabled, then determine why additional runners are not spawned and document or fix the cause.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Elixir
Estrellas
1.2k
Forks
68
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de phoenixframework/flame

Todos los issues de phoenixframework/flame

Issues similares

Más issues de Elixir

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.