Skip to content

Commit

Permalink
Use spawn for multiple agents
Browse files Browse the repository at this point in the history
... on Debian, Red Hat, and Ubuntu docs.
  • Loading branch information
DrJosh9000 committed Jul 10, 2023
1 parent 23c3cd2 commit fd7fb8d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 57 deletions.
2 changes: 2 additions & 0 deletions pages/agent/v3/_linux_multiple_agents.md
Original file line number Diff line number Diff line change
@@ -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.
20 changes: 1 addition & 19 deletions pages/agent/v3/debian.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
20 changes: 1 addition & 19 deletions pages/agent/v3/redhat.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
20 changes: 1 addition & 19 deletions pages/agent/v3/ubuntu.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit fd7fb8d

Please sign in to comment.