Comments (3)
Hi @maclandrol,
Thank you! :)
All spotty commands have the -c
/--config
parameter. So you can start several instances by providing different spotty configuration files to the spotty start
command, and then run your script on each instance providing the same configuration file to the spotty run
command. For example:
spotty start -c spotty.i1.yaml
spotty run train -c spotty.i1.yaml
spotty start -c spotty.i2.yaml
spotty run train -c spotty.i2.yaml
And don't forget to stop all of them after :).
I know that it's not very convenient, because you're basically copy-pasting the same configuration file several times, and then using the -c
parameter for every command. Moreover, the project name parameter should be different in each configuration file, otherwise, the tool tells you that the stack already exists. Also, it will create a new S3 bucket for each configuration.
I faced this problem before as well, and I've made it slightly better it in the future version 1.2. The format of the configuration file will be a little bit different, and you will be able to specify there several instances. They will reuse the same S3 bucket. Also, scripts will be parameterizable, so you could use custom parameters: spotty run [INSTANCE_NAME] SCRIPT_NAME [-p PARAM1=VAL1 PARAM2=VAL2 ...]
.
from spotty.
This answers all my question. Thanks !
I am using spotty inside a wrapper for automatic config generation and instance launching, so it should be fine.
Reusing the same S3 bucket will be a really great feature. It might also be helpful to have a way to automatically stop the instance after a given time limit (I am using a scheduler now, which is working fine) !
from spotty.
Thank you for the feedback! I will add the time limit feature to my TODO list.
from spotty.
Related Issues (20)
- ValidationError: Resource PreparingInstanceSignal does not exist for stack HOT 4
- GCP: 30 minutes for runtimeconfig.v1beta1.waiter Timeout expired HOT 19
- How to resize root partition (instead of 50GB) on GCP? HOT 1
- Caught non-retryable exception while listing file:///mnt/heareval-heareval-leader-joseph-workspace/project: [Errno 28] No space left on device HOT 2
- Question: Possibility to execute code on instance startup HOT 1
- 'spotty sh' with private ip address HOT 1
- Is this still maintained? HOT 1
- Help with solving NO_PUBKEY error on instance startup HOT 1
- Update default AMI image to support G5 instances HOT 1
- List all instances currently running HOT 1
- Spotty for coreweave? HOT 1
- "ResourceErrorMessage":"Failure condition satisfied." HOT 1
- --instance-initiated-shutdown-behavior terminate HOT 1
- Documentation for the remote provider is missing
- [Question] Is there a way to add a tags for S3 bucket and EC2 instance? HOT 1
- Error while trying to ssh into instance using spotty HOT 4
- Vast.ai provider support HOT 7
- Spot price for the "us-east-1c" availability zone not found.
- RuntimeError: can't start new thread HOT 2
- How does Spotty work?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spotty.