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

Noble Numbat stemcell no longer uses runit to launch the agent #322

Open
Tracked by #892
aramprice opened this issue Feb 21, 2024 · 6 comments
Open
Tracked by #892

Noble Numbat stemcell no longer uses runit to launch the agent #322

aramprice opened this issue Feb 21, 2024 · 6 comments
Assignees
Labels

Comments

@aramprice
Copy link
Member

Currently the bosh-agent is started using a separate process manager runit.

This issue proposed removing runit in favor of the existing process manager on Ubuntu, systemd.

Having a single process management system allows that system to optimize startup across all processes in the system hopefully speeding up the time-to-ready for the whole system.

This is related to though not dependent on replacing monit (also with systemd).

@ramonskie
Copy link
Contributor

ramonskie commented Mar 26, 2024

when moving the agent and monit to systemd.
i noticed that chpst is used in almost all bosh releases which will run a program with the user vcap
chpst is a component from runit. so we still need to have runit.
there is an option to replace it chpst -u vcap:vcap with:

  • runuser- u vcap -g vcap executable
  • systemd-run --uid vcap --guid vcap
  • setpriv--reuid vcap --regid vcap

@rkoster
Copy link
Contributor

rkoster commented Apr 3, 2024

As discovered by Ramon: the agent also invokes runit directly to start monit: https://github.com/cloudfoundry/bosh-agent/blob/main/platform/monit_retryable.go#L20
This should become configurable similar to: cloudfoundry/bosh-agent#324

@jpalermo
Copy link
Member

jpalermo commented Apr 4, 2024

We should consider what we want to do with bosh-lite too. We could keep runit just on the warden stemcells or we could come up with an alternative (since systemd doesn't run under warden stemcells)

@ramonskie
Copy link
Contributor

in the meantime i have removed the runit units for monit and the agent and converted them to systemd services
c27910f

@beyhan
Copy link
Member

beyhan commented Nov 8, 2024

This is still open because of #352. Or @ramonskie is there anything else open for this topic?

@ramonskie
Copy link
Contributor

yes its still open due to warden bosh-lite. as runc is still installed currently also to support chpst commands used in most bosh releases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Pending Review | Discussion
Development

No branches or pull requests

5 participants