From 80a223daf73cf216ba55dfd1003e0ea112a8acbd Mon Sep 17 00:00:00 2001 From: xuwei-fit2cloud Date: Mon, 3 Jun 2024 11:24:40 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20selenium=E9=95=9C=E5=83=8F=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0cpu=E5=92=8C=E5=86=85=E5=AD=98=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- installer/dataease/docker-compose-selenium.yml | 5 +++++ installer/install.conf | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/installer/dataease/docker-compose-selenium.yml b/installer/dataease/docker-compose-selenium.yml index bfa26ea3d8..2b99dd502a 100644 --- a/installer/dataease/docker-compose-selenium.yml +++ b/installer/dataease/docker-compose-selenium.yml @@ -5,6 +5,11 @@ services: container_name: de-selenium shm_size: 2gb privileged: true + deploy: + resources: + limits: + cpus: ${DE_SELENIUM_CPU_LIMIT} + memory: ${DE_SELENIUM_MEM_LIMIT} environment: - SE_START_XVFB=false - SE_ENABLE_BROWSER_LEFTOVERS_CLEANUP=true diff --git a/installer/install.conf b/installer/install.conf index 5048bc44b4..73f7bf6927 100644 --- a/installer/install.conf +++ b/installer/install.conf @@ -23,3 +23,9 @@ DE_MYSQL_USER=root DE_MYSQL_PASSWORD=Password123@mysql ## 数据库参数 DE_MYSQL_PARAMS="autoReconnect=false&useUnicode=true&characterEncoding=UTF-8&characterSetResults=UTF-8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true" + +# 定时报告镜像配置 +## selenium 镜像 CPU 限制 +DE_SELENIUM_CPU_LIMIT='1' +## selenium 镜像 内存 限制 +DE_SELENIUM_MEM_LIMIT=2g