Why Switch Stacks?
Different stages of your ML workflow need different infrastructure:- Local development: Fast iteration with local orchestrator
- Experimentation: Cloud resources with experiment tracking
- Staging: Production-like environment for testing
- Production: Robust, scalable infrastructure
Basic Stack Switching
Common Switching Patterns
Development to Production
Switch from local development to production:Quick Environment Switch
Switch between environments rapidly:Feature Branch Workflow
Use different stacks for different branches:Programmatic Stack Switching
Using the Client
Switch stacks in Python code:Context-Based Switching
Temporarily switch stacks for specific operations:Environment-Aware Stack Selection
Automatically select stack based on environment:Stack Switching Strategies
By Team Member Role
Different team members use different stacks:By Pipeline Type
Switch based on pipeline purpose:By Resource Requirements
Switch based on computational needs:Pipeline-Specific Stack Configuration
Run specific pipelines with specific stacks:Multi-Stack Workflows
Cross-Stack Artifact Sharing
Share artifacts between stacks:Parallel Execution on Multiple Stacks
Run experiments on different stacks simultaneously:Stack Compatibility Checks
Verify pipeline compatibility with stack:Automation Scripts
Stack Switching Helper Script
Create a helper script for common operations:switch_stack.py
Best Practices
Know Your Active Stack
Always verify which stack is active before running pipelines
Use Descriptive Names
Name stacks clearly to indicate their purpose and environment
Automate Environment Selection
Use environment variables to automatically select the right stack
Document Stack Requirements
Document which pipelines work with which stacks
Test Before Switching
Verify stack configuration before running production pipelines
Restore Original Stack
Always restore the original stack in error handling
Quick Reference
Troubleshooting
Stack Not Found
Permission Denied
Some stacks may be private or require specific permissions:Component Unavailable
If a stack component is unavailable:Next Steps
Configuring Stacks
Learn how to create and configure custom stacks
Creating Pipelines
Build pipelines that work across different stacks
Deploying Pipelines
Deploy pipelines to production stacks
