plugin-cluster-manager 1.1.5 → 1.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -5
- package/dist/client/index.js +1 -1
- package/dist/externalVersion.js +5 -5
- package/dist/locale/en-US.json +28 -4
- package/dist/locale/vi-VN.json +28 -4
- package/dist/locale/zh-CN.json +28 -4
- package/dist/server/actions/event-queue-monitor.js +123 -1
- package/dist/server/actions/orchestrator.js +1 -1
- package/dist/server/actions/plugin-operations.js +171 -0
- package/dist/server/collections/cluster-manager-plugins.js +44 -0
- package/dist/server/plugin.js +8 -2
- package/package.json +9 -4
- package/src/client/ClusterManagerLayout.tsx +16 -10
- package/src/client/EventQueueMonitor.tsx +349 -202
- package/src/client/PluginOperations.tsx +234 -0
- package/src/locale/en-US.json +28 -4
- package/src/locale/vi-VN.json +28 -4
- package/src/locale/zh-CN.json +28 -4
- package/src/server/actions/event-queue-monitor.ts +234 -95
- package/src/server/actions/orchestrator.ts +1 -1
- package/src/server/actions/plugin-operations.ts +151 -0
- package/src/server/collections/cluster-manager-plugins.ts +19 -0
- package/src/server/orchestrator/PackageManager.ts +84 -17
- package/src/server/plugin.ts +28 -20
- package/dist/client/AclCacheManager.d.ts +0 -2
- package/dist/client/CacheMonitor.d.ts +0 -2
- package/dist/client/ClusterManagerLayout.d.ts +0 -2
- package/dist/client/ClusterNodes.d.ts +0 -2
- package/dist/client/ContainerOrchestrator.d.ts +0 -2
- package/dist/client/EventQueueMonitor.d.ts +0 -2
- package/dist/client/LockMonitor.d.ts +0 -2
- package/dist/client/PackageInstaller.d.ts +0 -2
- package/dist/client/RedisMonitor.d.ts +0 -2
- package/dist/client/TaskManager.d.ts +0 -2
- package/dist/client/WorkflowExecutions.d.ts +0 -2
- package/dist/client/index.d.ts +0 -5
- package/dist/client/utils.d.ts +0 -12
- package/dist/index.d.ts +0 -2
- package/dist/server/actions/acl-cache.d.ts +0 -53
- package/dist/server/actions/cache-monitor.d.ts +0 -23
- package/dist/server/actions/cluster-nodes.d.ts +0 -49
- package/dist/server/actions/event-queue-monitor.d.ts +0 -13
- package/dist/server/actions/lock-monitor.d.ts +0 -19
- package/dist/server/actions/orchestrator.d.ts +0 -58
- package/dist/server/actions/package-manager.d.ts +0 -6
- package/dist/server/actions/redis-monitor.d.ts +0 -12
- package/dist/server/actions/tasks.d.ts +0 -7
- package/dist/server/actions/workflow-executions.d.ts +0 -7
- package/dist/server/adapters/redis-lock-adapter.d.ts +0 -15
- package/dist/server/adapters/redis-node-registry.d.ts +0 -12
- package/dist/server/adapters/redis-pubsub-adapter.d.ts +0 -16
- package/dist/server/collections/app.d.ts +0 -8
- package/dist/server/collections/cluster-manager-acl-cache.d.ts +0 -22
- package/dist/server/collections/cluster-manager-cache-mgr.d.ts +0 -22
- package/dist/server/collections/cluster-manager-cluster.d.ts +0 -22
- package/dist/server/collections/cluster-manager-lock.d.ts +0 -22
- package/dist/server/collections/cluster-manager-queue.d.ts +0 -22
- package/dist/server/collections/cluster-manager-redis.d.ts +0 -22
- package/dist/server/collections/cluster-manager-workflow.d.ts +0 -22
- package/dist/server/collections/cluster-manager.d.ts +0 -22
- package/dist/server/collections/orchestrator-settings.d.ts +0 -59
- package/dist/server/collections/orchestrator-stacks.d.ts +0 -102
- package/dist/server/collections/worker-orchestrator.d.ts +0 -22
- package/dist/server/collections/worker-packages-configs.d.ts +0 -3
- package/dist/server/collections/worker-packages.d.ts +0 -22
- package/dist/server/index.d.ts +0 -1
- package/dist/server/orchestrator/PackageManager.d.ts +0 -37
- package/dist/server/orchestrator/docker-adapter.d.ts +0 -41
- package/dist/server/orchestrator/index.d.ts +0 -4
- package/dist/server/orchestrator/k8s-adapter.d.ts +0 -50
- package/dist/server/orchestrator/leader-election.d.ts +0 -48
- package/dist/server/orchestrator/types.d.ts +0 -84
- package/dist/server/plugin.d.ts +0 -26
- package/dist/server/utils/node.d.ts +0 -6
- package/dist/server/utils/redis.d.ts +0 -29
- package/dist/shared/packages.d.ts +0 -23
package/README.md
CHANGED
|
@@ -1,15 +1,27 @@
|
|
|
1
1
|
# plugin-cluster-manager
|
|
2
2
|
|
|
3
3
|
## Overview
|
|
4
|
-
Monitor cluster nodes, async tasks, workflow executions, event queues, locks, caches, and
|
|
4
|
+
Monitor and operate NocoBase cluster nodes, async tasks, workflow executions, event queues, locks, caches, Redis metrics, container workers, and worker package installation.
|
|
5
5
|
|
|
6
6
|
## Features
|
|
7
|
-
- **Cluster
|
|
8
|
-
- **
|
|
9
|
-
- **
|
|
7
|
+
- **Cluster Nodes**: Realtime view of active app, worker, task, and sandbox nodes through Redis heartbeats.
|
|
8
|
+
- **Task And Workflow Monitoring**: Inspect async tasks and workflow executions, including the node that processed each execution.
|
|
9
|
+
- **Runtime Monitors**: Inspect Redis, event queue, distributed locks, ACL cache, and cache manager state.
|
|
10
|
+
- **Container Orchestrator**: Manage Docker or Kubernetes worker stacks with leader-only write operations.
|
|
11
|
+
- **Worker Packages**: Configure and dispatch apt, npm, and Python package installation across matching node roles.
|
|
12
|
+
- **Plugin Operations**: List installed plugins and force-disable or force-remove broken plugin registry records.
|
|
13
|
+
|
|
14
|
+
## Architecture Flow
|
|
15
|
+
|
|
16
|
+
1. `src/index.ts` exports the server package. The client package is exposed through `src/client/index.tsx`.
|
|
17
|
+
2. The client registers the `Cluster Manager` settings page and renders `ClusterManagerLayout`, which groups the admin tools into tabs.
|
|
18
|
+
3. The server `beforeLoad()` imports all collection definitions from `src/server/collections`, including config collections and resource-only collection stubs needed by workflow/ACL lookups.
|
|
19
|
+
4. The server `load()` wires runtime services and APIs: Redis node registry, PubSub adapter, Redis lock adapter polyfill, PubSub subscribers, resource actions, plugin force operations, ACL snippet, ACL cache middleware, health endpoint, and orchestrator initialization.
|
|
20
|
+
5. `afterStart` starts node heartbeats, worker package auto-install, and leader election. `beforeStop` stops the node registry and releases leadership.
|
|
21
|
+
6. Shared runtime state uses Redis and PubSub for heartbeats, execution-node mapping, restart/log/package commands, and package status. Durable settings stay in database collections.
|
|
10
22
|
|
|
11
23
|
## Usage
|
|
12
24
|
1. Enable the plugin.
|
|
13
25
|
2. Only accessible to Super Admins.
|
|
14
|
-
3. Navigate to System Settings ->
|
|
26
|
+
3. Navigate to System Settings -> Cluster Manager.
|
|
15
27
|
4. Use the dashboard to troubleshoot performance issues, retry failed background tasks, or clear caches.
|