bytedance / bitsail

BitSail is a distributed high-performance data integration engine which supports batch, streaming and incremental scenarios. BitSail is widely used to synchronize hundreds of trillions of data every day.
https://bytedance.github.io/bitsail/
Apache License 2.0
1.6k stars 328 forks source link

[BitSail][Common]Add java opts env for bitsail shell #496

Closed humengyu2012 closed 10 months ago

humengyu2012 commented 10 months ago

When we submit a task using Bitsail, Bitsail initiates two processes: "Entry" and "CliFrontend." If we don't specify Java program parameters, they default to setting the Java heap memory (Xmx) to 1/4 of the maximum server memory when they start. This behavior is not container-friendly when using the Bitsail client, as it may lead to container Out of Memory (OOM) issues. We should have some limitations in place.

Flink provides the FLINK_ENV_JAVA_OPTS_CLI environment variable to set the memory usage for CliFrontend. However, Bitsail does not offer a similar configuration. This pull request introduces the BITSAIL_JAVA_OPTS configuration to restrict the memory and other related resources used by Bitsail processes.