You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support deploying a cluster using stateful IP addresses
Stateful IPs are required to support load balancing using DNS round
robin. This is because clients will be connecting directly to a specific
proxy instances via the instance's internal IP address.
If a proxy instance fails and is replaced, the new instance needs to
keep the same IP address as the original so that clients can reconnect.
Change-Id: I3646cdee6ab534e00d919abc87e044c544f6c103
| NETWORK | The network name (VPC) to use for the deployment of the Knfsd Compute Engine Instances. | False |`default`|
89
-
| SUBNETWORK | The subnetwork name (subnet) to use for the deployment of the Knfsd Compute Engine Instances. | False |`default`|
90
-
| SUBNETWORK_PROJECT | The project that the subnetwork exists in. This only needs to be set if using a Shared VPC, where the subnetwork exists in a different project. Otherwise it defaults to the provider project. | False | null |
91
-
| AUTO_CREATE_FIREWALL_RULES | Should firewall rules automatically be created to allow [healthcheck connectivity](https://cloud.google.com/load-balancing/docs/health-check-concepts#ip-ranges)? | False |`true`|
92
-
| LOADBALANCER_IP | The IP address to use for the Internal Load Balancer. If not specified, a random IP address will be assigned within the subnet. | False | null |
| NETWORK | The network name (VPC) to use for the deployment of the Knfsd Compute Engine Instances. | False |`default`|
89
+
| SUBNETWORK | The subnetwork name (subnet) to use for the deployment of the Knfsd Compute Engine Instances. | False |`default`|
90
+
| SUBNETWORK_PROJECT | The project that the subnetwork exists in. This only needs to be set if using a Shared VPC, where the subnetwork exists in a different project. Otherwise it defaults to the provider project. | False | null |
91
+
| AUTO_CREATE_FIREWALL_RULES | Should firewall rules automatically be created to allow [healthcheck connectivity](https://cloud.google.com/load-balancing/docs/health-check-concepts#ip-ranges)? | False |`true`|
92
+
| LOADBALANCER_IP | The IP address to use for the Internal Load Balancer. If not specified, a random IP address will be assigned within the subnet. | False | null |
93
+
| ASSIGN_STATIC_IPS | If set to `true`, configures the MIG to use [stateful IP addresses](https://cloud.google.com/compute/docs/instance-groups/configuring-stateful-ip-addresses-in-migs). If an instance is replaced due to an update or failing health check the new instance will keep the same IP address as the original instance. | False |`false`|
93
94
| ENABLE_HIGH_BANDWIDTH_CONFIGURATION | If set to `true` enables [gVNIC](https://cloud.google.com/compute/docs/networking/using-gvnic) and [Tier 1 Bandwidth](https://cloud.google.com/compute/docs/networking/configure-vm-with-high-bandwidth-configuration) for higher egress. When enabled, only N2, N2D, C2 or C2D VM's are supported. You should also make sure you [assign enough vCPU's](https://cloud.google.com/compute/docs/networking/configure-vm-with-high-bandwidth-configuration#bandwidth-tiers) to take advantage of this configuration. | False | null |
94
95
95
96
### Health Check Configuration
@@ -153,11 +154,16 @@ If using the NetApp Exports Auto-Discovery feature, please also read the [NetApp
153
154
| CUSTOM_POST_STARTUP_SCRIPT | The path to a bash script to run after the [proxy-startup.sh](proxy-startup.sh) script. For example `file("/home/ben/myscript.sh")`. | False | empty script |
154
155
| MACHINE_TYPE | The GCP Machine type to use for the Knfsd cache. Currently only N1 instances can be used. | False |`n1-highmem-16`|
155
156
| MIG_MAX_UNAVAILABLE_PERCENT | The maximum number of instances that can be unavailable during automated MIG updates ([see docs](https://cloud.google.com/compute/docs/instance-groups/rolling-out-updates-to-managed-instance-groups#max_unavailable)). Defaults to 100% to ensure consistent cache instances within the MIG. | False |`100`|
156
-
| MIG_REPLACEMENT_METHOD | The instance replacement method for managed instance groups. Valid values are: `RECREATE`, `SUBSTITUTE`.<br><br>If `SUBSTITUTE` (default), the group replaces VM instances with new instances that have randomly generated names. If `RECREATE`, instance names are preserved. You must also set `MIG_MAX_UNAVAILABLE_PERCENT` to be greater than 0 (default is already `100` so this only applies if you have modified this variable). | False |`SUBSTITUTE`|
157
+
| MIG_REPLACEMENT_METHOD | The instance replacement method for managed instance groups. Valid values are: `RECREATE`, `SUBSTITUTE`.<br><br>If `SUBSTITUTE` (default), the group replaces VM instances with new instances that have randomly generated names. If `RECREATE`, instance names are preserved. You must also set `MIG_MAX_UNAVAILABLE_PERCENT` to be greater than 0 (default is already `100` so this only applies if you have modified this variable). | False |`SUBSTITUTE`or `RECREATE`|
157
158
| MIG_MINIMAL_ACTION | Minimal action to be taken on an instance. You can specify either RESTART to restart existing instances or REPLACE to delete and create new instances from the target template. If you specify a RESTART, the Updater will attempt to perform that action only. However, if the Updater determines that the minimal action you specify is not enough to perform the update, it might perform a more disruptive action. | False |`RESTART`|
158
159
| ENABLE_KNFSD_AGENT | Should the [Knfsd Agent](../../image/knfsd-agent/README.md) be started at Proxy Startup? | False |`true`|
159
160
| SERVICE_ACCOUNT | Service account the NFS proxy compute instances will run with. | False | See service account notes below |
160
161
162
+
The default `MIG_REPLACEMENT_METHOD` depends on `ASSIGN_STATIC_IPS`:
163
+
164
+
* When `ASSIGN_STATIC_IPS = false` then the default `MIG_REPLACEMENT_METHOD` is `SUBSTITUTE`.
165
+
* When `ASSIGN_STATIC_IPS = true` then the default `MIG_REPLACEMENT_METHOD` is `RECREATE`.
166
+
161
167
#### Service Account Notes
162
168
163
169
The default `SERVICE_ACCOUNT` depends on `ENABLE_STACKDRIVER_METRICS`.
Added a new configuration option, `ASSIGN_STATIC_IPS`. This configures the MIG to use [stateful IP addresses](https://cloud.google.com/compute/docs/instance-groups/configuring-stateful-ip-addresses-in-migs).
29
+
30
+
When using stateful IP addresses, if an instance needs to be replaced due to an update, or auto-healing the new instance will have the same IP as the original instance.
31
+
32
+
This allows using the cluster without a load balancer, where the clients connected directly to a specific proxy instance via the instances internal IP address.
33
+
25
34
# v1.0.0-beta3
26
35
27
36
* Temporary fix for cachefilesd intermittently terminating
0 commit comments