Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

neon_local init: write pageserver.toml directly; no pageserver --init --config-override #7638

Merged
merged 46 commits into from
May 8, 2024

Conversation

problame
Copy link
Contributor

@problame problame commented May 7, 2024

This does to neon_local what https://github.com/neondatabase/aws/pull/1322 does to our production deployment.

After both are merged, there are no users of pageserver --init / pageserver --config-override left, and we can remove those flags eventually.

problame added 30 commits May 3, 2024 12:35
…side of `neon_local init`

The `NeonCli.init()` persists the non-default pageserver config values
for remote storage & `NeonEnvBuilder.pageserver_config_override` in
`pageserver.toml`.

We don't need to repeat them on each pageserver start after that.
…blame/test-suite-narrow-pageserver-config-override
Rewrite the pageserver.toml instead.
This allows inlining append_pageserver_param_overrides into NeonCli.init()
…age during init, not start"

This reverts commit 511f593.
…into problame/remove-pageserver-config-overrides
…into problame/remove-pageserver-config-overrides
…into problame/remove-pageserver-config-overrides

Conflicts:
	control_plane/src/pageserver.rs
    => pick ours
problame added 14 commits May 5, 2024 16:53
…into problame/remove-pageserver-config-overrides
The  test_forward_compatibility test runs the old production binaries,
but is supposed to always run the latest neon_local binary.

I think commit 6acbee2 broke that by accident because in that commit,
from_repo_dir is introduced and runs an `init_start()` before the
`test_forward_compatibility` gets a chance to patch up the
neon_local_binpath.
…ame/neon-local-init-dont-use-config-override
@problame problame requested a review from VladLazar May 7, 2024 15:56
@problame problame changed the title neon_local init: write pageserver.toml directly; no pageserver --init --config-override neon_local init: write pageserver.toml directly; no pageserver --init --config-override May 7, 2024
control_plane/src/local_env.rs Show resolved Hide resolved
Base automatically changed from problame/remove-pageserver-config-overrides to main May 7, 2024 16:30
Copy link

github-actions bot commented May 7, 2024

3096 tests run: 2963 passed, 0 failed, 133 skipped (full report)


Flaky tests (5)

Postgres 16

  • test_detached_receives_flushes_while_being_detached[True]: debug
  • test_vm_bit_clear_on_heap_lock: debug

Postgres 15

  • test_partial_evict_tenant[relative_spare]: release

Postgres 14

  • test_lock_time_tracing: release
  • test_detached_receives_flushes_while_being_detached[True]: debug

Code coverage* (full report)

  • functions: 31.2% (6258 of 20042 functions)
  • lines: 46.7% (46950 of 100477 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
bf2af40 at 2024-05-08T09:11:33.913Z :recycle:

@problame problame enabled auto-merge (squash) May 7, 2024 17:02
@problame problame merged commit 02d4286 into main May 8, 2024
53 checks passed
@problame problame deleted the problame/neon-local-init-dont-use-config-override branch May 8, 2024 09:03
a-masterov pushed a commit that referenced this pull request May 20, 2024
…-init --config-override` (#7638)

This does to `neon_local` what
neondatabase/aws#1322 does to our production
deployment.

After both are merged, there are no users of `pageserver --init` /
`pageserver --config-override` left, and we can remove those flags
eventually.
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.

None yet

3 participants