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

WPB 2690 #4098

Merged
merged 7 commits into from
Jun 20, 2024
Merged

WPB 2690 #4098

merged 7 commits into from
Jun 20, 2024

Conversation

smatting
Copy link
Contributor

@smatting smatting commented Jun 19, 2024

charts/coturn: support putting coturn into 'drain' mode when terminating pods, denying new incoming client connections. This speeds up graceful coturn restarts significantly. See related PR wireapp/coturn#15 and wireapp/coturn#12

drive-by fixes:

  • use dumb-init to start the container to correctly handle signal handling in general
  • write process PID to a writable file when running as non-root user

Checklist

  • Add a new entry in an appropriate subdirectory of changelog.d
  • Read and follow the PR guidelines

@zebot zebot added the ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist label Jun 19, 2024
@jschaul jschaul marked this pull request as ready for review June 20, 2024 16:06
Comment on lines +29 to +30
pidfile="/var/tmp/turnserver.pid"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was added only to prevent a warning

Comment on lines +130 to +131
- /usr/bin/dumb-init
- --
Copy link
Contributor Author

@smatting smatting Jun 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't strictly know if this is needed, but we've seen that processes linger around after pod is killed, but weren't able to reproduce. Having an init gives additional guarantees and should prevent subprocesses from remaining after the main process has been killed.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(were not able to reproduce - or actually didn't spend the time to try out the real previous configuration to reproduce it)

@jschaul jschaul merged commit 5b1e57c into develop Jun 20, 2024
7 of 9 checks passed
@jschaul jschaul deleted the WPB-2690 branch June 20, 2024 16:23
@mastaab mastaab added the echoes: product-roadmap Work aligned with the customer-announced roadmap, targeting a specific release date. label Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
echoes: product-roadmap Work aligned with the customer-announced roadmap, targeting a specific release date. ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants