Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Ramsay <james@jramsay.com.au>2020-03-25 10:50:05 +0300
committerJames Ramsay <james@jramsay.com.au>2020-03-26 00:53:32 +0300
commitb2e1b9533be62cecb2d3f9417f8f8e9fc47fd8b5 (patch)
tree851e033472ce489eb055b9b76fb7799267ebb72c /_support/terraform
parent05cccf82fa5dd2faf7b31daafc5447507bbb865a (diff)
Increase disk size
The based image default is 10GB which is insufficient for a single large repository like www-gitlab-com to be repacked, or even moved to a different shard since the host operating takes up space too. The gitlab and gitaly-n nodes are now set to 250GB to provide sufficient space to move a large repo from the default storage after doing a simple Omnibus install to the HA Gitaly cluster.
Diffstat (limited to '_support/terraform')
-rw-r--r--_support/terraform/main.tf9
1 files changed, 7 insertions, 2 deletions
diff --git a/_support/terraform/main.tf b/_support/terraform/main.tf
index 66c6b594f..8ff190e96 100644
--- a/_support/terraform/main.tf
+++ b/_support/terraform/main.tf
@@ -1,7 +1,7 @@
variable "demo_region" { default = "us-east4" }
variable "demo_zone" { default = "us-east4-c" }
variable "praefect_demo_cluster_name" { }
-variable "ssh_user" {}
+variable "ssh_user" { }
variable "ssh_pubkey" { }
variable "os_image" { default = "ubuntu-os-cloud/ubuntu-1804-lts" }
variable "startup_script" {
@@ -14,7 +14,8 @@ variable "startup_script" {
EOF
}
variable "gitaly_machine_type" { default = "n1-standard-2" }
-#variable "praefect_sql_password" {}
+variable "gitaly_disk_size" { default = "100" }
+#variable "praefect_sql_password" { }
provider "google" {
version = "~> 3.12"
@@ -53,6 +54,7 @@ resource "google_compute_instance" "gitlab" {
boot_disk {
initialize_params {
image = var.os_image
+ size = var.gitaly_disk_size
}
}
@@ -111,6 +113,7 @@ resource "google_compute_instance" "gitaly_1" {
boot_disk {
initialize_params {
image = var.os_image
+ size = var.gitaly_disk_size
}
}
@@ -139,6 +142,7 @@ resource "google_compute_instance" "gitaly_2" {
boot_disk {
initialize_params {
image = var.os_image
+ size = var.gitaly_disk_size
}
}
@@ -167,6 +171,7 @@ resource "google_compute_instance" "gitaly_3" {
boot_disk {
initialize_params {
image = var.os_image
+ size = var.gitaly_disk_size
}
}