-
Notifications
You must be signed in to change notification settings - Fork 33
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
Xen affinity rule #153
Comments
We have the antiaffinity rule in Xen Orchestra via the load balancer plugin (see https://xen-orchestra.com/blog/xen-orchestra-5-57/#antiaffinityinloadbalancer). @julien-f can we use XO API to talk to the plugin directly and setup what we need? |
The only way to talk to the plugin is to use the If more interactivity is needed, we can update the plugin to expose specific API methods. |
I synced up with @julien-f about this. It would be possible to create a terraform resource for the load balancer plugin to accomplish this re-balancing. That plugin is only available for customers with the XO premium support. I'll look into implementing this in more detail, but it likely won't happen for a week or two. |
That would mean I have to use this XO plugin with specific version and also be a XO premium member? what if im neither? |
That's a bit more complicated that writing something "scattering new VMs more or less equally". Otherwise, it wouldn't be a dedicated plugin with hundreds lines of code. But it's Open Source, so you can install the plugin yourself if you installed it from the sources: https://github.com/vatesfr/xen-orchestra/tree/master/packages/xo-server-load-balancer If you are using XOA (the turnkey virtual appliance), then you need the support plan coming with it, meaning XOA Premium. Also I suppose that if you use Xen Orchestra at scale with XCP-ng or XenServer, having official support isn't a bad idea (since there's no "one shot support"). It also helps the project to grow and get more people working on it. |
Terraform providers are better as glue between the terraform code and the API providing the functionality. Encoding detailed scheduling logic, adds complexity that is best done in the API (like the xo-server-load-balancer). This typically causes inconsistent and constant diffs during If you want to have more control over the scheduling, without installing the xo-server-load-balancer, and don't mind a little bit of upfront work, you could do something like this. Note: this is code is untested.
|
Hello Dom,
will it be possibe to add an anti-affinity-rule like on vmware_vsphere that is documented over here:
https://registry.terraform.io/providers/hashicorp/vsphere/latest/docs/resources/compute_cluster_vm_anti_affinity_rule
The ability to deploy via TF the xen vms on different hosts and create an HA environment will greatly help us !
Thanks :)
Lavih
The text was updated successfully, but these errors were encountered: