Skip to content

Adding a proxy in front of web #126

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

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Conversation

ssoriche
Copy link
Contributor

@ssoriche ssoriche commented Mar 16, 2025

Using caddy as a reverse proxy in a sidecar container to handle connections. This allows the proxy to hold the keep alive connections instead of the perl application. This allows the perl workers to disconnect.

Caddy provides metrics about the number of requests and the responses it is returning.

Also lowered the number of workers for the perl web server, the proxy should provide some offloading and allow for less workers, which has reduced the amount of memory the container is using.

The caddy proxy will handle long lived connections, and provide metrics
for requests and statuses.
The caddy proxy allows for scraping of metrics, add in the configuration
to enable that scraping by prometheus.
Switch the service port to the proxy sending all traffic through it
before reaching the web containers. Reduce the number of workers for web
as the connection handling is now handled by the proxy.
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