[FEAT] Add possibility to change timeout from env variables or something

Open
#45 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
52/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
docker

Research direction

Start by reviewing the existing haproxy.cfg and the /templates/haproxy.cfg mounting workflow, then inspect how docker-compose.yml supplies container environment variables. Define the timeout settings that should be configurable and verify that long-running Docker operator requests no longer end prematurely without requiring a custom configuration file.

Written by the indexing model from the issue text.

Description

enhancement no-issue-activity
Is this a new feature request?
  • I have searched the existing issues
Wanted change

I am using lscr.io/linuxserver/socket-proxy:latest image on my airflow project.
Some of my tasks are docker operators, and some of them takes some time to compute (more than an hour), and for these, I got a Response ended prematurely error related to timeout settings too low from the haproxy.cfg.

I found the solution here:
https://github.com/apache/airflow/discussions/58614

For now, I just downloaded the haproxy.cfg file in the container, increase timeout server value and them, I mount this file in /templates/haproxy.cfg in my docker-compose.yml

Reason for change

I think it could be useful and easier for people to configure timeout parameters from docker environment variables instead of mounting a custom .cfg file.

Proposed code change

No response

Dominant language
Dockerfile
Stars
317
Forks
13
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from linuxserver/docker-socket-proxy

All issues in linuxserver/docker-socket-proxy

Similar issues

More DevOps issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.