Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 857 Bytes

README.md

File metadata and controls

16 lines (11 loc) · 857 Bytes

nginx-oracledb-healthcheck

OracleDB HTTP healthcheck in Node.JS - Integrates with Nginx

Uses Node.JS OracleDB module. Requires installations of Node.JS and OracleDB - documented here:

  1. Oracle 21c XE - https://www.oracle.com/database/technologies/appdev/xe/quickstart.html
  2. OracleDB Node.JS Module - https://github.com/oracle/node-oracledb
  3. Node.JS - https://nodejs.org/en/download/package-manager/
  4. Nginx-Plus - https://docs.nginx.com/nginx/admin-guide/installing-nginx/installing-nginx-plus/

Once the Oracle Database and NodeJS are running - add the module and associated healthcheck code. Nginx-Plus can then be configured to query the NodeJS healthcheck as an active HTTP check.

Example load balancing done with Nginx-Plus Active Health Check. (oracle.conf - needs include in stream context on nginx.conf)

Sample configurations provided.