Skip to content

Commit 6d40267

Browse files
committed
Fixed questions
1 parent f2a1d31 commit 6d40267

File tree

5 files changed

+21
-11
lines changed

5 files changed

+21
-11
lines changed

content/en/other/hpa/3-deploy-apache.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ agent:
5151
config:
5252
type: collectd/apache
5353
url: http://php-apache-svc.apache.svc.cluster.local/server-status?auto
54+
extraDimensions:
55+
service.name: php-apache
5456
```
5557
5658
## 3. Observation Rules in the OpenTelemetry config

content/en/other/hpa/4-fix-apache.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,10 @@ Is the **Apache Web Servers** dashboard showing any data now?
8585
**Tip:** Don't forget to use filters and time frames to narrow down your data.
8686
{{% /notice %}}
8787

88+
Monitor the Apache web servers Navigator dashboard for a few minutes.
89+
8890
{{% notice title="Workshop Question" style="tip" icon="question" %}}
89-
Another Detector has fired, which one is it this time?
91+
What is happening with the # Hosts reporting chart?
9092
{{% /notice %}}
9193

9294
## 4. Fix memory issue

content/en/other/hpa/5-deploy-loadgen.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,13 @@ This file contains the configuration for the load generator and will create a ne
1818

1919
``` yaml
2020
apiVersion: apps/v1
21-
kind: StatefulSet
21+
kind: ReplicaSet
2222
metadata:
2323
name: loadgen
2424
labels:
2525
app: loadgen
2626
spec:
27-
serviceName: "loadgen"
28-
replicas: 1
27+
replicas: 2
2928
selector:
3029
matchLabels:
3130
app: loadgen
@@ -59,7 +58,7 @@ kubectl apply -f ~/workshop/k3s/loadgen.yaml --namespace loadgen
5958
Once you have deployed the load generator, you can see the Pod running in the `loadgen` namespace. Use previous similar commands to check the status of the Pod from the command line.
6059

6160
{{% notice title="Workshop Question" style="tip" icon="question" %}}
62-
What metrics in the Apache Dashboard have now significantly increased?
61+
Which metrics in the Apache Navigator have now significantly increased?
6362
{{% /notice %}}
6463

6564
## 4. Scale the load generator
@@ -71,17 +70,24 @@ ReplicaSet helps bring up a new instance of a Pod when the existing one fails, s
7170
Let's scale our ReplicaSet to 4 replicas using the following command:
7271

7372
``` text
74-
kubectl scale statefulset/loadgen --replicas 4 -n loadgen
73+
kubectl scale replicaset/loadgen --replicas 4 -n loadgen
7574
```
7675

7776
Validate the replicas are running from both the command line and Splunk Observability Cloud:
7877

7978
``` text
80-
kubectl get statefulset loadgen -n loadgen
79+
kubectl get replicaset loadgen -n loadgen
8180
```
8281

83-
{{% notice title="Workshop Question" style="tip" icon="question" %}}
84-
What impact did this have? Where in O11y can you see the increased replica number?
82+
![Replicaset](../images/k8s-workload-replicaset.png)
83+
84+
{{% notice title="Workshop Questions" style="tip" icon="question" %}}
85+
86+
1. What impact did this have?
87+
88+
2. Where in Splunk Observability Cloud can you see the increased replica number?
89+
90+
**Hint:** Use the Kubernetes Navigator and make sure **Group by** is set to **none**.
8591
{{% /notice %}}
8692

8793
Let the load generator run for around 2-3 minutes and keep observing the metrics in the Kubernetes Navigator and the Apache Navigator.

content/en/other/hpa/6-setup-hpa.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ How many additional `php-apache-x` pods have been created?
6767
{{% /notice %}}
6868

6969
{{% notice title="Workshop Question" style="tip" icon="question" %}}
70-
Which metrics in the Apache Dashboards have significantly increased again?
70+
Which metrics in the Apache Navigator have significantly increased again?
7171
{{% /notice %}}
7272

7373
## 3. Increase the HPA replica count
@@ -78,7 +78,7 @@ Increase the `maxReplicas` to 8
7878
kubectl edit hpa php-apache -n apache
7979
```
8080

81-
Save the changes youhave made. (Hint: Use `Esc` followed by `:wq!` to save your changes).
81+
Save the changes you have made. (Hint: Use `Esc` followed by `:wq!` to save your changes).
8282

8383
{{% notice title="Workshop Question" style="tip" icon="question" %}}
8484
How many pods are now in a running state? How many are pending? Why are they pending?
197 KB
Loading

0 commit comments

Comments
 (0)