-
Notifications
You must be signed in to change notification settings - Fork 54
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
Provide fallback server type #111
Comments
Hi, given that there were some issues regarding availability, I think the basic suggestion is good. However, I would like some more discussion on how exactly you suppose the fallback behavior should be invoked. Will the server type lookup fail-fast? Or do we need a backup strategy for when the server creation itself fails. Also, while the driver does not look at the server type after creation, it is saved to the machine JSON. Some downstream software might use this to gather information about the server and would see a discrepancy. So while the basic idea sounds good, there are some points that need further discussion. Rushing things would lead to something that does more harm than good due to the potential obfuscation included. |
Hello ! I would very much like this. Currently I have a very-custom-not-upstreamable POC patch that adds a feature compatible with this request. I tested changing the server and location type options to a combined parameter that let's you set a comma-separated list of For example: The approach was to try them one by one replacing the properties in the class and retry the creation so the downstream code sees the correct. Would something like this work? One of the pain points with this approach was backwards compatibility. |
HI, thanks for the input!
I really like the idea. One potential problem I see is getting the image architecture right, as might have to switch on-the-fly if the chain of alternatives contains some ARM servers. Though we could simply go with saying such behavior is undefined and all types specified should have the same architecture.
That is the biggest pain point to me. The flags are not that much of a problem IMO, we could make do with mutual exclusion. I do see a problem in terms of configuration vs. execution: The way I understand it, the driver is not supposed to mutate the configuration after I currently don't really see a 'nice' way to get this in line with the normal server creation. Perhaps one could query all possible combinations in Yet another point to consider is whether the alternatives should be stored as part of the machine state, i.e. should I still like this idea, after all, but it really is a can of worms to me. The more light I try to shed on this the more potential problem arise. As of now, I'm unsure of whether this should be an intrinsic feature of the driver or whether some example bash script on how to run |
Sometimes creating servers of a certain type fails because of availability issues at Hetzner, while using other server types still works just fine. For these cases it would be great to have a way of specifying a fallback server type that should be tried if the primary server type doesn't work.
The text was updated successfully, but these errors were encountered: