Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
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
- is a child of
-
FINERACT-1874 Release Apache Fineract 1.9.0
- In Progress
- links to