Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion dogfood/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ RUN apt-get update --quiet && apt-get install --yes \
terraform \
fish \
unzip \
zstd && \
zstd \
gettext-base && \
# Delete package cache to avoid consuming space in layer
apt-get clean && \
# Configure FIPS-compliant policies
Expand Down
9 changes: 8 additions & 1 deletion scaletest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,14 @@ All of the above arguments may be specified as environment variables. Consult th

### Prometheus Metrics

To capture Prometheus metrics from the loadtest, two environment
To capture Prometheus metrics from the loadtest, two environment variables are required:

- `SCALETEST_PROMETHEUS_REMOTE_WRITE_USER`
- `SCALETEST_PROMETHEUS_REMOTE_WRITE_PASSWORD`

### Enterprise License

To add an Enterprise license, set the `SCALETEST_CODER_LICENSE` environment variable to the JWT string

## Scenarios

Expand Down
6 changes: 6 additions & 0 deletions scaletest/scaletest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ SCALETEST_SCENARIO="${SCALETEST_SCENARIO:-}"
SCALETEST_PROJECT="${SCALETEST_PROJECT:-}"
SCALETEST_PROMETHEUS_REMOTE_WRITE_USER="${SCALETEST_PROMETHEUS_REMOTE_WRITE_USER:-}"
SCALETEST_PROMETHEUS_REMOTE_WRITE_PASSWORD="${SCALETEST_PROMETHEUS_REMOTE_WRITE_PASSWORD:-}"
SCALETEST_CODER_LICENSE="${SCALETEST_CODER_LICENSE:-}"
SCALETEST_SKIP_CLEANUP="${SCALETEST_SKIP_CLEANUP:-0}"
SCALETEST_CREATE_CONCURRENCY="${SCALETEST_CREATE_CONCURRENCY:-10}"
SCALETEST_TRAFFIC_BYTES_PER_TICK="${SCALETEST_TRAFFIC_BYTES_PER_TICK:-1024}"
Expand Down Expand Up @@ -155,6 +156,11 @@ maybedryrun "$DRY_RUN" kubectl --kubeconfig="${KUBECONFIG}" -n "coder-${SCALETES
echo "Initializing Coder deployment."
DRY_RUN="$DRY_RUN" "${PROJECT_ROOT}/scaletest/lib/coder_init.sh" "${SCALETEST_CODER_URL}"

if [[ -n "${SCALETEST_CODER_LICENSE}" ]]; then
echo "Applying Coder Enterprise License"
DRY_RUN="$DRY_RUN" "${PROJECT_ROOT}/scaletest/lib/coder_shim.sh" license add -l "${SCALETEST_CODER_LICENSE}"
fi

echo "Creating ${SCALETEST_NUM_WORKSPACES} workspaces."
DRY_RUN="$DRY_RUN" "${PROJECT_ROOT}/scaletest/lib/coder_shim.sh" scaletest create-workspaces \
--count "${SCALETEST_NUM_WORKSPACES}" \
Expand Down
2 changes: 2 additions & 0 deletions scaletest/terraform/coder.tf
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ coder:
value: "true"
- name: "CODER_VERBOSE"
value: "true"
- name: "CODER_EXPERIMENTS"
value: "${var.coder_experiments}"
image:
repo: ${var.coder_image_repo}
tag: ${var.coder_image_tag}
Expand Down
1 change: 1 addition & 0 deletions scaletest/terraform/prometheus.tf
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ resource "kubernetes_secret" "prometheus-postgres-password" {

# Install Prometheus Postgres exporter helm chart
resource "helm_release" "prometheus-exporter-chart" {
depends_on = [helm_release.prometheus-chart]
repository = local.prometheus_exporter_helm_repo
chart = local.prometheus_exporter_helm_chart
name = local.prometheus_exporter_release_name
Expand Down
5 changes: 5 additions & 0 deletions scaletest/terraform/vars.tf
Original file line number Diff line number Diff line change
Expand Up @@ -157,3 +157,8 @@ variable "prometheus_remote_write_send_interval" {
description = "Prometheus remote write interval."
default = "15s"
}

variable "coder_experiments" {
description = "Coder Experiments to enable"
default = ""
}