-
Notifications
You must be signed in to change notification settings - Fork 114
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
[RFE] Parallel Filestore deploy and destroy #538
Comments
Hi Federico, |
Hi Federico, I created a simple blueprint to try to reproduce the error and, here, the instances seem to be created in parallel. I also had the impression of seeing this sequential creation before, could it have been circumstantial (based on the number of things being already created)? Could you try again with -parallelism=20 during the terraform apply? FYI, the yaml I used for test now was: # Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
---
blueprint_name: filestore-test
vars:
project_id: ## Set GCP Project ID Here ##
deployment_name: filestore-test
region: us-central1
zone: us-central1-c
deployment_groups:
- group: primary
modules:
- id: network1
source: modules/network/vpc
- id: homefs
source: modules/file-system/filestore
use: [network1]
settings:
local_mount: /home
- id: homefs2
source: modules/file-system/filestore
use: [network1]
settings:
local_mount: /home2
- id: homefs3
source: modules/file-system/filestore
use: [network1]
settings:
local_mount: /home3
- id: homefs4
source: modules/file-system/filestore
use: [network1]
settings:
local_mount: /home4
- id: compute
source: modules/compute/vm-instance
kind: terraform
use: [network1]
settings:
name_prefix: vm
instance_count: 1 And the output seems to be parallel. What do you think? |
We are still working to track down if the observed behavior is a result of the terraform provider implementation or google cloud implementation. |
I found the root cause of this serialization to be described here: hashicorp/terraform-provider-google#9007 |
GoogleCloudPlatform/magic-modules#6672 should address the issue. |
v4.41.0 |
Currently, when deploying a blueprint with two Filestore, the deployment happens one after the other.
This process is suboptimal because there is no technical reason to wait for the first Filestore to be ready before performing the next deployment.
Likewise, when destroying a cluster, Filestore resource deletion happens sequentially.
I'd like to propose improving this process and considerably shirking both deployment and deletion timelines.
WDYT?
The text was updated successfully, but these errors were encountered: