diff --git a/pages/agent/v3/_linux_multiple_agents.md b/pages/agent/v3/_linux_multiple_agents.md new file mode 100644 index 0000000000..3c9348b50b --- /dev/null +++ b/pages/agent/v3/_linux_multiple_agents.md @@ -0,0 +1,2 @@ +You can run as many parallel agent workers on the one machine as you wish with +the `spawn` configuration setting, or by passing the `--spawn` flag. \ No newline at end of file diff --git a/pages/agent/v3/debian.md b/pages/agent/v3/debian.md index 5ac6d9958a..344d39613f 100644 --- a/pages/agent/v3/debian.md +++ b/pages/agent/v3/debian.md @@ -88,25 +88,7 @@ On Debian, the Buildkite agent runs as user `buildkite-agent`. ## Running multiple agents -You can run as many parallel agents on the one machine as you wish by duplicating the systemd/upstart service configuration file, for example: - -```shell -# Disable the default unit -sudo systemctl stop buildkite-agent && sudo systemctl disable buildkite-agent - -# Create a systemd template -sudo cp /lib/systemd/system/buildkite-agent.service /etc/systemd/system/buildkite-agent@.service - -# Now, as many times as you like -sudo systemctl enable buildkite-agent@1 && sudo systemctl start buildkite-agent@1 -sudo systemctl enable buildkite-agent@2 && sudo systemctl start buildkite-agent@2 - -# Follow them all -sudo journalctl -f -u "buildkite-agent@*" - -# Or one-by-one -sudo journalctl -f -u buildkite-agent@2 -``` +<%= render_markdown partial: 'agent/v3/linux_multiple_agents' %> ## Upgrading diff --git a/pages/agent/v3/redhat.md b/pages/agent/v3/redhat.md index 971707c5c1..e419b49c1d 100644 --- a/pages/agent/v3/redhat.md +++ b/pages/agent/v3/redhat.md @@ -72,25 +72,7 @@ On RedHat, the Buildkite agent runs as user `buildkite-agent`. ## Running multiple agents -You can run as many parallel agents on the one machine as you wish by duplicating the systemd service configuration file, for example: - -```shell -# Disable the default unit -sudo systemctl stop buildkite-agent && sudo systemctl disable buildkite-agent - -# Create a systemd template -sudo cp /usr/lib/systemd/system/buildkite-agent.service /etc/systemd/system/buildkite-agent@.service - -# Now, as many times as you like -sudo systemctl enable buildkite-agent@1 && sudo systemctl start buildkite-agent@1 -sudo systemctl enable buildkite-agent@2 && sudo systemctl start buildkite-agent@2 - -# Follow them all -sudo journalctl -f -u "buildkite-agent@*" - -# Or one-by-one -sudo journalctl -f -u buildkite-agent@2 -``` +<%= render_markdown partial: 'agent/v3/linux_multiple_agents' %> ## Upgrading diff --git a/pages/agent/v3/ubuntu.md b/pages/agent/v3/ubuntu.md index 6d2c094390..fe11c837c6 100644 --- a/pages/agent/v3/ubuntu.md +++ b/pages/agent/v3/ubuntu.md @@ -69,25 +69,7 @@ See the [Agent SSH keys](/docs/agent/v3/ssh-keys) documentation for more details ## Running multiple agents -You can run as many parallel agents on the one machine as you wish by duplicating the upstart service configuration file, for example: - -```shell -# Disable the default unit -sudo systemctl stop buildkite-agent && sudo systemctl disable buildkite-agent - -# Create a systemd template -sudo cp /lib/systemd/system/buildkite-agent.service /etc/systemd/system/buildkite-agent@.service - -# Now, as many times as you like -sudo systemctl enable --now buildkite-agent@1 -sudo systemctl enable --now buildkite-agent@2 - -# Follow them all -sudo journalctl -f -u "buildkite-agent@*" - -# Or one-by-one -sudo journalctl -f -u buildkite-agent@2 -``` +<%= render_markdown partial: 'agent/v3/linux_multiple_agents' %> ## Upgrading