gristlabs_grist-core/app/gen-server/lib
Dmitry S fbae81648c (core) Add options to /status health-check endpoints to check DB and Redis liveness.
Summary:
- /status accepts new optional query parameters: db=1, redis=1, and timeout=<ms> (defaults to 10_000).
- These verify that the server can make trivial calls to DB/Redis, and that they return within the timeout.
- New HealthCheck tests simulates DB and Redis problems.
- Added resilience to Redis reconnects (helped by a test case that simulates disconnects)
- When closing Redis-based session store, disconnect from Redis (to avoid hanging tests)

Some associated test reorg:
- Move stripeTools out of test/nbrowser, and remove an unnecessary dependency,
  to avoid starting up browser for gen-server tests.
- Move TcpForwarder to its own file, to use in the new test.

Test Plan: Added a new HealthCheck test that simulates DB and Redis problems.

Reviewers: georgegevoian

Reviewed By: georgegevoian

Differential Revision: https://phab.getgrist.com/D4054
2023-10-02 14:41:04 -04:00
..
Activations.ts (core) Add Support Grist page and nudge 2023-07-04 17:36:59 -04:00
DocApiForwarder.ts add an endpoint for doing SQL selects (#641) 2023-09-04 09:21:18 -04:00
DocWorkerMap.ts (core) Add options to /status health-check endpoints to check DB and Redis liveness. 2023-10-02 14:41:04 -04:00
Doom.ts (core) add a tool for deleting a user 2021-09-29 12:08:23 -04:00
HomeDBManager.ts (core) Delete my account button 2023-09-27 14:49:23 +02:00
Housekeeper.ts normalize logging of dates in siteUsage across databases (#675) 2023-09-13 14:44:04 -04:00
Permissions.ts (core) move home server into core 2020-07-21 20:39:10 -04:00
scrubUserFromOrg.ts (core) move home server into core 2020-07-21 20:39:10 -04:00
TypeORMPatches.ts (core) Add options to /status health-check endpoints to check DB and Redis liveness. 2023-10-02 14:41:04 -04:00
Usage.ts (core) Faster builds all around. 2022-07-04 10:42:40 -04:00
values.ts (core) move home server into core 2020-07-21 20:39:10 -04:00