Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic optimizer fixes + optimizer CLI #81

Merged
merged 1 commit into from
Jan 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 48 additions & 40 deletions nb/12-11-2021_get_transfer_cost.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 5,
"metadata": {},
"outputs": [
{
Expand All @@ -29,7 +29,7 @@
"\n",
"data_dir = Path(globals()[\"_dh\"][0]).parent / \"data\"\n",
"figure_dir = data_dir / \"figures\" / \"get_transfer_costs\"\n",
"figure_dir.mkdir(exist_ok=True)\n",
"figure_dir.mkdir(exist_ok=True, parents=True)\n",
"\n",
"plt.style.use(\"seaborn-bright\")\n",
"plt.set_cmap(\"plasma\")\n",
Expand All @@ -40,16 +40,16 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 6,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"dict_keys(['AWS GovCloud (US)', 'AWS GovCloud (US-East)', 'Africa (Cape Town)', 'Asia Pacific (Hong Kong)', 'Asia Pacific (KDDI) - Osaka', 'Asia Pacific (KDDI) - Tokyo', 'Asia Pacific (Mumbai)', 'Asia Pacific (Osaka)', 'Asia Pacific (SKT) - Daejeon', 'Asia Pacific (Seoul)', 'Asia Pacific (Singapore)', 'Asia Pacific (Sydney)', 'Asia Pacific (Tokyo)', 'Canada (Central)', 'EU (Frankfurt)', 'EU (Ireland)', 'EU (London)', 'EU (Milan)', 'EU (Paris)', 'EU (Stockholm)', 'EU (Vodafone) - Berlin', 'EU (Vodafone) - Dortmund', 'EU (Vodafone) - London', 'EU (Vodafone) - Munich', 'Middle East (Bahrain)', 'South America (Sao Paulo)', 'US East (Boston)', 'US East (Chicago)', 'US East (Dallas)', 'US East (Houston)', 'US East (Kansas City 2)', 'US East (Miami)', 'US East (Minneapolis)', 'US East (N. Virginia)', 'US East (New York City)', 'US East (Ohio)', 'US East (Philadelphia)', 'US East (Verizon) - Atlanta', 'US East (Verizon) - Boston', 'US East (Verizon) - Chicago', 'US East (Verizon) - Dallas', 'US East (Verizon) - Houston', 'US East (Verizon) - Miami', 'US East (Verizon) - New York', 'US East (Verizon) - Washington DC', 'US West (Denver)', 'US West (Las Vegas)', 'US West (Los Angeles)', 'US West (N. California)', 'US West (Oregon)', 'US West (Portland)', 'US West (Verizon) - Denver', 'US West (Verizon) - Las Vegas', 'US West (Verizon) - Phoenix', 'US West (Verizon) - San Francisco Bay Area', 'US West (Verizon) - Seattle'])"
"dict_keys(['AWS GovCloud (US)', 'AWS GovCloud (US-East)', 'Africa (Cape Town)', 'Asia Pacific (Hong Kong)', 'Asia Pacific (Jakarta)', 'Asia Pacific (KDDI) - Osaka', 'Asia Pacific (KDDI) - Tokyo', 'Asia Pacific (Mumbai)', 'Asia Pacific (Osaka)', 'Asia Pacific (SKT) - Daejeon', 'Asia Pacific (Seoul)', 'Asia Pacific (Singapore)', 'Asia Pacific (Sydney)', 'Asia Pacific (Tokyo)', 'Canada (Central)', 'EU (Frankfurt)', 'EU (Ireland)', 'EU (London)', 'EU (Milan)', 'EU (Paris)', 'EU (Stockholm)', 'EU (Vodafone) - Berlin', 'EU (Vodafone) - Dortmund', 'EU (Vodafone) - London', 'EU (Vodafone) - Munich', 'Middle East (Bahrain)', 'South America (Sao Paulo)', 'US East (Atlanta)', 'US East (Boston)', 'US East (Chicago)', 'US East (Dallas)', 'US East (Houston)', 'US East (Kansas City 2)', 'US East (Miami)', 'US East (Minneapolis)', 'US East (N. Virginia)', 'US East (New York City)', 'US East (Ohio)', 'US East (Philadelphia)', 'US East (Verizon) - Atlanta', 'US East (Verizon) - Boston', 'US East (Verizon) - Charlotte', 'US East (Verizon) - Chicago', 'US East (Verizon) - Dallas', 'US East (Verizon) - Detroit', 'US East (Verizon) - Houston', 'US East (Verizon) - Miami', 'US East (Verizon) - Minneapolis', 'US East (Verizon) - New York', 'US East (Verizon) - Washington DC', 'US West (Denver)', 'US West (Las Vegas)', 'US West (Los Angeles)', 'US West (N. California)', 'US West (Oregon)', 'US West (Phoenix)', 'US West (Portland)', 'US West (Seattle)', 'US West (Verizon) - Denver', 'US West (Verizon) - Las Vegas', 'US West (Verizon) - Los Angeles', 'US West (Verizon) - Phoenix', 'US West (Verizon) - San Francisco Bay Area', 'US West (Verizon) - Seattle'])"
]
},
"execution_count": 4,
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
Expand All @@ -60,47 +60,54 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": 7,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"2021-12-12 01:39:26.709 | INFO | __main__:<module>:28 - Missing region None (AWS GovCloud (US))\n",
"2021-12-12 01:39:26.711 | INFO | __main__:<module>:28 - Missing region None (Asia Pacific (KDDI) - Osaka)\n",
"2021-12-12 01:39:26.712 | INFO | __main__:<module>:28 - Missing region None (Asia Pacific (KDDI) - Tokyo)\n",
"2021-12-12 01:39:26.714 | INFO | __main__:<module>:28 - Missing region None (Asia Pacific (SKT) - Daejeon)\n",
"2021-12-12 01:39:26.718 | INFO | __main__:<module>:28 - Missing region None (EU (Vodafone) - Berlin)\n",
"2021-12-12 01:39:26.719 | INFO | __main__:<module>:28 - Missing region None (EU (Vodafone) - Dortmund)\n",
"2021-12-12 01:39:26.721 | INFO | __main__:<module>:28 - Missing region None (EU (Vodafone) - London)\n",
"2021-12-12 01:39:26.726 | INFO | __main__:<module>:28 - Missing region None (EU (Vodafone) - Munich)\n",
"2021-12-12 01:39:26.729 | INFO | __main__:<module>:28 - Missing region None (US East (Boston))\n",
"2021-12-12 01:39:26.731 | INFO | __main__:<module>:28 - Missing region None (US East (Chicago))\n",
"2021-12-12 01:39:26.731 | INFO | __main__:<module>:28 - Missing region None (US East (Dallas))\n",
"2021-12-12 01:39:26.732 | INFO | __main__:<module>:28 - Missing region None (US East (Houston))\n",
"2021-12-12 01:39:26.733 | INFO | __main__:<module>:28 - Missing region None (US East (Kansas City 2))\n",
"2021-12-12 01:39:26.734 | INFO | __main__:<module>:28 - Missing region None (US East (Miami))\n",
"2021-12-12 01:39:26.735 | INFO | __main__:<module>:28 - Missing region None (US East (Minneapolis))\n",
"2021-12-12 01:39:26.741 | INFO | __main__:<module>:28 - Missing region None (US East (New York City))\n",
"2021-12-12 01:39:26.743 | INFO | __main__:<module>:28 - Missing region None (US East (Philadelphia))\n",
"2021-12-12 01:39:26.744 | INFO | __main__:<module>:28 - Missing region None (US East (Verizon) - Atlanta)\n",
"2021-12-12 01:39:26.745 | INFO | __main__:<module>:28 - Missing region None (US East (Verizon) - Boston)\n",
"2021-12-12 01:39:26.746 | INFO | __main__:<module>:28 - Missing region None (US East (Verizon) - Chicago)\n",
"2021-12-12 01:39:26.747 | INFO | __main__:<module>:28 - Missing region None (US East (Verizon) - Dallas)\n",
"2021-12-12 01:39:26.748 | INFO | __main__:<module>:28 - Missing region None (US East (Verizon) - Houston)\n",
"2021-12-12 01:39:26.749 | INFO | __main__:<module>:28 - Missing region None (US East (Verizon) - Miami)\n",
"2021-12-12 01:39:26.751 | INFO | __main__:<module>:28 - Missing region None (US East (Verizon) - New York)\n",
"2021-12-12 01:39:26.752 | INFO | __main__:<module>:28 - Missing region None (US East (Verizon) - Washington DC)\n",
"2021-12-12 01:39:26.753 | INFO | __main__:<module>:28 - Missing region None (US West (Denver))\n",
"2021-12-12 01:39:26.754 | INFO | __main__:<module>:28 - Missing region None (US West (Las Vegas))\n",
"2021-12-12 01:39:26.755 | INFO | __main__:<module>:28 - Missing region None (US West (Los Angeles))\n",
"2021-12-12 01:39:26.756 | INFO | __main__:<module>:28 - Missing region None (US West (Portland))\n",
"2021-12-12 01:39:26.757 | INFO | __main__:<module>:28 - Missing region None (US West (Verizon) - Denver)\n",
"2021-12-12 01:39:26.758 | INFO | __main__:<module>:28 - Missing region None (US West (Verizon) - Las Vegas)\n",
"2021-12-12 01:39:26.759 | INFO | __main__:<module>:28 - Missing region None (US West (Verizon) - Phoenix)\n",
"2021-12-12 01:39:26.760 | INFO | __main__:<module>:28 - Missing region None (US West (Verizon) - San Francisco Bay Area)\n",
"2021-12-12 01:39:26.761 | INFO | __main__:<module>:28 - Missing region None (US West (Verizon) - Seattle)\n"
"2022-01-18 22:32:08.826 | INFO | __main__:<module>:53 - Missing region None (AWS GovCloud (US))\n",
"2022-01-18 22:32:08.828 | INFO | __main__:<module>:53 - Missing region None (Asia Pacific (KDDI) - Osaka)\n",
"2022-01-18 22:32:08.829 | INFO | __main__:<module>:53 - Missing region None (Asia Pacific (KDDI) - Tokyo)\n",
"2022-01-18 22:32:08.830 | INFO | __main__:<module>:53 - Missing region None (Asia Pacific (SKT) - Daejeon)\n",
"2022-01-18 22:32:08.832 | INFO | __main__:<module>:53 - Missing region None (EU (Vodafone) - Berlin)\n",
"2022-01-18 22:32:08.833 | INFO | __main__:<module>:53 - Missing region None (EU (Vodafone) - Dortmund)\n",
"2022-01-18 22:32:08.833 | INFO | __main__:<module>:53 - Missing region None (EU (Vodafone) - London)\n",
"2022-01-18 22:32:08.833 | INFO | __main__:<module>:53 - Missing region None (EU (Vodafone) - Munich)\n",
"2022-01-18 22:32:08.834 | INFO | __main__:<module>:53 - Missing region None (US East (Atlanta))\n",
"2022-01-18 22:32:08.834 | INFO | __main__:<module>:53 - Missing region None (US East (Boston))\n",
"2022-01-18 22:32:08.835 | INFO | __main__:<module>:53 - Missing region None (US East (Chicago))\n",
"2022-01-18 22:32:08.835 | INFO | __main__:<module>:53 - Missing region None (US East (Dallas))\n",
"2022-01-18 22:32:08.835 | INFO | __main__:<module>:53 - Missing region None (US East (Houston))\n",
"2022-01-18 22:32:08.836 | INFO | __main__:<module>:53 - Missing region None (US East (Kansas City 2))\n",
"2022-01-18 22:32:08.836 | INFO | __main__:<module>:53 - Missing region None (US East (Miami))\n",
"2022-01-18 22:32:08.836 | INFO | __main__:<module>:53 - Missing region None (US East (Minneapolis))\n",
"2022-01-18 22:32:08.837 | INFO | __main__:<module>:53 - Missing region None (US East (New York City))\n",
"2022-01-18 22:32:08.837 | INFO | __main__:<module>:53 - Missing region None (US East (Philadelphia))\n",
"2022-01-18 22:32:08.838 | INFO | __main__:<module>:53 - Missing region None (US East (Verizon) - Atlanta)\n",
"2022-01-18 22:32:08.838 | INFO | __main__:<module>:53 - Missing region None (US East (Verizon) - Boston)\n",
"2022-01-18 22:32:08.838 | INFO | __main__:<module>:53 - Missing region None (US East (Verizon) - Charlotte)\n",
"2022-01-18 22:32:08.838 | INFO | __main__:<module>:53 - Missing region None (US East (Verizon) - Chicago)\n",
"2022-01-18 22:32:08.839 | INFO | __main__:<module>:53 - Missing region None (US East (Verizon) - Dallas)\n",
"2022-01-18 22:32:08.839 | INFO | __main__:<module>:53 - Missing region None (US East (Verizon) - Detroit)\n",
"2022-01-18 22:32:08.839 | INFO | __main__:<module>:53 - Missing region None (US East (Verizon) - Houston)\n",
"2022-01-18 22:32:08.840 | INFO | __main__:<module>:53 - Missing region None (US East (Verizon) - Miami)\n",
"2022-01-18 22:32:08.840 | INFO | __main__:<module>:53 - Missing region None (US East (Verizon) - Minneapolis)\n",
"2022-01-18 22:32:08.840 | INFO | __main__:<module>:53 - Missing region None (US East (Verizon) - New York)\n",
"2022-01-18 22:32:08.841 | INFO | __main__:<module>:53 - Missing region None (US East (Verizon) - Washington DC)\n",
"2022-01-18 22:32:08.841 | INFO | __main__:<module>:53 - Missing region None (US West (Denver))\n",
"2022-01-18 22:32:08.841 | INFO | __main__:<module>:53 - Missing region None (US West (Las Vegas))\n",
"2022-01-18 22:32:08.842 | INFO | __main__:<module>:53 - Missing region None (US West (Los Angeles))\n",
"2022-01-18 22:32:08.842 | INFO | __main__:<module>:53 - Missing region None (US West (Phoenix))\n",
"2022-01-18 22:32:08.843 | INFO | __main__:<module>:53 - Missing region None (US West (Portland))\n",
"2022-01-18 22:32:08.843 | INFO | __main__:<module>:53 - Missing region None (US West (Seattle))\n",
"2022-01-18 22:32:08.843 | INFO | __main__:<module>:53 - Missing region None (US West (Verizon) - Denver)\n",
"2022-01-18 22:32:08.843 | INFO | __main__:<module>:53 - Missing region None (US West (Verizon) - Las Vegas)\n",
"2022-01-18 22:32:08.844 | INFO | __main__:<module>:53 - Missing region None (US West (Verizon) - Los Angeles)\n",
"2022-01-18 22:32:08.844 | INFO | __main__:<module>:53 - Missing region None (US West (Verizon) - Phoenix)\n",
"2022-01-18 22:32:08.844 | INFO | __main__:<module>:53 - Missing region None (US West (Verizon) - San Francisco Bay Area)\n",
"2022-01-18 22:32:08.845 | INFO | __main__:<module>:53 - Missing region None (US West (Verizon) - Seattle)\n"
]
}
],
Expand All @@ -114,6 +121,7 @@
" \"Asia Pacific (Seoul)\": \"ap-northeast-2\",\n",
" \"Asia Pacific (Singapore)\": \"ap-southeast-1\",\n",
" \"Asia Pacific (Sydney)\": \"ap-southeast-2\",\n",
" \"Asia Pacific (Jakarta)\": \"ap-southeast-3\",\n",
" \"Asia Pacific (Tokyo)\": \"ap-northeast-1\",\n",
" \"AWS GovCloud (US-East)\": \"us-gov-east-1\",\n",
" \"AWS GovCloud (US-West)\": \"us-gov-west-1\",\n",
Expand Down
36 changes: 36 additions & 0 deletions profiles/aws_transfer_costs.csv
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ src,dst,cost
us-gov-east-1,internet,0.155
us-gov-east-1,af-south-1,0.03
us-gov-east-1,ap-east-1,0.03
us-gov-east-1,ap-southeast-3,0.03
us-gov-east-1,ap-south-1,0.03
us-gov-east-1,ap-northeast-3,0.03
us-gov-east-1,ap-northeast-2,0.03
Expand All @@ -24,6 +25,7 @@ us-gov-east-1,us-west-2,0.03
af-south-1,internet,0.154
af-south-1,us-gov-east-1,0.147
af-south-1,ap-east-1,0.147
af-south-1,ap-southeast-3,0.147
af-south-1,ap-south-1,0.147
af-south-1,ap-northeast-3,0.147
af-south-1,ap-northeast-2,0.147
Expand All @@ -46,6 +48,7 @@ af-south-1,us-west-2,0.147
ap-east-1,internet,0.12
ap-east-1,us-gov-east-1,0.09
ap-east-1,af-south-1,0.09
ap-east-1,ap-southeast-3,0.09
ap-east-1,ap-south-1,0.09
ap-east-1,ap-northeast-3,0.09
ap-east-1,ap-northeast-2,0.09
Expand All @@ -65,10 +68,27 @@ ap-east-1,us-east-1,0.09
ap-east-1,us-east-2,0.09
ap-east-1,us-west-1,0.09
ap-east-1,us-west-2,0.09
ap-southeast-3,internet,0.132
ap-southeast-3,us-gov-east-1,0.1
ap-southeast-3,af-south-1,0.1
ap-southeast-3,ap-east-1,0.1
ap-southeast-3,ap-northeast-2,0.1
ap-southeast-3,ap-southeast-2,0.1
ap-southeast-3,ap-northeast-1,0.1
ap-southeast-3,ca-central-1,0.1
ap-southeast-3,eu-central-1,0.1
ap-southeast-3,eu-south-1,0.1
ap-southeast-3,eu-north-1,0.1
ap-southeast-3,me-south-1,0.1
ap-southeast-3,us-east-1,0.1
ap-southeast-3,us-east-2,0.1
ap-southeast-3,us-west-1,0.1
ap-southeast-3,us-west-2,0.1
ap-south-1,internet,0.1093
ap-south-1,us-gov-east-1,0.086
ap-south-1,af-south-1,0.086
ap-south-1,ap-east-1,0.086
ap-south-1,ap-southeast-3,0.086
ap-south-1,ap-northeast-3,0.086
ap-south-1,ap-northeast-2,0.086
ap-south-1,ap-southeast-1,0.086
Expand All @@ -91,6 +111,7 @@ ap-northeast-3,internet,0.114
ap-northeast-3,us-gov-east-1,0.09
ap-northeast-3,af-south-1,0.09
ap-northeast-3,ap-east-1,0.09
ap-northeast-3,ap-southeast-3,0.09
ap-northeast-3,ap-south-1,0.09
ap-northeast-3,ap-northeast-2,0.09
ap-northeast-3,ap-southeast-1,0.09
Expand All @@ -113,6 +134,7 @@ ap-northeast-2,internet,0.126
ap-northeast-2,us-gov-east-1,0.08
ap-northeast-2,af-south-1,0.08
ap-northeast-2,ap-east-1,0.08
ap-northeast-2,ap-southeast-3,0.08
ap-northeast-2,ap-south-1,0.08
ap-northeast-2,ap-northeast-3,0.08
ap-northeast-2,ap-southeast-1,0.08
Expand Down Expand Up @@ -157,6 +179,7 @@ ap-southeast-2,internet,0.114
ap-southeast-2,us-gov-east-1,0.098
ap-southeast-2,af-south-1,0.098
ap-southeast-2,ap-east-1,0.098
ap-southeast-2,ap-southeast-3,0.098
ap-southeast-2,ap-south-1,0.098
ap-southeast-2,ap-northeast-3,0.098
ap-southeast-2,ap-northeast-2,0.098
Expand All @@ -179,6 +202,7 @@ ap-northeast-1,internet,0.114
ap-northeast-1,us-gov-east-1,0.09
ap-northeast-1,af-south-1,0.09
ap-northeast-1,ap-east-1,0.09
ap-northeast-1,ap-southeast-3,0.09
ap-northeast-1,ap-south-1,0.09
ap-northeast-1,ap-northeast-3,0.09
ap-northeast-1,ap-northeast-2,0.09
Expand All @@ -201,6 +225,7 @@ ca-central-1,internet,0.09
ca-central-1,us-gov-east-1,0.02
ca-central-1,af-south-1,0.02
ca-central-1,ap-east-1,0.02
ca-central-1,ap-southeast-3,0.02
ca-central-1,ap-south-1,0.02
ca-central-1,ap-northeast-3,0.02
ca-central-1,ap-northeast-2,0.02
Expand Down Expand Up @@ -245,6 +270,7 @@ eu-west-1,internet,0.09
eu-west-1,us-gov-east-1,0.02
eu-west-1,af-south-1,0.02
eu-west-1,ap-east-1,0.02
eu-west-1,ap-southeast-3,0.02
eu-west-1,ap-south-1,0.02
eu-west-1,ap-northeast-3,0.02
eu-west-1,ap-northeast-2,0.02
Expand All @@ -267,6 +293,7 @@ eu-west-2,internet,0.09
eu-west-2,us-gov-east-1,0.02
eu-west-2,af-south-1,0.02
eu-west-2,ap-east-1,0.02
eu-west-2,ap-southeast-3,0.02
eu-west-2,ap-south-1,0.02
eu-west-2,ap-northeast-3,0.02
eu-west-2,ap-northeast-2,0.02
Expand All @@ -289,6 +316,7 @@ eu-south-1,internet,0.09
eu-south-1,us-gov-east-1,0.02
eu-south-1,af-south-1,0.02
eu-south-1,ap-east-1,0.02
eu-south-1,ap-southeast-3,0.02
eu-south-1,ap-south-1,0.02
eu-south-1,ap-northeast-3,0.02
eu-south-1,ap-northeast-2,0.02
Expand All @@ -311,6 +339,7 @@ eu-west-3,internet,0.09
eu-west-3,us-gov-east-1,0.02
eu-west-3,af-south-1,0.02
eu-west-3,ap-east-1,0.02
eu-west-3,ap-southeast-3,0.02
eu-west-3,ap-south-1,0.02
eu-west-3,ap-northeast-3,0.02
eu-west-3,ap-northeast-2,0.02
Expand All @@ -333,6 +362,7 @@ eu-north-1,internet,0.09
eu-north-1,us-gov-east-1,0.02
eu-north-1,af-south-1,0.02
eu-north-1,ap-east-1,0.02
eu-north-1,ap-southeast-3,0.02
eu-north-1,ap-south-1,0.02
eu-north-1,ap-northeast-3,0.02
eu-north-1,ap-northeast-2,0.02
Expand All @@ -355,6 +385,7 @@ me-south-1,internet,0.117
me-south-1,us-gov-east-1,0.1105
me-south-1,af-south-1,0.1105
me-south-1,ap-east-1,0.1105
me-south-1,ap-southeast-3,0.1105
me-south-1,ap-south-1,0.1105
me-south-1,ap-northeast-3,0.1105
me-south-1,ap-northeast-2,0.1105
Expand All @@ -377,6 +408,7 @@ sa-east-1,internet,0.15
sa-east-1,us-gov-east-1,0.138
sa-east-1,af-south-1,0.138
sa-east-1,ap-east-1,0.138
sa-east-1,ap-southeast-3,0.138
sa-east-1,ap-south-1,0.138
sa-east-1,ap-northeast-3,0.138
sa-east-1,ap-northeast-2,0.138
Expand All @@ -399,6 +431,7 @@ us-east-1,internet,0.09
us-east-1,us-gov-east-1,0.02
us-east-1,af-south-1,0.02
us-east-1,ap-east-1,0.02
us-east-1,ap-southeast-3,0.02
us-east-1,ap-south-1,0.02
us-east-1,ap-northeast-3,0.02
us-east-1,ap-northeast-2,0.02
Expand All @@ -421,6 +454,7 @@ us-east-2,internet,0.09
us-east-2,us-gov-east-1,0.02
us-east-2,af-south-1,0.02
us-east-2,ap-east-1,0.02
us-east-2,ap-southeast-3,0.02
us-east-2,ap-south-1,0.02
us-east-2,ap-northeast-3,0.02
us-east-2,ap-northeast-2,0.02
Expand All @@ -443,6 +477,7 @@ us-west-1,internet,0.09
us-west-1,us-gov-east-1,0.02
us-west-1,af-south-1,0.02
us-west-1,ap-east-1,0.02
us-west-1,ap-southeast-3,0.02
us-west-1,ap-south-1,0.02
us-west-1,ap-northeast-3,0.02
us-west-1,ap-northeast-2,0.02
Expand All @@ -465,6 +500,7 @@ us-west-2,internet,0.09
us-west-2,us-gov-east-1,0.02
us-west-2,af-south-1,0.02
us-west-2,ap-east-1,0.02
us-west-2,ap-southeast-3,0.02
us-west-2,ap-south-1,0.02
us-west-2,ap-northeast-3,0.02
us-west-2,ap-northeast-2,0.02
Expand Down
12 changes: 12 additions & 0 deletions scripts/install_cbc.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
# install coin-or and cylp on ubuntu
set -xe
if [ -x "$(command -v conda)" ]; then
conda install -y coin-or-cbc numpy pkg-config -c conda-forge
python -m pip install cylp
else
echo "conda is not installed, installing via pip"
sudo apt-get install -y coinor-cbc build-essential
python -m pip install cylp
exit 1
fi
2 changes: 2 additions & 0 deletions skylark/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

import skylark.cli.cli_aws
import skylark.cli.cli_azure
import skylark.cli.cli_solver
import skylark.cli.experiments
import typer
from loguru import logger
Expand All @@ -44,6 +45,7 @@
app.add_typer(skylark.cli.experiments.app, name="experiments")
app.add_typer(skylark.cli.cli_aws.app, name="aws")
app.add_typer(skylark.cli.cli_azure.app, name="azure")
app.add_typer(skylark.cli.cli_solver.app, name="solver")

# config logger
logger.remove()
Expand Down
Loading