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

[JUJU-785] Update the list of known Azure instance types and cost heuristic #13862

Merged
merged 2 commits into from Mar 22, 2022

Conversation

wallyworld
Copy link
Member

When selecting the Azure instance type to use, there's a fix list of instance types in relative cost order. We fix the "cheapest" that matches the constraints. There were 2 problems:

  1. the list was way out of date so many new instances types were not known
  2. instance types were deprecated and we were not preferring the newer versions

The list of instance types is updated and a logic change is made so that if we have
foo_v2
foo_v3
foo_v4

we will prefer foo_v4 all else being equal.

We could look to query an API to get true cost info but as illustrated by having to move the burstable instances types to the end of the list, cost cannot be the sole selection factor. So this change will do for now as it solves the immediate problem for the foreseeable future.

QA steps

As per bug report:

juju bootstrap azure/southafricanorth --constraints="cpu-cores=2 mem=3G" --show-log
...
INFO  juju.environs.instances image.go:107 find instance - using amd64 image of type Standard_A2_v2 with id: Canonical:0001-com-ubuntu-server-focal:20_04-lts:latest

Bug reference

https://bugs.launchpad.net/juju/+bug/1965455

provider/azure/instancetype.go Outdated Show resolved Hide resolved
@wallyworld
Copy link
Member Author

$$merge$$

@jujubot jujubot merged commit d79bde8 into juju:2.9 Mar 22, 2022
jujubot added a commit that referenced this pull request Mar 30, 2022
#13897

- #13891 from hmlanigan/lxd-profile-watcher-regression
- #13850 from jack-w-shaw/JUJU-416_Consolidate_retries_worker_tests_1
- #13871 from arnodel/juju-810-simpleconnector-support-for-ha-controllers
- #13843 from jack-w-shaw/JUJU-416_Consolidate_retries_worker_upgradedatabase
- #13842 from jack-w-shaw/JUJU-416_Consolidate_retries_worker_peergrouper
- #13866 from arnodel/juju-803-move-connector-implementations
- #13893 from ycliuhw/allow-OfficialBuild-Build-coexist
- #13883 from barrettj12/deploy-revision-err
- #13886 from ycliuhw/Fix-Build-OfficialBuild
- #13873 from arnodel/juju-812-remove-connection-reboot-method
- #13878 from arnodel/juju-819-remove-connection-client-method
- #13875 from arnodel/juju-814-remove-connection-unitassigner-method
- #13874 from arnodel/juju-813-remove-connection-instancepoller-method
- #13885 from benhoyt/model-defaults-test-bash
- #13856 from naveensrinivasan/naveen/feat/pin-deps
- #13881 from barrettj12/refresh-local-origin2
- #13882 from benhoyt/tweak-assess
- #13834 from wallyworld/leader-settings-dying
- #13870 from wallyworld/model-default-coerce
- #13869 from arnodel/juju-806-remove-connection-uniter-method
- #13852 from hmlanigan/charm-resources-regression
- #13872 from arnodel/juju-811-remove-connection-upgrader-method
- #13863 from SimonRichardson/charmhub-proxy-middleware
- #13865 from hmlanigan/bootstrap-help-update
- #13855 from SimonRichardson/hide-debug-stack
- #13862 from wallyworld/azure-instance-refresh
- #13755 from jack-w-shaw/JUJU-422_Drop_Space.Subnets-2
- #13860 from jack-w-shaw/fix_shfmt_failure

Usual conflicts.

CONFLICT (content): Merge conflict in worker/caasunitprovisioner/worker_test.go
CONFLICT (content): Merge conflict in worker/caasoperatorprovisioner/worker_test.go
CONFLICT (content): Merge conflict in worker/caasfirewaller/worker_test.go
CONFLICT (content): Merge conflict in cmd/juju/machine/remove.go
CONFLICT (content): Merge conflict in cmd/juju/application/refresh.go
CONFLICT (content): Merge conflict in cloudconfig/podcfg/podcfg_test.go
CONFLICT (content): Merge conflict in caas/kubernetes/provider/bootstrap_test.go
CONFLICT (content): Merge conflict in apiserver/facades/client/client/client_test.go
CONFLICT (content): Merge conflict in apiserver/facades/client/charms/services/repofactory.go
CONFLICT (modify/delete): apiserver/facades/client/charmhub/charmhub.go deleted in HEAD and modified in 2.9. Version 2.9 of apiserver/facades/client/charmhub/charmhub.go left in tree.
CONFLICT (content): Merge conflict in apiserver/facades/client/application/application_test.go
CONFLICT (content): Merge conflict in api/agent/uniter/uniter.go


## QA steps

Tests pass.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants