Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
  • Loading branch information
vsoch committed Oct 14, 2023
1 parent a9aab0f commit 0bb24cf
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ mkdir -p ./data
python run-experiment.py --outfile ./data/testing-tiny-result.json --cluster-name cluster-tiny --max-instance-types 10 --min-spot-request 3 --max-spot-request 6 --nodes 4
```

Note that vcpu (and experiment plans) are set in the experiments defined at the top of "run-experiment.py." This could be tweaked to be elsewhere!
Note that vcpu (and experiment plans) are set in the experiments defined at the top of "run-experiment.py." This could be tweaked to be elsewhere!
Also note that when you create multiple node groups, it will already have an auth config and print an error. You can ignore that :)

## TODO and questions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@
}
]
}
}
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
#!/usr/bin/env python3

import os
import argparse
import sys
import random
import json
import copy
import time
import json
import os
import random
import sys

from kubescaler.scaler.aws import EKSCluster

Expand All @@ -18,7 +17,7 @@
data_file = os.path.join(import_dir, "instances-aws.csv")
sys.path.insert(0, import_dir)

import spot_instances as spot_cli
import spot_instances as spot_cli # noqa

# Exit early if we haven't generated the data
if not os.path.exists(data_file):
Expand Down Expand Up @@ -222,11 +221,11 @@ def main():
# plan experiments!
experiments = plan_experiments(args)
count = len(range(args.min_spot_request, args.max_spot_request))
print(f"🧪️ Experiments:")
print("🧪️ Experiments:")
for exp in experiments:
print(f" {exp}")

print(f"🪴️ Planning to run:")
print("🪴️ Planning to run:")
print(f" Cluster name : {args.cluster_name}")
print(f" Output File : {args.outfile}")
print(f" Experiments : {len(experiments)}")
Expand All @@ -251,7 +250,7 @@ def main():

# Note we are NOT creating the node group here - just the cluster, so machine types aren't relevant
# We will add machine types as node groups (to create and delete from the cluster) later
cluster_details = cli.create_cluster(create_nodes=False)
cli.create_cluster(create_nodes=False)

# Save results as we go!
original_times = cli.times
Expand Down

0 comments on commit 0bb24cf

Please sign in to comment.