Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@frebib
Copy link
Contributor

@frebib frebib commented Aug 24, 2019

This is WIP, but works in it's current state. Tests to follow.

Scaleway is one of the only providers that support ARM architecture VMs which we are in need of, so we decided this was the right approach

@frebib
Copy link
Contributor Author

frebib commented Aug 24, 2019

CI is failing because I can't even go dep. I've never used it before and I can't get it to work. Some pointers would be appreciated, please

I worked it out: I was using outdated vendored packages locally, which explains why it only failed in CI on fresh pull

@frebib frebib force-pushed the scaleway branch 3 times, most recently from 5ade488 to ed320e8 Compare August 25, 2019 00:35
@frebib
Copy link
Contributor Author

frebib commented Aug 25, 2019

I have reworked the way that this destroys old servers, hence the repeated changes, but I think the logic is simple and stable now

Copy link
Contributor

@tboerger tboerger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should not panic at all.

@frebib
Copy link
Contributor Author

frebib commented Aug 25, 2019

You should not panic at all.

I agree. I was being consistent with other drivers in this case. Given the function signature doesn't handle errors, what else could/should I do?

@tboerger
Copy link
Contributor

IMHO you should check that within the New func and error out.

@frebib
Copy link
Contributor Author

frebib commented Aug 25, 2019

Option errors are checked and handled gracefully now

@frebib frebib force-pushed the scaleway branch 3 times, most recently from a84c912 to 7c5d984 Compare August 26, 2019 11:44
@bradrydzewski
Copy link
Contributor

this looks good to me, just needs to be updated to use go modules. Also when we merge, if you don't mind, submit an entry to configure for Scaleway at https://github.com/drone/autoscaler-docs :)

@bradrydzewski bradrydzewski merged commit 819f057 into drone:master Sep 3, 2019
@tboerger
Copy link
Contributor

tboerger commented Oct 8, 2019

Looks like your choosen default values aren't that great, the autoscaler always fails for C1 and ARM64-2GB instances, local boot mode is not possible.

@frebib
Copy link
Contributor Author

frebib commented Oct 8, 2019

The image/size combo is a bit complicated. As default it should work with amd64. You have to change the image if you change the arch, location or size

@tboerger
Copy link
Contributor

tboerger commented Oct 8, 2019

Looks like I got to create a PR to fix the options, https://github.com/drone/autoscaler/blob/master/drivers/scaleway/create.go#L35 this hard-coded value doesn't work for the arm32/arm64 images. I don't need scaleway for amd64 nodes, I need it only for arm32/arm64.

@ashwilliams1
Copy link

while we're on the topic, it would be great to have some docs for Scaleway at https://github.com/drone/autoscaler-docs 😄

@tboerger
Copy link
Contributor

#55 will fix my issues with the Scaleway implementation, after that I can prepare a PR that documents this provider.

@frebib
Copy link
Contributor Author

frebib commented Oct 10, 2019

I started a branch for documenting this, but I haven't had time to finish it. You're welcome to use it as a base
frebib/autoscaler-docs@858d6bc

@Blafy
Copy link

Blafy commented Jan 6, 2020

Hi !
@frebib Nice feature to have the Scaleway implementation, thanks.
But the docs aren't merged yet.
What is missing in your documentation ? So we can complete it and PR it ?

@frebib frebib deleted the scaleway branch January 12, 2020 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants