Documentation Index
Fetch the complete documentation index at: https://mintlify.com/pixlcore/xyops/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Server Groups let you organize multiple servers into logical collections and operate on them as a unit. Use groups to target events (run jobs against a group rather than specific hosts), aggregate monitoring views, provide default alert actions, and create group snapshots.A single server can belong to multiple groups, providing flexible organization across environments, roles, and regions.
Key Features
Event Targeting
Run jobs against groups instead of individual servers using selection algorithms
Automatic Assignment
Servers join groups automatically via hostname regex matching
Aggregated Views
Monitor all group members with unified metrics and status dashboards
Default Alerts
Configure alert actions that apply to all servers in the group
Creating Groups
Group Membership
Servers can join groups through automatic or manual assignment:Automatic Assignment
Groups use regular expressions to automatically match servers by hostname:Match All Production Servers
Match Specific Pattern
Match Everything
Manual Assignment
Override automatic assignment for specific servers:- Open any Server page
- Click “Edit Server…”
- Set Groups explicitly
- Auto Group behavior is disabled for that server
- Clear the server’s manual group list
- Re-enable Auto Group in the server editor
Event Targeting
Target events at groups instead of individual servers for dynamic server selection:Selection Algorithms
- random
- round_robin
- prefer_first / prefer_last
- least_cpu
- least_mem
- monitor:<id>
Pick a random server from eligible group members.Best for: Load distribution across identical servers
Eligibility Rules
Servers must meet these criteria to be selected:- Online - Currently connected to xyOps
- Enabled - Not administratively disabled
- Not excluded by alerts - No active alerts with “limit jobs” enabled
If no eligible servers exist, the job can be queued (if configured) or fails immediately.
Default Alert Actions
Groups can define actions that run when alerts fire or clear on any member server:Example Alert Actions
Action Merging
For any alert, the final action list merges:- Alert definition’s own actions
- All group default actions (for each group the server belongs to)
- Universal alert actions from configuration
Group Views
Each group has a dedicated dashboard aggregating all member servers:Snapshots and Watches
Capture group state for historical analysis or troubleshooting:Manual Snapshots
Take an on-demand snapshot of the group:- Group definition and member servers
- Last minute of quick metrics per server
- Active jobs on those servers
- Alerts affecting the group
Group Watches
Automate snapshots every minute for a duration:Start 30-minute watch
Cancel watch
API Reference
List All Groups
Get Single Group
Create Group
Request Body
g<random>. Optionally provide your own ID.
Update Group
Request Body
Delete Group
Request Body
Reorder Groups
Permissions
These privileges control group management:create_groups- Create new groupsedit_groups- Modify existing groupsdelete_groups- Remove groupscreate_snapshots- Take group snapshots and set watches
Best Practices
Use Clear Hostname Patterns
Use Clear Hostname Patterns
Establish consistent hostname conventions for reliable automatic grouping:
prod-web-01,prod-web-02(environment-role-number)us-east-db-primary(region-role-function)
Multiple Groups Per Server
Multiple Groups Per Server
Leverage overlapping groups for orthogonal concepts:
- Environment:
production,staging - Role:
web,database,cache - Region:
us-east,eu-west
prod-web-us-east-01 can belong to all three.Centralize Alert Actions
Centralize Alert Actions
Use group default alert actions to avoid repeating configuration on every server or alert definition.
Choose Appropriate Algorithms
Choose Appropriate Algorithms
Match your selection algorithm to job characteristics:
randomorround_robinfor stateless tasksleast_cpuorleast_memfor resource-intensive jobsmonitor:<id>for custom capacity metrics
Monitor Group Health
Monitor Group Health
Use group views to quickly assess fleet health and identify outliers in CPU, memory, or alerts.