Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Add support for health check timeout configuration

Aperta
#2,366 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 8 giorni

@gururajsh ci sta già lavorando.

Dal 27/9/2024.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

feature-request

What's the user value of this feature request?
Health check configuration will be made more convenient for users not familiar with the CF APIs.

Who is the functionality for?
CF users willing to configure CF health checks via the CF CLI.

Who else is affected by the change?
This feature isn't a breaking change. It suggest to extend the current options supported by cf set-health-check.

Describe the solution you'd like
The CF V3 APIs support a timeout parameter as described in the docs. I'm suggesting to add an additional option to the cf set-health-check command which is called --timeout and can be used to configure the duration in seconds that health checks can fail before the process is restarted.

Describe alternatives you've considered
A workaround is to use the CF APIs directly to set the health check timeout. This can work like this:

cf app <my-app-name> --guid #get app guid
cf curl /v3/apps/<app-guid>/processes #list app processes information
cf curl -H "Content-Type: application/json" -X PATCH -d @health-conf.json /v3/processes/<process-from-previous-command> 

The content of health-conf.json could be something like this:

...
"health_check": {
        "type": "http",
        "data": {
          "timeout": 120,
          "invocation_timeout": null,
          "endpoint": "/health"
        }
      }
...
Lingua principale
Go
Stelle
1.9k
Fork
989
Merge medio
3g 17h
PR unite (30g)
10

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di cloudfoundry/cli

Tutte le issue di cloudfoundry/cli

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.