Skip to content

feat: systemd support#295

Open
jason-lynch wants to merge 3 commits intofeat/PLAT-417/rename-binaryfrom
feat/PLAT-417/systemd
Open

feat: systemd support#295
jason-lynch wants to merge 3 commits intofeat/PLAT-417/rename-binaryfrom
feat/PLAT-417/systemd

Conversation

@jason-lynch
Copy link
Member

Summary

Adds preliminary support for orchestrating pgEdge Enterprise Postgres databases using SystemD instead of Docker Swarm.

Testing

This PR includes a lima-based development environment. See the changes in running-locally.md for complete instructions. If you're already set up to run the lima-based E2E fixtures, you can do:

# install circus
pipx install --include-deps circus

# deploy the dev-lima environment. this is more similar to the compose environment in
# that all ports are exposed on your host machine and we mount the project directory
# into all of the VMs.
make dev-lima-deploy

# that will take a while to set everything up
# once it's done, you can run the environment
make dev-lima-run

# then, in a new terminal, you can use the new dev-lima environment
use-dev-lima
cp1-req get-version
cp1-ssh
# etc..

# you can also run E2Es against this environment
make test-e2e E2E_PARALLEL=4 E2E_FIXTURE=dev-lima

Notes for Reviewers

As of this PR, the control-plane server does not respond to upgrades or other package changes that happen after the server starts. If you install a minor version update, you will be blocked from updating existing databases until you:

  • Performed the same upgrade on all hosts that are running the database
  • Update the postgres_version in your database spec

This will change in a subsequent PR.

PLAT-417

@coderabbitai
Copy link

coderabbitai bot commented Mar 9, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 22d84f9c-8ec0-4704-a275-b46cad3aaefe

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/PLAT-417/systemd
📝 Coding Plan
  • Generate coding plan for human review comments

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@jason-lynch jason-lynch force-pushed the feat/PLAT-417/rename-binary branch from 5b65dd1 to 7512d78 Compare March 9, 2026 22:37
@jason-lynch jason-lynch force-pushed the feat/PLAT-417/systemd branch 4 times, most recently from 0292169 to fecca31 Compare March 10, 2026 14:33
@jason-lynch jason-lynch force-pushed the feat/PLAT-417/rename-binary branch from 3b2cb2d to 1811d33 Compare March 10, 2026 14:33
@jason-lynch jason-lynch force-pushed the feat/PLAT-417/systemd branch 2 times, most recently from 8cb89f9 to c752911 Compare March 10, 2026 16:39
@jason-lynch jason-lynch force-pushed the feat/PLAT-417/rename-binary branch from 32a39ff to 1ef89d0 Compare March 10, 2026 16:39
@jason-lynch jason-lynch force-pushed the feat/PLAT-417/systemd branch from c752911 to 9c4262c Compare March 10, 2026 21:01
@jason-lynch jason-lynch force-pushed the feat/PLAT-417/rename-binary branch from 32ef891 to 5c8c403 Compare March 11, 2026 12:58
@jason-lynch jason-lynch force-pushed the feat/PLAT-417/systemd branch from 9c4262c to e179f4c Compare March 11, 2026 12:58
@jason-lynch jason-lynch force-pushed the feat/PLAT-417/rename-binary branch from 5c8c403 to 79fbfc1 Compare March 11, 2026 13:25
@jason-lynch jason-lynch force-pushed the feat/PLAT-417/systemd branch from e179f4c to 40f2797 Compare March 11, 2026 13:25
@jason-lynch jason-lynch force-pushed the feat/PLAT-417/rename-binary branch from 79fbfc1 to b1b5cae Compare March 11, 2026 13:43
@jason-lynch jason-lynch force-pushed the feat/PLAT-417/systemd branch from 40f2797 to 0e319c3 Compare March 11, 2026 13:43
@jason-lynch jason-lynch force-pushed the feat/PLAT-417/rename-binary branch from b1b5cae to 3b749f2 Compare March 11, 2026 13:49
@jason-lynch jason-lynch force-pushed the feat/PLAT-417/systemd branch from 0e319c3 to 900598e Compare March 11, 2026 13:49
@jason-lynch jason-lynch force-pushed the feat/PLAT-417/rename-binary branch from 3b749f2 to ccf2e10 Compare March 12, 2026 19:29
@jason-lynch jason-lynch force-pushed the feat/PLAT-417/systemd branch from 900598e to e181cc5 Compare March 12, 2026 19:29
Adds an orchestrator implementation for SystemD. As of this commit,
you'll need to install Postgres on the host before starting the Control
Plane:

```
dnf install -y epel-release dnf
dnf config-manager --set-enabled crb
dnf update -y --allowerasing
dnf install -y https://dnf.pgedge.com/reporpm/pgedge-release-latest.noarch.rpm
dnf install -y \
      pgedge-postgresql18 \
      pgedge-spock50_18 \
      pgedge-snowflake_18 \
      pgedge-lolor_18 \
      pgedge-postgresql18-contrib \
      pgedge-pgbackrest \
      pgedge-python3-psycopg2
pip install 'patroni[etcd,jsonlogger]==4.1.0'
```

You'll also need to temporarily disable SELinux:

```
setenforce 0
```

This will need to be repeated after each restart. We're going to avoid
disabling it completely and instead include an SELinux policy in our
packages.

PLAT-417
Adds a development environment for the SystemD orchestrator, called
`dev-lima`. Just like the `compose` environment, this environment
exposes all services and databases on your host machine.
Adds support for running E2Es against the `dev-lima` environment.

PLAT-417
@jason-lynch jason-lynch force-pushed the feat/PLAT-417/rename-binary branch from ccf2e10 to 7607b74 Compare March 12, 2026 21:17
@jason-lynch jason-lynch force-pushed the feat/PLAT-417/systemd branch from e181cc5 to 42824fe Compare March 12, 2026 21:17
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