8000 fix: Dont return toobusy errors for healthchecks. by 4censord · Pull Request #6102 · hedgedoc/hedgedoc · GitHub
[go: up one dir, main page]

Skip to content

fix: Dont return toobusy errors for healthchecks. - #6102

Merged
ErikMichelson merged 2 commits into
hedgedoc:masterfrom
4censord:fix/toobusy-healthchecks
Aug 14, 2025
Merged

ErikMichelson merged 2 commits into
hedgedoc:masterfrom
4censord:fix/toobusy-healthchecks

Conversation

@4censord
Copy link
Copy Markdown

Component/Part

Health checks

Description

When running on e.g. Kubernetes, failing health checks will cause hedgedoc to be restarted. 503 "too busy" errors count as failing.

This PR adds a special case to the too busy middleware, to ensure the /_health endpoint never gives toobusy errors.

Steps

  • Added implementation
  • Added / updated tests
  • Added / updated documentation
  • Added changelog snippet
  • I read the contribution documentation and
    made sure that:
    • My commits are signed-off to accept the DCO.
    • This PR targets the correct branch: master for 1.x & docs, develop for 2.x

Related Issue(s)

@ErikMichelson ErikMichelson left a comment
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good, thank you for this contribution!

If running with an orchestrator that restarts hedgedoc on failing
healthchecks, this causes it to enter a crashloop.

toobusy -> gets restarted -> everyone refreshes -> toobusy

Signed-off-by: Daniel Koschützki <daniel.koschuetzki@adfinis.com>
@ErikMichelson
ErikMichelson force-pushed the fix/toobusy-healthchecks branch from 9dc1cf5 to 4cf355d Compare August 14, 2025 13:27
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
@ErikMichelson
ErikMichelson force-pushed the fix/toobusy-healthchecks branch from 4cf355d to a451d13 Compare August 14, 2025 13:28
@ErikMichelson
ErikMichelson enabled auto-merge (rebase) August 14, 2025 13:29
@ErikMichelson
ErikMichelson merged commit c61bc6a into hedgedoc:master Aug 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants

0