From 39c99283f5d1a9f98d5d40a76fbd28eee84a1e66 Mon Sep 17 00:00:00 2001 From: Heitor Tashiro Sergent Date: Mon, 2 Dec 2024 10:39:54 -0600 Subject: [PATCH] Apply to v0.55 and v0.54 --- docs/sources/k6/v0.54.x/results-output/real-time/cloud.md | 2 +- .../k6/v0.54.x/testing-guides/running-large-tests.md | 7 +++---- docs/sources/k6/v0.55.x/results-output/real-time/cloud.md | 2 +- .../k6/v0.55.x/testing-guides/running-large-tests.md | 7 +++---- 4 files changed, 8 insertions(+), 10 deletions(-) diff --git a/docs/sources/k6/v0.54.x/results-output/real-time/cloud.md b/docs/sources/k6/v0.54.x/results-output/real-time/cloud.md index b384a4e6f2..d3e5ff712f 100644 --- a/docs/sources/k6/v0.54.x/results-output/real-time/cloud.md +++ b/docs/sources/k6/v0.54.x/results-output/real-time/cloud.md @@ -113,7 +113,7 @@ command: `k6 cloud run --local-execution --no-archive-upload script.js`. ## Advanced settings -A few [environment variables](https://grafana.com/docs/k6//using-k6/environment-variables) can control how k6 streams results with `-o cloud`. +A few [environment variables](https://grafana.com/docs/k6//using-k6/environment-variables) can control how k6 streams results with `k6 cloud run script.js --local-execution`. When streaming, k6 will collect all data and send it to the cloud in batches. diff --git a/docs/sources/k6/v0.54.x/testing-guides/running-large-tests.md b/docs/sources/k6/v0.54.x/testing-guides/running-large-tests.md index bca75b3676..560b4e51f0 100644 --- a/docs/sources/k6/v0.54.x/testing-guides/running-large-tests.md +++ b/docs/sources/k6/v0.54.x/testing-guides/running-large-tests.md @@ -174,8 +174,7 @@ If you need the response body for some requests, override the option with [Param ### When streaming, use `--no-thresholds` and `--no-summary` -If you're running a local test and streaming results to the cloud (`k6 run -o cloud`), you might want to disable the terminal summary -and local threshold calculation, because the cloud service will display the summary and calculate the thresholds. +If you're running a local test and streaming results to the cloud (`k6 cloud run script.js --local-execution`), you might want to disable the terminal summary and local threshold calculation, because the cloud service will display the summary and calculate the thresholds. Without these options, the operations will be duplicated by both the local machine and the cloud servers. This will save some memory and CPU cycles. @@ -183,8 +182,8 @@ This will save some memory and CPU cycles. Here are all the mentioned flags, all in one: ```bash -k6 run scripts/website.js \ - -o cloud \ +k6 cloud run scripts/website.js \ + --local-execution \ --vus=20000 \ --duration=10m \ --no-thresholds \ diff --git a/docs/sources/k6/v0.55.x/results-output/real-time/cloud.md b/docs/sources/k6/v0.55.x/results-output/real-time/cloud.md index b384a4e6f2..d3e5ff712f 100644 --- a/docs/sources/k6/v0.55.x/results-output/real-time/cloud.md +++ b/docs/sources/k6/v0.55.x/results-output/real-time/cloud.md @@ -113,7 +113,7 @@ command: `k6 cloud run --local-execution --no-archive-upload script.js`. ## Advanced settings -A few [environment variables](https://grafana.com/docs/k6//using-k6/environment-variables) can control how k6 streams results with `-o cloud`. +A few [environment variables](https://grafana.com/docs/k6//using-k6/environment-variables) can control how k6 streams results with `k6 cloud run script.js --local-execution`. When streaming, k6 will collect all data and send it to the cloud in batches. diff --git a/docs/sources/k6/v0.55.x/testing-guides/running-large-tests.md b/docs/sources/k6/v0.55.x/testing-guides/running-large-tests.md index bca75b3676..560b4e51f0 100644 --- a/docs/sources/k6/v0.55.x/testing-guides/running-large-tests.md +++ b/docs/sources/k6/v0.55.x/testing-guides/running-large-tests.md @@ -174,8 +174,7 @@ If you need the response body for some requests, override the option with [Param ### When streaming, use `--no-thresholds` and `--no-summary` -If you're running a local test and streaming results to the cloud (`k6 run -o cloud`), you might want to disable the terminal summary -and local threshold calculation, because the cloud service will display the summary and calculate the thresholds. +If you're running a local test and streaming results to the cloud (`k6 cloud run script.js --local-execution`), you might want to disable the terminal summary and local threshold calculation, because the cloud service will display the summary and calculate the thresholds. Without these options, the operations will be duplicated by both the local machine and the cloud servers. This will save some memory and CPU cycles. @@ -183,8 +182,8 @@ This will save some memory and CPU cycles. Here are all the mentioned flags, all in one: ```bash -k6 run scripts/website.js \ - -o cloud \ +k6 cloud run scripts/website.js \ + --local-execution \ --vus=20000 \ --duration=10m \ --no-thresholds \