NoSQL 數據庫
Service Discovery for Tenant-Manager
Scans the current project and identifies the Service → Module → Resource
hierarchy for tenant-manager registration. Detects service name and type,
modules (via WithModule or component structure), resources per module
(PostgreSQL, MongoDB, RabbitMQ), and database names for each resource.
Redis is excluded (managed via key prefixing).
Produces a visual HTML report for human decision-making.
Additionally detects MongoDB index definitions (both in-code EnsureIndexes and
scripts/mongodb/*.js files), generates index creation scripts for any gaps,
and uploads them to S3 for use during dedicated tenant database provisioning.
Also detects database names per module, cross-references them across modules
to find shared databases, and flags them for single-provision in tenant-manager.