Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-25247

Health endpoint reporting the initialization state, and an option to initialize eagerly at startup

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Unresolved
    • Major
    • None
    • 18.8.0
    • Containers, Old Core
    • None
    • Unknown

    Description

      Kubernetes readiness and liveness probes need an endpoint that answers without waiting for XWiki to initialize and tells whether the instance is starting, running data migrations, running the Distribution Wizard, ready or failed. Today /rest blocks until initialization completes and view URLs return 202 while initializing.

      Proposal: a /health servlet (JSON, 200 when ready, 503 otherwise) aggregating readiness indicators provided by oldcore and extension-distribution, plus a core.initialization.eager property to start the initialization at servlet context start instead of at the first request.

      Attachments

        Activity

          People

            ciaens Clément Christiaens
            ciaens Clément Christiaens
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: