diff --git a/img/loadtests/k8ssettings.PNG b/img/loadtests/k8ssettings.PNG new file mode 100644 index 000000000..6bd6cb058 Binary files /dev/null and b/img/loadtests/k8ssettings.PNG differ diff --git a/img/loadtests/loadtestproj_dir.PNG b/img/loadtests/loadtestproj_dir.PNG new file mode 100644 index 000000000..d880e9ecc Binary files /dev/null and b/img/loadtests/loadtestproj_dir.PNG differ diff --git a/img/loadtests/runloadtest.PNG b/img/loadtests/runloadtest.PNG new file mode 100644 index 000000000..8c2cbdec2 Binary files /dev/null and b/img/loadtests/runloadtest.PNG differ diff --git a/img/loadtests/sfmanifestsettings.PNG b/img/loadtests/sfmanifestsettings.PNG new file mode 100644 index 000000000..b360fef63 Binary files /dev/null and b/img/loadtests/sfmanifestsettings.PNG differ diff --git a/src/Services/Catalog/Catalog.API/appsettings.json b/src/Services/Catalog/Catalog.API/appsettings.json index abaa34316..0f36d229c 100644 --- a/src/Services/Catalog/Catalog.API/appsettings.json +++ b/src/Services/Catalog/Catalog.API/appsettings.json @@ -5,7 +5,7 @@ "Logging": { "IncludeScopes": false, "LogLevel": { - "Default": "Debug", + "Default": "Trace", "System": "Information", "Microsoft": "Information" } diff --git a/src/Services/Identity/Identity.API/appsettings.json b/src/Services/Identity/Identity.API/appsettings.json index 05e06c441..6b251be41 100644 --- a/src/Services/Identity/Identity.API/appsettings.json +++ b/src/Services/Identity/Identity.API/appsettings.json @@ -8,7 +8,7 @@ "Logging": { "IncludeScopes": false, "LogLevel": { - "Default": "Debug", + "Default": "Trace", "System": "Information", "Microsoft": "Information" } diff --git a/src/Services/Location/Locations.API/appsettings.json b/src/Services/Location/Locations.API/appsettings.json index 512b55f2a..a00ef1188 100644 --- a/src/Services/Location/Locations.API/appsettings.json +++ b/src/Services/Location/Locations.API/appsettings.json @@ -5,7 +5,7 @@ "Logging": { "IncludeScopes": false, "LogLevel": { - "Default": "Debug", + "Default": "Trace", "System": "Information", "Microsoft": "Information" } diff --git a/src/Services/Marketing/Marketing.API/appsettings.json b/src/Services/Marketing/Marketing.API/appsettings.json index c4d908c83..acea415ce 100644 --- a/src/Services/Marketing/Marketing.API/appsettings.json +++ b/src/Services/Marketing/Marketing.API/appsettings.json @@ -2,7 +2,7 @@ "Logging": { "IncludeScopes": false, "LogLevel": { - "Default": "Warning" + "Default": "Trace" } }, "ConnectionString": "Server=tcp:127.0.0.1,5433;Initial Catalog=Microsoft.eShopOnContainers.Services.MarketingDb;User Id=sa;Password=Pass@word", diff --git a/src/Services/Ordering/Ordering.API/settings.json b/src/Services/Ordering/Ordering.API/settings.json index 61ebe5325..77ed2e4dc 100644 --- a/src/Services/Ordering/Ordering.API/settings.json +++ b/src/Services/Ordering/Ordering.API/settings.json @@ -5,7 +5,7 @@ "Logging": { "IncludeScopes": false, "LogLevel": { - "Default": "Debug", + "Default": "Trace", "System": "Information", "Microsoft": "Information" } diff --git a/test/Services/LoadTest/LoadTest.csproj b/test/Services/LoadTest/LoadTest.csproj index 47f3ac5ec..830d7cb61 100644 --- a/test/Services/LoadTest/LoadTest.csproj +++ b/test/Services/LoadTest/LoadTest.csproj @@ -147,15 +147,15 @@ Always - - PreserveNewest - PreserveNewest PreserveNewest + + PreserveNewest + diff --git a/test/Services/LoadTest/WebMVC/CreateNewOrder.webtest b/test/Services/LoadTest/WebMVC/CreateNewOrder.webtest index e43f84d56..7a59ee50b 100644 --- a/test/Services/LoadTest/WebMVC/CreateNewOrder.webtest +++ b/test/Services/LoadTest/WebMVC/CreateNewOrder.webtest @@ -164,7 +164,7 @@ - + diff --git a/test/Services/LoadTest/readme.md b/test/Services/LoadTest/readme.md new file mode 100644 index 000000000..3d1fbdfc0 --- /dev/null +++ b/test/Services/LoadTest/readme.md @@ -0,0 +1,84 @@ +# Load Testing settings + +This folder contains files needed to run load tests locally or on a Kubernetes / Service Fabric cluster. + +

+ +

+ +## Set a local environment + +Modify the **app.config** file and set the following service urls. + +``` + + + + + + + + + +``` + +Modify the **.env** file and set the following config property as shown bellow. + +``` +USE_LOADTEST=True +``` +## Set a Service Fabric environment + +Modify the **app.config** file and set the following service urls. + +``` + + + + + + + + + +``` + +Modify the **ServiceManifest.xml** files of the eShop SF Services and set the **UseLoadTest** environment variable to True. This setting enables the load tests to bypass authorization in api services. + +

+ +

+ +Deploy the SF services. **PLEASE** Read our [SF deployment guide for Linux](./../../../deploy/az/servicefabric/LinuxContainers/readme.md) And [SF deployment guide for Windows](./../../../deploy/az/servicefabric/WindowsContainers/readme.md) to know about how to deploy eshop on SF. + +## Set a Kubernetes environment + +Modify the **app.config** file and set the following service urls. + +``` + + + + + + + + + +``` + +Modify the **conf_local.yml** file in the K8s directory and set the **EnableLoadTest** environment variable to True. This setting enables the load tests to bypass authorization in api services. + +

+ +

+ +Deploy the kubernetes services. **PLEASE** Read our [k8s deployment guide](./../../../k8s/README.k8s.md) to know about how to deploy eshop on Kubernetes. + +## Run Load Tests + +Open the load test you want to perform ***.loadtest** files and click the Run Load test button. + +

+ +

\ No newline at end of file