Skip to content

docs: add 1.x to 2.x migration guide listing configuration changes - #1334

Open
pjfanning wants to merge 3 commits into
apache:mainfrom
pjfanning:docs-config-changes-2x
Open

pjfanning wants to merge 3 commits into
apache:mainfrom
pjfanning:docs-config-changes-2x

Conversation

@pjfanning

@pjfanning pjfanning commented Oct 8, 2026 •

Copy link
Copy Markdown
Member

Motivation

There was no Pekko HTTP 1.x to 2.x migration guide, so users had no single place to review new settings and changed defaults in the reference.conf files when upgrading. This is the pekko-http equivalent of apache/pekko#3513.

Modification

Add migration-guide/migration-guide-1.x-2.x.md, linked from the migration guide index, with a "Configuration Changes in Pekko HTTP 2.x" section based on diffing all src/main/resources/reference.conf files between the 1.2.x/1.4.x and main branches. It covers:

  • changed default values (pekko.http.server.enable-http2, pekko.http.server.preview.enable-http2, pekko.http.server.http2.frame-type-throttle.frame-types)
  • removed settings (pekko.http.server.remote-address-header)
  • new settings, grouped by module, with links to the relevant docs pages and the PRs that introduced each setting

Settings added in recent 1.x releases (1.3.0 and 1.4.1) are included too, with a note of the release that introduced them, for users upgrading from older 1.x versions.

The guide also has a "General changes" section (minimum Pekko/Java/Scala versions, removed deprecated code, Java DSL Duration return types, Jackson 3).

Related fixes:

  • configuration.md now shows the reference.conf of pekko-http-jackson, pekko-http-jackson3 and pekko-http-testkit, which it previously said had no configuration.
  • routing-dsl/testkit.md: fix the examples links that pointed at non-existent akka/... source paths, fix a typo, and mention pekko.http.testkit.routes.timeout.
  • common/marshalling.md: remove a leftover TODO that linked to a non-existent pekko-http issue (it referred to Fix marshalling docs for Java akka/akka-http#1367).
  • reference.conf: document pekko.http.parsing.max-chunk-count.

Result

Users migrating from Pekko HTTP 1.x to 2.x can review the configuration changes in one place.

Tests

  • sbt docs/paradox
  • sbt docs/paradoxValidateInternalLinks reports the same 19 errors as main, none in changed files

References

Motivation:
There was no Pekko HTTP 1.x to 2.x migration guide, so users had no
single place to review new settings and changed defaults in the
reference.conf files when upgrading.

Modification:
Add migration-guide-1.x-2.x.md with a Configuration Changes section
covering changed default values, removed settings and new settings,
grouped by module, with links to the originating PRs and the relevant
docs pages. Link it from the migration guide index.

Result:
Users migrating from Pekko HTTP 1.x to 2.x can review the
configuration changes in one place.

Tests:
- sbt docs/paradox

References:
None - sourced from diffing reference.conf files between the 1.4.x
and main branches
@pjfanning pjfanning added this to the 2.0.0-M3 milestone Oct 8, 2026
…ion page

Motivation:
The configuration page said modules other than core, routing, caching
and cors have no configuration, but pekko-http-jackson,
pekko-http-jackson3 and pekko-http-testkit all ship a reference.conf.

Modification:
Add snippets of those reference.conf files to configuration.md.

Result:
The configuration reference covers every module with settings.

Tests:
- sbt docs/paradox

References:
None
Motivation:
A review of the 1.x to 2.x migration guide and the pages it links to
found inaccuracies, missing migration notes and broken links.

Modification:
- Add a General changes section to the migration guide (minimum Pekko,
  Java and Scala versions, removed deprecated code, Java DSL Duration
  return types, Jackson 3 module).
- Correct how pekko.http.server.preview.enable-http2 interacts with
  pekko.http.server.enable-http2, and note that the RST_STREAM throttle
  fails connections that exceed the limit.
- Note that browser WebSocket connections are compressed by default and
  that the new chunk and part count limits may need raising.
- Note that pekko.http.testkit.routes.timeout applies to the Scala
  testkit, link it from the testkit page and fix a typo there.
- Fix testkit example links that pointed at non-existent akka paths.
- Remove a leftover TODO from the Java marshalling docs that linked to a
  non-existent pekko-http issue (it referred to akka/akka-http#1367).
- Document max-chunk-count in reference.conf.

Result:
The migration guide and the linked pages are accurate and the source
links resolve.

Tests:
- sbt docs/paradox
- docs/paradoxValidateInternalLinks reports the same 19 errors as main,
  none in changed files

References:
None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant