rancher / terraform-provider-rancher2

Terraform Rancher2 provider
https://www.terraform.io/docs/providers/rancher2/
Mozilla Public License 2.0
262 stars 226 forks source link

Slow ETCD perfomance when terraforming a rke cluster on openstack. #814

Closed andersjohansson2021 closed 2 years ago

andersjohansson2021 commented 2 years ago

Provider version: rancher/rancher2 v1.21.0 Terraform Version: 1.0.0 I have the below terraform plan to terraform a rke cluster in Rancher ontop of openstack. Howerver i noticed that i get a pretty large latency on my etcd nodes when terraform instead of using to gui to create the cluster. I get numbers around the 3-400s in ms on the fsync value where i should be is below 10ms at least. In the cluster that ive as a reference cluster i have number way below 10ms, i usually lay around 1.5 to 2 ms which perfect. The cluster is provisioned on the same hardware and yes i have ssd for the etcd nodes 😄 .

Anyone that can lend me an eye or two see where i go wrong in my terraforming?

helm_release.cilium will be created

Plan: 10 to add, 0 to change, 0 to destroy.

andersjohansson2021 commented 2 years ago

Solved with udevadm and "ACTION=="add|change", KERNEL=="sda", ATTR{queue/write_cache}="write through""