Job Priority and Interruption System¶
Overview¶
KrakenHashes implements a sophisticated priority system that ensures critical password auditing tasks receive the resources they need. The system supports priority-based scheduling, automatic job interruption, and intelligent resource allocation to optimize your password cracking operations.
Priority System Fundamentals¶
Priority Scale¶
Jobs in KrakenHashes use a priority scale from 0 to 100:
- Critical Priority (90-100): Emergency response, security incidents
- High Priority (70-89): Time-sensitive audits, compliance deadlines
- Normal Priority (40-69): Standard security assessments
- Low Priority (10-39): Background processing, research tasks
- Minimal Priority (0-9): Non-urgent, opportunistic processing
How Priority Affects Job Execution¶
- Job Selection Order: Higher priority jobs are assigned to agents first
- Resource Allocation: High priority jobs can use more agents simultaneously
- Queue Position: Within the same priority level, jobs follow FIFO (First-In-First-Out)
- Interruption Rights: Jobs with high priority override can interrupt lower priority running jobs
High Priority Override Feature¶
What is High Priority Override?¶
The high priority override feature allows critical jobs to interrupt lower priority jobs that are currently running. This ensures that urgent tasks don't have to wait for long-running, low-priority jobs to complete.
When to Enable High Priority Override¶
Enable this feature for jobs that: - Respond to active security incidents - Have strict compliance deadlines - Require immediate results for business-critical decisions - Support time-sensitive investigations
How It Works¶
- Trigger Condition: Interruption only occurs when:
- No agents are available for assignment
- A high-priority job with override enabled is waiting
-
Lower priority jobs are currently running
-
Interruption Process:
- System identifies the lowest priority running job
- Sends stop command to agents working on that job
- Moves interrupted job to "pending" status (not paused)
-
Assigns freed agents to the high-priority job
-
Automatic Resumption:
- Interrupted jobs automatically resume when agents become available
- Jobs maintain their progress and continue from where they stopped
- No manual intervention required
Configuration¶
To enable high priority override for a preset job:
- Navigate to Jobs → Preset Jobs → [Job Name]
- In the Advanced Settings section, toggle "Allow High Priority Override"
- Set an appropriate priority level (typically 70+)
- Save the preset job
Job Interruption Behavior¶
Status Transitions¶
When a job is interrupted: - Before: Status = "running" - During Interruption: Status changes to "pending" - After Resumption: Status returns to "running"
What Happens to Interrupted Jobs?¶
- Progress Preserved: All completed work is saved
- Automatic Queue Return: Job returns to pending queue with same priority
- Smart Resumption: Job continues from last checkpoint, no work repeated
- Agent Cleanup: Agents properly release resources and become available
System-Wide Interruption Control¶
Administrators can enable or disable job interruption globally:
- Navigate to Admin Panel → System Settings
- Find "Job Interruption Enabled" setting
- Toggle to enable/disable interruption system-wide
When disabled: - No jobs will be interrupted regardless of priority - High priority jobs wait in queue normally - System operates in strict FIFO mode within priority levels
Best Practices¶
Setting Appropriate Priorities¶
Security Incident Response (Priority: 95-100)¶
Priority: 100
Allow High Priority Override: Yes
Max Agents: Unlimited
Reason: Immediate threat mitigation required
Compliance Audit - Due Today (Priority: 80-90)¶
Priority: 85
Allow High Priority Override: Yes
Max Agents: 10
Reason: Regulatory deadline approaching
Weekly Security Assessment (Priority: 50-60)¶
Research Project (Priority: 10-20)¶
Priority Strategy Guidelines¶
- Reserve High Priorities: Don't use high priorities for routine tasks
- Consider Business Impact: Align priority with actual business urgency
- Plan for Interruptions: Design workflows assuming possible interruptions
- Monitor Resource Usage: Track how priority affects overall throughput
- Document Priority Decisions: Maintain a priority assignment guide for your team
Avoiding Priority Inflation¶
To prevent "priority creep" where all jobs become high priority:
- Establish Clear Criteria: Document what qualifies for each priority level
- Regular Review: Audit priority assignments monthly
- Default to Normal: Start with priority 50 unless justified otherwise
- Limit Override Usage: Only enable override for truly critical jobs
Priority in Workflows¶
Workflow Priority Inheritance¶
When jobs are created from workflows: 1. Each preset job maintains its configured priority 2. Jobs execute in priority order within the workflow 3. Higher priority jobs from other workflows can interleave
Example Workflow Priority Design¶
Emergency Response Workflow:
├── Quick Dictionary (Priority: 95)
├── Common Patterns (Priority: 90)
├── Extended Dictionary (Priority: 85)
└── Brute Force Backup (Priority: 80)
Standard Audit Workflow:
├── Leaked Passwords (Priority: 60)
├── Company Variations (Priority: 55)
├── Rule-Based Attack (Priority: 50)
└── Comprehensive Check (Priority: 45)
Monitoring Priority Impact¶
Key Metrics to Track¶
- Interruption Frequency: How often jobs are interrupted
- Wait Time by Priority: Average wait time per priority level
- Completion Time Impact: Effect of interruptions on job completion
- Resource Utilization: Agent usage across priority levels
Identifying Issues¶
Watch for these warning signs: - Frequent interruptions of the same job - Low priority jobs never completing - All jobs set to high priority - Agents constantly switching between jobs
Advanced Scenarios¶
Multi-Tenant Environments¶
For systems serving multiple teams or clients:
- Priority Ranges per Tenant: Assign priority bands to each tenant
- Fair Resource Sharing: Implement quotas alongside priorities
- Override Restrictions: Limit override capability to specific roles
Scheduled Priority Changes¶
For jobs that change priority over time:
- Escalation: Increase priority as deadlines approach
- De-escalation: Reduce priority after peak hours
- Time-Based Rules: Automate priority adjustments based on schedule
Emergency Override Procedures¶
For critical incidents requiring immediate resources:
- Emergency Priority (100): Reserved for security incidents
- Administrative Override: Allow admins to force interrupt any job
- Audit Trail: Log all emergency overrides for review
Troubleshooting¶
Job Not Interrupting Lower Priority Work¶
Check: 1. Is "Job Interruption Enabled" in system settings? 2. Does the job have "Allow High Priority Override" enabled? 3. Are there actually lower priority jobs running? 4. Do the running jobs allow interruption?
Interrupted Job Not Resuming¶
Verify: 1. Job status is "pending" not "failed" 2. Agents are available and online 3. No higher priority jobs in queue 4. Job hasn't exceeded retry limits
Excessive Interruptions¶
Solutions: 1. Review and adjust priority assignments 2. Increase agent capacity 3. Implement scheduling to reduce contention 4. Consider priority bands to limit interruption cascades
Performance Considerations¶
Impact on System Performance¶
- Minimal Overhead: Priority checks are lightweight
- Interruption Cost: ~5-10 seconds to stop and reassign
- Progress Tracking: Checkpoint frequency affects resumption granularity
Optimizing for Priority Systems¶
- Appropriate Chunk Sizes: Smaller chunks (5-10 minutes) for better interruption response
- Checkpoint Frequency: Balance between progress saving and performance
- Agent Pool Size: More agents reduce need for interruptions
- Priority Distribution: Spread priorities to reduce conflicts
Integration with Other Features¶
Agent Scheduling¶
Priority system works with agent scheduling: - Scheduled agents only available during defined hours - Priority determines job selection within available windows - Interruptions respect scheduling boundaries
Max Agents Limits¶
Priority interacts with max agent settings: - High priority jobs reach max agents first - Lower priority jobs use remaining capacity - Override can free agents even from max-agent-limited jobs
Resource Management¶
Priority affects resource allocation: - File sync prioritizes high-priority job requirements - Binary selection considers job priority - Wordlist/rule loading optimized for high-priority jobs
Summary¶
The KrakenHashes priority and interruption system provides powerful tools for managing competing password auditing demands. By understanding and properly configuring priorities, you can ensure critical tasks complete quickly while maintaining efficient resource utilization across all jobs.
Key takeaways: - Use priority levels that reflect actual business urgency - Enable high priority override only for critical jobs - Monitor interruption patterns to optimize settings - Design workflows with priority strategies in mind - Maintain clear documentation of priority policies