Skip to content

Commit

Permalink
[Improve][Zeta] Make the default value of classloader-cache-mode is t…
Browse files Browse the repository at this point in the history
…rue (#7938)
  • Loading branch information
dailai authored Oct 29, 2024
1 parent a8d0d4c commit 2f4ca01
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions config/seatunnel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

seatunnel:
engine:
classloader-cache-mode: true
history-job-expire-minutes: 1440
backup-count: 1
queue-type: blockingqueue
Expand Down
4 changes: 2 additions & 2 deletions docs/en/seatunnel-engine/hybrid-cluster-deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ seatunnel:
This configuration primarily addresses the issue of resource leakage caused by constantly creating and attempting to destroy the class loader.
If you encounter exceptions related to metaspace overflow, you can try enabling this configuration.
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.
The default value is false.
The default value is true.
Example

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

### 8.2 Submit Jobs With The REST API

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)
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)
4 changes: 2 additions & 2 deletions docs/en/seatunnel-engine/separated-cluster-deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ seatunnel:
This configuration mainly solves the problem of resource leakage caused by continuously creating and attempting to destroy class loaders.
If you encounter an exception related to metaspace space overflow, you can try to enable this configuration.
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.
The default value is false.
The default value is true.
Example

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

### 8.2 Submit Jobs With The REST API

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)
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)
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public class ServerConfigOptions {
public static final Option<Boolean> CLASSLOADER_CACHE_MODE =
Options.key("classloader-cache-mode")
.booleanType()
.defaultValue(false)
.defaultValue(true)
.withDescription(
"Whether to use classloader cache mode. With cache mode, all jobs share the same classloader if the jars are the same");

Expand Down

0 comments on commit 2f4ca01

Please sign in to comment.