Skip to content

Commit 2f4ca01

Browse files
authored
[Improve][Zeta] Make the default value of classloader-cache-mode is true (apache#7938)
1 parent a8d0d4c commit 2f4ca01

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

config/seatunnel.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
seatunnel:
1919
engine:
20+
classloader-cache-mode: true
2021
history-job-expire-minutes: 1440
2122
backup-count: 1
2223
queue-type: blockingqueue

docs/en/seatunnel-engine/hybrid-cluster-deployment.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ seatunnel:
127127
This configuration primarily addresses the issue of resource leakage caused by constantly creating and attempting to destroy the class loader.
128128
If you encounter exceptions related to metaspace overflow, you can try enabling this configuration.
129129
To reduce the frequency of class loader creation, after enabling this configuration, SeaTunnel will not attempt to release the corresponding class loader when a job is completed, allowing it to be used by subsequent jobs. This is more effective when the number of Source/Sink connectors used in the running job is not excessive.
130-
The default value is false.
130+
The default value is true.
131131
Example
132132

133133
```yaml
@@ -337,4 +337,4 @@ Now that the cluster is deployed, you can complete the submission and management
337337

338338
### 8.2 Submit Jobs With The REST API
339339

340-
The SeaTunnel Engine provides a REST API for submitting and managing jobs. For more information, please refer to [REST API V2](rest-api-v2.md)
340+
The SeaTunnel Engine provides a REST API for submitting and managing jobs. For more information, please refer to [REST API V2](rest-api-v2.md)

docs/en/seatunnel-engine/separated-cluster-deployment.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ seatunnel:
173173
This configuration mainly solves the problem of resource leakage caused by continuously creating and attempting to destroy class loaders.
174174
If you encounter an exception related to metaspace space overflow, you can try to enable this configuration.
175175
In order to reduce the frequency of creating class loaders, after enabling this configuration, SeaTunnel will not try to release the corresponding class loader when the job is completed, so that it can be used by subsequent jobs, that is to say, when not too many types of Source/Sink connector are used in the running job, it is more effective.
176-
The default value is false.
176+
The default value is true.
177177
Example
178178

179179
```yaml
@@ -448,4 +448,4 @@ Now that the cluster has been deployed, you can complete the job submission and
448448

449449
### 8.2 Submit Jobs With The REST API
450450

451-
The SeaTunnel Engine provides a REST API for submitting and managing jobs. For more information, please refer to [REST API V2](rest-api-v2.md)
451+
The SeaTunnel Engine provides a REST API for submitting and managing jobs. For more information, please refer to [REST API V2](rest-api-v2.md)

seatunnel-engine/seatunnel-engine-common/src/main/java/org/apache/seatunnel/engine/common/config/server/ServerConfigOptions.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ public class ServerConfigOptions {
207207
public static final Option<Boolean> CLASSLOADER_CACHE_MODE =
208208
Options.key("classloader-cache-mode")
209209
.booleanType()
210-
.defaultValue(false)
210+
.defaultValue(true)
211211
.withDescription(
212212
"Whether to use classloader cache mode. With cache mode, all jobs share the same classloader if the jars are the same");
213213

0 commit comments

Comments
 (0)