Feature: Configuration to set maximum parallelization of :parallel runner
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 35/100
Línea de trabajo
Comienza leyendo las implementaciones de SSHKit de los runners :parallel y :groups y cómo se aplica default_runner_config. Compara las configuraciones propuestas de limit y threads y, a continuación, verifica que un runner predeterminado con límites funcione para las operaciones de deployment sin requerir rate limiting específico de SCM.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
There have been multiple requests to set an upper limit on the number of git operations that are executed in parallel in the default Capistrano git strategy. Similarly, users are also asking for a limit on the number of parallel bundle install executions in capistrano-bundler.
What these tasks have in common is that they all use the default :parallel runner provided by SSHKit. When using Capistrano to deploy to a large number of servers, firing off these operations to all servers in parallel can overload shared resources like a git server or private gem repository.
Rather than implement rate limiting for each SCM, capistrano-bundler, etc., I feel like a more general solution should be provided by SSHKit itself.
My proposal would be to change the implementation of the :parallel runner to essentially be a subclass of the :groups runner, except with defaults of wait: 0 and limit: INFINITY. Then, if a user wants to limit the amount of parallelization, they could simply do this:
# Limit the default :parallel runner to 10 threads
SSHKit.config.default_runner_config = { limit: 10 }
If sharing implementation and configuration keys between :parallel and :groups is too confusing, then perhaps the :parallel runner could use a different configuration key (but to the same effect):
# Limit the default :parallel runner to 10 threads
SSHKit.config.default_runner_config = { threads: 10 }
Thoughts?
See also:
- Lenguaje dominante
- Ruby
- Estrellas
- 1.2k
- Forks
- 257
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de capistrano/sshkit
-
should have an openssh backend Abierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
capistrano/sshkit#563 · 6 reacciones ·
-
No redaction for with values Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 45/100
capistrano/sshkit#562 ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 48/100
capistrano/sshkit#554 · 3 comentarios ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
capistrano/sshkit#543 · 2 comentarios ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 45/100
capistrano/sshkit#518 · 1 comentario ·
Todos los issues de capistrano/sshkit
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
hanami/hanami-cli#449 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
resque/resque-scheduler#826 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100