Skip to content

Conversation

@tommasomeli
Copy link

Added PM2 Cluster Support

This PR adds comprehensive cluster mode support for PM2 processes:

  • ✅ Added cluster mode toggle switch in process page
  • ✅ Processes with same name are grouped together in cluster view
  • ✅ Fixed process selection dropdown to show one entry per cluster
  • ✅ Enhanced selection logic to handle cluster operations
  • ✅ Cluster actions (restart, stop, delete) affect all process instances in the cluster

The cluster mode allows users to manage multiple process instances as a single unit while still having the option to view them individually when needed.

- Added cluster mode toggle switch in process page
- Processes with same name are grouped together in cluster view
- Fixed process selection dropdown to show one entry per cluster
- Enhanced selection logic to handle cluster operations
- Cluster actions (restart, stop, delete) affect all process instances in the cluster
…er view

- Add ProcessClusterMetricRow to aggregate memory and CPU usage across cluster processes
- Add ProcessClusterChart to display cumulative CPU/RAM metrics over time
- Add ProcessClusterLog to show combined logs from all cluster processes
- Update ProcessCluster to use new aggregated components
- Show oldest uptime instead of summing for cluster processes
- Use filter instead of Set for unique server IDs
- Fix TypeScript issues with optional log properties
- Added cluster view toggle in process page
- Group processes by name when cluster view is enabled
- Show individual ProcessItem for single processes
- Show ProcessCluster component for multiple processes with same name
- Display cluster status (online/stopped/mixed) with instance count
- Add cumulative metrics showing sum of memory/CPU and oldest uptime
- Add cumulative charts displaying aggregated CPU/RAM/HEAP data over time
- Add combined logs from all cluster processes with timestamps
- Preserve Git versioning info from primary (online) process
@oxdev03
Copy link
Owner

oxdev03 commented Sep 19, 2025

Hi,
thanks for the pr. I will have a look next week.

@oxdev03 oxdev03 self-requested a review September 19, 2025 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants