Переглянути джерело

chore(临考突击报告): 按环境下放报告池配置

金逸霄 6 днів тому
батько
коміт
ce5dbf7324

+ 9 - 0
ability-center-runtime/src/main/resources/application-prod.yml

@@ -1,6 +1,15 @@
 ability:
   exam-sprint:
     report:
+      async:
+        core-pool-size: 2
+        max-pool-size: 4
+        queue-capacity: 100
+      pdf:
+        pool-size: 2
+        borrow-timeout: 60s
+        launch-timeout: 45s
+        render-timeout: 60s
       storage:
         type: azure
         connection-string: "${AZURE_BLOB_CONNECTION_STRING:DefaultEndpointsProtocol=https;AccountName=dcjxb;AccountKey=+Bg9srieVxwemxcE2b+icL3t3hp8m04PuYanTl6fwB/Cx1SF49qimBpYvXQjcvatgDDDgxjqYDP/0DCFTSQcgg==;EndpointSuffix=core.chinacloudapi.cn;}"

+ 9 - 0
ability-center-runtime/src/main/resources/application-test.yml

@@ -4,6 +4,15 @@ server:
 ability:
   exam-sprint:
     report:
+      async:
+        core-pool-size: 1
+        max-pool-size: 2
+        queue-capacity: 20
+      pdf:
+        pool-size: 1
+        borrow-timeout: 60s
+        launch-timeout: 45s
+        render-timeout: 60s
       storage:
         type: azure
         connection-string: "DefaultEndpointsProtocol=https;AccountName=dcjxbtest;AccountKey=CoOzFKq3/aecqY8JehnW+oV3XYe8dN8772NQbhT5VzYO5fdrx+Ps/LhmPqv9U/M28BtqSrgN13pjJqPvIRdI2w==;EndpointSuffix=core.chinacloudapi.cn"

+ 0 - 9
ability-center-runtime/src/main/resources/application.yml

@@ -4,15 +4,6 @@ ability:
       retention: 1d
       download-expiry: 15m
       cleanup-interval-ms: 600000
-      async:
-        core-pool-size: 2
-        max-pool-size: 4
-        queue-capacity: 100
-      pdf:
-        pool-size: 4
-        borrow-timeout: 30s
-        launch-timeout: 30s
-        render-timeout: 30s
       storage:
         type: memory
         container-name: reports