# Manual workers scaling

## Introduction

This feature became available starting from the RoadRunner `2023.3` release. Users can now scale their RoadRunner workers dynamically via RPC. A new class, `Spiral\RoadRunner\WorkerPool`, has been introduced to provide an easy interface to **add** or **remove** workers from the RoadRunner workers pool.

### Limitations

* This feature is not available when running RoadRunner in debug mode (`pool.debug=true`).

### Usage

Below is a brief example demonstrating how to use this new feature:

{% code title="worker.php" %}

```php
use Spiral\RoadRunner\WorkerPool;
use Spiral\Goridge\RPC\RPC;

$rpc = RPC::create('tcp://127.0.0.1:6001');
$pool = new WorkerPool($rpc);

// Add a worker to the pool.
$pool->addWorker('http');

// Remove a worker from the pool.
$pool->removeWorker('http');
```

{% endcode %}

### List of supported plugins

* `http`, `grpc`, `temporal`, `centrifuge`, `tcp`, `jobs`.

This provides developers with more control and flexibility over their RoadRunner setup, allowing for better resource allocation based on the needs of their application.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.roadrunner.dev/docs/php-worker/manual-scaling.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
