Upgrade from v2025 to v3
This guide lists the major upgrade steps from RoadRunner v2025 with v5 plugins to RoadRunner v3 with v6 plugins. The linked reference pages contain the configuration examples and full behavior descriptions. See the v3 release notes for new features.
Keep version: "3" at the root of .rr.yaml. Source builds require Go 1.27 or later.
Application and Configuration Changes
HTTP middleware
Requests enter middleware from left to right. Reverse an existing v5 list to keep its execution order. See Middleware order.
HTTP/2
Use HTTP/2 prior knowledge for cleartext connections. HTTP/1.1 Upgrade: h2c is no longer supported. See HTTP/2.
AMQP
Move broker settings to named connections. Set config.connection for each pipeline. Move exchange and queue settings into their nested sections and remove AMQP config.version. See RabbitMQ.
Logging
Replace file_logger_options with output. Use an external tool for log rotation. Update JSON parsers for time and uppercase levels. Output is asynchronous; a full queue drops new records. See Logger.
Tracing
Replace the removed Zipkin exporter with OTLP. Use the server span to measure request latency; middleware spans end before the next handler starts. See OpenTelemetry.
RPC
Replace MessagePack with a supported codec. Goridge v4 supports JSON, protobuf, Gob, and raw payloads. See RPC.
Jobs
Reserve the pool job header for named-pool routing. Configure either jobs.pool or jobs.pools. The default pipeline_size is 100000. Set pipeline_size: 1000000 to keep the v5 limit. See Jobs.
NATS
Review stream retention and repeated-job handling. Stopping a pipeline now preserves messages unless stream deletion is enabled. A new consumer can receive retained messages again after restart. See NATS retention.
Centrifuge
Remove calls to centrifuge.RateLimit. Update direct clients for the supported DTOs and events. See Centrifuge.
Environment files
A root envfile is loaded without experimental mode. Supply the configured file or remove the setting. See Environment.
Server initialization
Values in server.on_init.env override inherited environment values. Use a command sequence for arguments that contain spaces. See Server.
Metrics
Update Jobs dashboards for counter types and separate requeue totals. See Metrics.
TCP plugin
RoadRunner v3 does not support the TCP plugin. Applications that use the tcp: plugin stay on RoadRunner v2025. This does not affect tcp:// transport for RPC or worker relays. See TCP.
Custom Go Plugins
Update RoadRunner library imports to
github.com/roadrunner-server/roadrunner/v3.Replace imports from
api/v4with generated bindings fromapi-go/v6or contracts fromapi-plugins/v6. Theapirepository contains protobuf schemas.Update plugin loggers to
*slog.Loggerand use the context-aware Jobs and KV contracts.Update worker pool imports to
pool/v2and Goridge imports togoridge/v4.Update custom builds to the Velox v3 module configuration.
See Writing a Plugin, Writing a Jobs Driver, and Building RR with a Custom Plugin for imports, signatures, and build examples.
Last updated