From c4e6de3764063b3af200f6ee3bee5506a4449efe Mon Sep 17 00:00:00 2001 From: Yusheng Guo <113574546+yusheng-guo@users.noreply.github.com> Date: Thu, 24 Oct 2024 15:03:26 +0800 Subject: [PATCH] docs(discovery/aliyun): add PRESSURE_TEST.md (#11) add pressure test report of aliyun ecs service discovery feature. --- discovery/aliyun/PRESSURE_TEST.md | 473 ++++++++++++++++++++++++++++++ discovery/aliyun/README.md | 2 + 2 files changed, 475 insertions(+) create mode 100644 discovery/aliyun/PRESSURE_TEST.md diff --git a/discovery/aliyun/PRESSURE_TEST.md b/discovery/aliyun/PRESSURE_TEST.md new file mode 100644 index 00000000000..22ae813afa3 --- /dev/null +++ b/discovery/aliyun/PRESSURE_TEST.md @@ -0,0 +1,473 @@ +# The pressure test of Prometheus on Alibaba Cloud ECS service discovery feature. + +## Abstract + +Test the Prometheus service discovery feature under ECS scaling scenarios. This involves normal scaling, alternating scaling, attaching filter tags and no tags, as well as simultaneously configuring multiple filter tags. + +The Alibaba Cloud ECS service discovery feature of Prometheus supports both the discovery of instances with or without filter tags, as well as dynamic scaling of ECS counts. It has been proved that the above functions can work normally. + +## Conclusion + +This test conducted a stress test on the service discovery mechanism of Prometheus on Alibaba Cloud ECS. It verified normal functionality in terms of scaling behavior and ECS tag filtering. In terms of resource consumption and load, under an extreme scenario simulating a cluster with about 1000 ECS instances, and with Tags Filtering conditions, as well as after alternating scaling operations, Prometheus itself consumed about 0.2 cores (vCPUs) and 1.4 GiB of memory. + +## 1. Environment benchmark + +### 1.1. Deploy and config Prometheus + +[The binary executable of Prometheus](https://github.com/AliyunContainerService/prometheus/releases/tag/v2.55.0-aliyun-ecs-sd) built on the Linux x86_64 platform. + +Create an ECS instance to serve as the running environment for Prometheus and open port `9091` in the security group. + +Each ECS instance: CPU and memory: 4 cores (vCPUs) and 16GiB. OS: Alibaba Cloud Linux 3.2104 LTS 64-bit + +Download the program to the local machine and transfer it to the remote ECS via `SCP` command. + +Create and edit the configuration file prometheus.yml. + +```yaml +global: + scrape_interval: 15s + scrape_timeout: 10s + evaluation_interval: 30s +scrape_configs: + - job_name: _aliyun-prom/ecs-sd + honor_timestamps: true + scrape_interval: 30s + scrape_timeout: 10s + metrics_path: /metrics + scheme: http + ecs_sd_configs: + - port: 9101 + refresh_interval: 30s + region_id: cn-hangzhou # Set the region for obtaining ECS instances. + access_key: # The AccessKey ID of the Alibaba Cloud account. + access_key_secret: # The AccessKey secret of the Alibaba Cloud account. + # tag_filters: + # - key: 'testK' + # values: ['*', 'testV*'] + limit: -1 # The maximum number of instances obtained from the API is limited to 100 by default; when less than zero, all instances are retrieved. +``` + +Then run the Prometheus program, which will by default use the configuration file named `prometheus.yml` in the current directory. + +```bash +./prometheus +``` + +**ECS scaling can be performed and managed in two ways: [ACK](https://www.alibabacloud.com/en/product/kubernetes) and [ESS](https://www.alibabacloud.com/en/product/auto-scaling)**. + +### 1.2. Manange and scale a group of ECS nodes by using ACK Kubernetes Cluster. + +#### 1.2.1. Create an ACK Kubernetes cluster and use nodepool to scale and manage a group of ECS nodes. + +[More information about ACK.](https://www.alibabacloud.com/help/en/ack/) + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982058879-899b947a-da13-4d9d-9e89-b552f21f3146.png) + +#### 1.2.2. Deploy node-exporter DaemonSet with hostnetwork: true as ECS's testing exporter. + +You can apply kube-prometheus community's node-exporter daemonset (include: ServiceAccount, ClusterRole, ClusterRoleBinding, Daemonsets): + +- [ServiceAccount](https://github.com/prometheus-operator/kube-prometheus/blob/main/manifests/nodeExporter-serviceAccount.yaml) + +- [ClusterRole](https://github.com/prometheus-operator/kube-prometheus/blob/main/manifests/nodeExporter-clusterRole.yaml) + +- [ClusterRoleBinding](https://github.com/prometheus-operator/kube-prometheus/blob/main/manifests/nodeExporter-clusterRoleBinding.yaml) + +- [Daemonsets](https://github.com/prometheus-operator/kube-prometheus/blob/main/manifests/nodeExporter-daemonset.yaml) + +During our load testing, we utilized the already deployed node-exporter in the Alibaba Cloud ACK cluster and opened port `9101`. + +Change the listening address of node-exporter DaemonSet from `127.0.0.1:9101` to `0.0.0.0:9101` to allow LAN access. + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982059399-a1c6cd23-7435-48ca-92cb-db60435f812e.png) + +Control the number of ECS instances by scaling the node pools. + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982059948-ae8d21c5-7464-4934-b9e4-5abf792a5642.png) + +PS: Use `top -p ` to obtain CPU and memory usage. + +## 2. Pressure test with no filter tags + +### 2.1. Normal Scaling + +**ECS instance count:** 5 -> 55 -> 155 -> 55 -> 5 + +- ECS 5 + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982060954-2d96fe8d-9e36-4afb-841b-4154a560a5c3.png) + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982061510-fb57ab56-9730-4ee6-9cff-9ceb64a8bba2.png) + +- ECS 55 + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982062105-7112648f-23d5-4dd0-974c-15980467e9bb.png) + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982062638-d54c5a2c-870b-4210-9c29-4a2ffcdc312f.png) + +- ECS 155 + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982063262-7b5563a9-9720-4625-8159-65d94d5c6253.png) + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982063759-f595ec01-d722-4d78-8b6d-6473759d768b.png) + +- ECS 55 + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982064322-124008d8-1143-4c63-9fc3-e860a1571a8e.png) + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982064917-7ba23ccb-2067-4cad-8953-87d31cbb600b.png) + +- ECS 5 + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982065480-560686f0-2132-4706-be95-9702d8233203.png) + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982066073-6424f701-d1b6-4aa1-bf0c-88fd217f7ab3.png) + +**CPU and memory changes** + +| **ECS count** | **5** | **55** | **155** | **55** | **5** | +| :-----------: | :---: | :----: | :-----: | :----: | :---: | +| **%CPU** | 0.0 | 0.0 | 1.0 | 0.3 | 0.0 | +| **%MEM** | 0.8 | 1.2 | 2.1 | 1.8 | 2.0 | + +### 2.2. Alternating Scaling + +**ECS instance count:** 5 -> 55 -> 45 -> 145 -> 105 + +- ECS 5 + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982066646-2a098493-7ec6-4615-90d2-535b4e134d12.png) + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982067188-7ed55229-b8ec-471f-806a-d208429dd4b1.png) + +- ECS 55 + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982067662-1caa0bb5-7765-47bd-bce8-823c16f1a36d.png) + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982068164-57bc5f7f-68ba-4775-a723-037f9f891138.png) + +- ECS 45 + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982068688-de8abe21-7c6e-422e-b31f-4f0fece2c37e.png) + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982069268-d84473b7-afdc-4d23-a53c-652a7ba49f88.png) + +- ECS 145 + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982069761-950cf21b-bb9e-4ce8-aee8-6b85dd1e9f05.png) + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982070253-87f2d399-6545-443d-830c-d025f0ad8bd5.png) + +- ECS 105 + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982070727-7d102780-1e86-4038-8c41-c84d7cb58590.png) + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982071260-5b37c4cd-1baf-4b1d-81ae-95fe1b2688b2.png) + +**CPU and memory changes** + +| **ECS count** | **5** | **55** | **45** | **145** | **105** | +| :-----------: | :---: | :----: | :----: | :-----: | :-----: | +| **%CPU** | 0.0 | 0.0 | 0.3 | 0.7 | 0.7 | +| **%MEM** | 2.0 | 2.2 | 2.1 | 2.7 | 2.8 | + +### 2.3. Large-scale ECS Scaling + +**ECS instance count:** 105 -> 605 -> 1105 -> 605 -> 1 + +- ECS 105 + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982071708-c22fe191-fc58-45a2-9897-56d6f60247db.png) + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982072226-19076b70-9de1-461f-a141-2fa7bc7cda2f.png) + +- ECS 605 + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982072721-096ff435-38df-44d0-a483-033d194bd293.png) + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982073195-9e626a18-6e57-4a76-b86c-13f6d6fbc1f1.png) + +- ECS 998 + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982073696-fcac4369-d8a4-4b10-927f-5ecdba43b762.png) + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982074285-5511e862-25dd-4897-82cd-af86cad81ccd.png) + +- ECS 605 + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982074750-d9465ac2-00cc-4cc5-af46-c25fc37054ee.png) + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982075282-7b15280d-447f-49a4-bfb1-8290843a7149.png) + +- ECS 1 + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982075831-8f6a1b5d-3952-46a1-8fdf-742c01446186.png) + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982076244-5689b622-a9a0-4cc3-ad51-2f00b70a022b.png) + +**CPU and memory changes** + +| **ECS count** | **105** | **605** | **998** | **605** | **1** | +| :-----------: | :-----: | :-----: | :-----: | :-----: | :---: | +| **%CPU** | 0.7 | 3.7 | 6.0 | 3.3 | 0.0 | +| **%MEM** | 2.8 | 6.5 | 10.8 | 10.2 | 11.2 | + +## 3. Pressure test with filter tags + +**Set tag filtering** + +```yaml +tag_filters: + - key: "testK" + values: ["testV", "*"] +``` + +**Add tags to ECS instances** + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982076614-41836060-2fa6-4371-9508-44da5447a669.png) + +[More information about ECS tags.](https://www.alibabacloud.com/help/en/ecs/user-guide/label-overview) + +### 3.1. Tag Filtering + +**ECS instance count:** ECS (testK: testV) 5 -> + +ECS (testK: testV) 5 + ECS 5 -> + +ECS (testK: testV) 5 + ECS 5 + ECS (testK: abc) 5 + +- ECS (testK: testV) 5 + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982077055-c9177f55-43eb-47a2-9894-724372806a07.png) + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982077584-3a74ee59-f71c-41b3-b659-a1d214a85d3d.png) + +- ECS (testK: testV) 5 + ECS 5 + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982077958-f9044427-7f9b-4aa9-b343-fa530d107710.png) + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982078425-2fa944e3-c650-45d3-b2d0-c669604553cb.png) + +> [!NOTE] +> ECS instances without tags cannot be discovered. + +- ECS (testK: testV) 5 + ECS 5 + ECS (testK: abc) 5 + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982078837-21dd6da5-9aaa-4988-8758-b13e1a1c8254.png) + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982079424-f84c3e72-1f9d-4460-a075-d2758628d075.png) + +> [!TIP] +> ECS instances with tag value `abc` match the wildcard `*` and are discovered. + +### 3.2. Normal Scaling + +**ECS instance count:** ECS (testK:testV) 5 + ECS 5 -> + +ECS (testK:testV) 55 + ECS 5 -> + +ECS (testK:testV) 155 + ECS 5 -> + +ECS (testK:testV) 55 + ECS 5 -> + +ECS (testK:testV) 5 + ECS 5 + +- ECS (testK:testV) 5 + ECS 5 + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982080000-0e4e01da-4cfd-4740-8d2e-1029fa1f0d36.png) + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982080559-2a32fb34-ac3e-4377-bbb4-6eab85e32add.png) + +- ECS (testK:testV) 55 + ECS 5 + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982081003-1e9d06d1-ce1b-4edd-b64a-744e571952aa.png) + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982081525-6dd5b6c1-871d-43eb-9085-d32b3b1b88b6.png) + +- ECS (testK:testV) 155 + ECS 5 + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982081930-1fe2d2cf-e5dc-45b1-9a8d-1c03c85ffdd3.png) + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982082518-cb578d42-3f2f-453a-b1fe-7c5959046dcf.png) + +- ECS (testK:testV) 55 + ECS 5 + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982083082-284826d4-b65a-4a53-b457-8b93c0a5eb2f.png) + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982083598-fe8f4373-97bf-49e6-b1eb-97b847bd121d.png) + +- ECS (testK:testV) 5 + ECS 5 + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982084269-150a1ae2-5230-4a43-ad2b-045707d18e77.png) + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982084771-53431160-de2f-40f6-855b-3f7afeb6500d.png) + +**CPU and memory changes** + +| **ECS count** | **5+5** | **55+5** | **155+5** | **55+5** | **5+5** | +| ------------- | ------- | -------- | --------- | -------- | ------- | +| **%CPU** | 0.0 | 0.0 | 1.3 | 0.3 | 0.0 | +| **%MEM** | 0.7 | 1.1 | 1.8 | 1.6 | 1.8 | + +### 3.3. Alternating Scaling + +**ECS instance count:** ECS (testK:testV) 5 + ECS 5 -> + +ECS (testK:testV) 55 + ECS 5 -> + +ECS (testK:testV) 45 + ECS 5 -> + +ECS (testK:testV) 145 + ECS 5 -> + +ECS (testK:testV) 105 + ECS 5 + +- ECS (testK:testV) 5 + ECS 5 + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982085220-b4c12f59-d7f6-45d6-9675-2fad6881ba97.png) + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982085767-10b5ee5b-2b05-4f7a-9bdd-7a007546a0e3.png) + +- ECS (testK:testV) 55 + ECS 5 + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982086249-262cc404-c1e7-43e8-b832-a2ee91daf98e.png) + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982086817-a189f739-120f-41bb-9fd3-5513c5a49595.png) + +- ECS (testK:testV) 45 + ECS 5 + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982087288-dbe7237d-81fb-40d7-8af3-8efd1035add1.png) + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982087732-18c20261-2fcd-4b02-bc8c-7a8cf9fc9197.png) + +- ECS (testK:testV) 145 + ECS 5 + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982088256-aff6fbe4-1d79-4d98-8125-8927dc562da6.png) + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982088786-dd502a46-d8a3-43fb-9c1f-450946af5d9c.png) + +- ECS (testK:testV) 105 + ECS 5 + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982089266-5d6f0984-7a09-42d0-9189-2adf84bb3ace.png) + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982089795-f1e02a1c-97f8-4f2e-b1c8-3dc1ba661e3e.png) + +**CPU and memory changes** + +| **ECS count** | **5+5** | **55+5** | **45+5** | **145+5** | **105+5** | +| ------------- | ------- | -------- | -------- | --------- | --------- | +| **%CPU** | 0.0 | 0.7 | 0.3 | 1.0 | 0.7 | +| **%MEM** | 1.8 | 2.0 | 1.8 | 2.4 | 2.9 | + +### 3.4. Large-scale ECS Scaling + +**ECS instance count:** ECS (testK:testV) 105 + ECS 5 -> + +ECS (testK:testV) 605 + ECS 5 -> + +ECS (testK:testV) 994 + ECS 5 -> + +ECS (testK:testV) 605 + ECS 5 -> + +ECS (testK:testV) 105 + ECS 5 + +- ECS (testK:testV) 105 + ECS 5 + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982090295-9ca63bdc-3be9-4bb1-acc7-5ff75ca498aa.png) + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982090838-2fa06e7b-0d4f-4935-9fb7-0a1bf0ac3a37.png) + +- ECS (testK:testV) 605 + ECS 5 + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982091360-7cff4fc7-a117-4ca8-bd01-610a8603234d.png) + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982091950-b071dc12-d28b-4611-a1f7-f32a30d9c4d1.png) + +- ECS (testK:testV) 994 + ECS 5 + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982092376-7866c236-4edc-48d0-af2a-cfd5452a78af.png) + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982092788-ceb80a5b-c922-4c55-a760-64a553b1992d.png) + +- ECS (testK:testV) 605 + ECS 5 + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982093319-f6eff6bc-f20c-41a2-8369-90ce622ffd98.png) + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982093783-78d941d2-361b-4abf-a801-f56cf3f8bd7f.png) + +- ECS (testK:testV) 105 + ECS 5 + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982094241-0452e523-c901-41cf-843b-198df39df3a1.png) + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728982094764-1cf2e4bd-9c7b-4b5c-b12d-9e6c0a0c7df1.png) + +**CPU and memory changes** + +| **ECS count** | **105+5** | **605+5** | **994+5** | **605+5** | **105+5** | +| ------------- | --------- | --------- | --------- | --------- | --------- | +| **%CPU** | 0.7 | 2.7 | 5.0 | 3.3 | 0.7 | +| **%MEM** | 1.3 | 4.8 | 8.5 | 7.5 | 6.8 | + +### 3.5. Multiple Tags for Filtering + +```yaml +tag_filters: + - key: "testK1" + values: ["testV1", "*"] + - key: "testK2" + values: ["testV2", "*"] +``` + +**ECS instance count:** ECS (testK1:testV1, testK2:testV2) 5 -> + +ECS (testK1:testV1, testK2:testV2) 5 + ECS (testK1:testV1) 5 -> + +ECS (testK1:testV1, testK2:testV2) 55 + ECS (testK1:testV1) 5 -> + +ECS (testK1:testV1, testK2:testV2) 5 + ECS (testK1:testV1) 5 + +- ECS (testK1:testV1, testK2:testV2) 5 + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1723088097765-4c13782c-0ecf-41d3-ba4f-9e85ecff52c5.png) + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1723088142387-d5c0aec6-0d31-43d0-9104-44c793b44254.png) + +- ECS (testK1:testV1, testK2:testV2) 5 + ECS (testK1:testV1) 5 + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1728555127111-fc7991e9-80b8-4c24-9040-c1f807742ab2.png) + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1723088366042-c34f6945-d5fd-46a6-9760-1b238fab1a99.png) + +> [!NOTE] +> ECS instances with only the testK1 tag cannot be discovered. + +- ECS (testK1:testV1, testK2:testV2) 55 + ECS (testK1:testV1) 5 + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1723088594341-75711aad-c618-4081-a121-325893a00418.png) + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1723088610102-cc6bace7-1c9a-4764-a053-493899b91aaf.png) + +- ECS (testK1:testV1, testK2:testV2) 5 + ECS (testK1:testV1) 5 + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1723088847817-5f17e9eb-4ce4-424a-a85f-c0f7dae443c4.png) + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1723088884661-08881f05-7078-4492-9e0e-5da53b3459b4.png) + +> [!IMPORTANT] +> For the same key, values are OR-related; and between different keys, the relationship is AND. + +## 4. Performance Analysis + +Collect performance data using promtools when the ECS instance count is 100. + +### 4.1. CPU + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1723086869315-5a1a567b-291d-4f9d-bd88-fc348ae2f1bc.png) + +### 4.2. Goroutine + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1723086869928-9a666252-0bfb-4fc6-a2d8-3e121acf72e0.png) + +### 4.3. MEM + +![](https://intranetproxy.alipay.com/skylark/lark/0/2024/png/145656347/1723086870336-0d8c1298-9540-4826-9d30-cf42dcdae1bd.png) diff --git a/discovery/aliyun/README.md b/discovery/aliyun/README.md index dabca032da3..2ea7c3f7f8c 100644 --- a/discovery/aliyun/README.md +++ b/discovery/aliyun/README.md @@ -57,3 +57,5 @@ scrape_configs: # regex: ".+" # or other value regex # action: keep # keep / drop ``` + +### [Pressure Test](./PRESSURE_TEST.md)