File tree 10 files changed +40
-25
lines changed
lading_splunk_hec_blackhole
tests/http_pipelines_blackhole/terraform
10 files changed +40
-25
lines changed Original file line number Diff line number Diff line change @@ -90,15 +90,6 @@ minikube mount "${SOAK_CAPTURE_DIR}:/captures" &
90
90
CAPTURE_MOUNT_PID=$!
91
91
popd
92
92
93
- pushd " ${SOAK_ROOT} /tests/${SOAK_NAME} "
94
- mkdir --parents data
95
- # Mount the data directory. This is where the data that supports the test are
96
- # mounted into the minikube. The software running in the minikube will not write
97
- # to this directory.
98
- minikube mount " ${SOAK_ROOT} /tests/${SOAK_NAME} /data:/data" &
99
- DATA_MOUNT_PID=$!
100
- popd
101
-
102
93
pushd " ${SOAK_ROOT} /tests/${SOAK_NAME} /terraform"
103
94
terraform init
104
95
terraform apply -var " type=${VARIANT} " -var " vector_image=${IMAGE} " -var " vector_cpus=${VECTOR_CPUS} " -var " lading_image=ghcr.io/blt/lading:sha-0da91906d56acc899b829cea971d79f13e712e21" -auto-approve -compact-warnings -input=false -no-color
@@ -108,7 +99,6 @@ sleep "${WARMUP_GRACE}"
108
99
echo " [${VARIANT} ] Recording captures to ${SOAK_CAPTURE_DIR} "
109
100
sleep " ${TOTAL_SAMPLES} "
110
101
kill " ${CAPTURE_MOUNT_PID} "
111
- kill " ${DATA_MOUNT_PID} "
112
102
popd
113
103
114
104
pushd " ${__dir} "
Original file line number Diff line number Diff line change @@ -15,5 +15,5 @@ variable "http-blackhole-yaml" {
15
15
16
16
variable "lading_image" {
17
17
description = " The lading image to run"
18
- type = string
18
+ type = string
19
19
}
Original file line number Diff line number Diff line change
1
+ resource "kubernetes_config_map" "lading_bootstrap" {
2
+ metadata {
3
+ name = " lading-http-gen-bootstrap"
4
+ namespace = var. namespace
5
+ }
6
+
7
+ data = {
8
+ " bootstrap.log" = var.http- gen- static- bootstrap
9
+ }
10
+ }
11
+
1
12
resource "kubernetes_config_map" "lading" {
2
13
metadata {
3
14
name = " lading-http-gen"
@@ -113,8 +124,8 @@ resource "kubernetes_deployment" "http-gen" {
113
124
}
114
125
volume {
115
126
name = " data"
116
- host_path {
117
- path = " /data "
127
+ config_map {
128
+ name = kubernetes_config_map . lading_bootstrap . metadata [ 0 ] . name
118
129
}
119
130
}
120
131
}
Original file line number Diff line number Diff line change @@ -13,7 +13,14 @@ variable "http-gen-yaml" {
13
13
type = string
14
14
}
15
15
16
+ variable "http-gen-static-bootstrap" {
17
+ description = " Boostrap log to be used for static variant, mounted at /data/boostrap.log"
18
+ type = string
19
+ default = " "
20
+ }
21
+
22
+
16
23
variable "lading_image" {
17
24
description = " The lading image to run"
18
- type = string
25
+ type = string
19
26
}
Original file line number Diff line number Diff line change @@ -15,5 +15,5 @@ variable "splunk-hec-blackhole-yaml" {
15
15
16
16
variable "lading_image" {
17
17
description = " The lading image to run"
18
- type = string
18
+ type = string
19
19
}
Original file line number Diff line number Diff line change @@ -15,5 +15,5 @@ variable "splunk-hec-gen-yaml" {
15
15
16
16
variable "lading_image" {
17
17
description = " The lading image to run"
18
- type = string
18
+ type = string
19
19
}
Original file line number Diff line number Diff line change @@ -15,5 +15,5 @@ variable "tcp-gen-yaml" {
15
15
16
16
variable "lading_image" {
17
17
description = " The lading image to run"
18
- type = string
18
+ type = string
19
19
}
File renamed without changes.
Original file line number Diff line number Diff line change @@ -4,12 +4,12 @@ prometheus_addr: "0.0.0.0:9090"
4
4
targets :
5
5
vector :
6
6
headers : {}
7
- target_uri : " http://vector:8282/v1/input "
7
+ target_uri : " http://vector:8282/"
8
8
bytes_per_second : " 500 Mb"
9
9
parallel_connections : 10
10
10
method :
11
11
post :
12
12
maximum_prebuild_cache_size_bytes : " 256 Mb"
13
13
variant :
14
14
static :
15
- static_path : " /tmp/input .log"
15
+ static_path : " /data/bootstrap .log"
Original file line number Diff line number Diff line change @@ -44,10 +44,17 @@ module "vector" {
44
44
depends_on = [module . monitoring ]
45
45
}
46
46
module "http-gen" {
47
- source = " ../../../common/terraform/modules/lading_http_gen"
48
- type = var. type
49
- http-gen-yaml = file (" ${ path . module } /http_gen.yaml" )
50
- namespace = kubernetes_namespace. soak . metadata [0 ]. name
51
- lading_image = var. lading_image
52
- depends_on = [module . monitoring , module . vector ]
47
+ source = " ../../../common/terraform/modules/lading_http_gen"
48
+ type = var. type
49
+ http-gen-yaml = file (" ${ path . module } /http_gen.yaml" )
50
+ # This is a hack. Ultimately this creates a configmap in the minikube, where
51
+ # we would _prefer_ to simply mount a directory into the kube. This is not
52
+ # possible, pending introductoin of
53
+ # https://github.com/kubernetes/minikube/issues/12301 into a release. Keep in
54
+ # mind that the bootstrap _must_ be below 1MB in size, which severely limits
55
+ # the entropy of our experiment.
56
+ http-gen-static-bootstrap = file (" ${ path . module } /data/http_gen_bootstrap.log" )
57
+ namespace = kubernetes_namespace. soak . metadata [0 ]. name
58
+ lading_image = var. lading_image
59
+ depends_on = [module . monitoring , module . vector ]
53
60
}
You can’t perform that action at this time.
0 commit comments