Uploaded image for project: 'Apache Fineract'
  1. Apache Fineract
  2. FINERACT-1942

Graceful shutdown of Fineract

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.9.0
    • None

    Description

      API:

      The APIs in Fineract should be able to shut down gracefully, i.e. not accepting any more HTTP requests upon receiving the SIGTERM signal but finishing all in-flight HTTP requests.

      Notes: Spring Boot has built-in support for this. See: !https://docs.spring.io/favicon.ico!Spring Boot Reference Documentation

      APIs not concerned (OK either way)

      • Asynchronous APIs (only available on batch manager instance)
      • Jobs APIs (only available on batch manager instance)
      • Only batch manager relevant APIs

      Batch workers

      The batch workers should be able to react to a SIGTERM signal by waiting to finish all in-flight partitions and not accepting any more work from the JMS queue. When everything in-flight is finished, the application can shut down.{}

      Acceptance criteria

      • Upon receiving the SIGTERM signal, the application should stop accepting new HTTP requests
      • Upon receiving the SIGTERM signal, the application should finish any in-flight HTTP request
      • Upon receiving the SIGTERM signal, the application should stop accepting new partitions via JMS
      • Upon receiving the SIGTERM signal, the application should finish any in-flight partitions

      Attachments

        Issue Links

          Activity

            People

              mdallos Mihaly Dallos
              mdallos Mihaly Dallos
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: