diff --git a/docs/Changelog.md b/docs/Changelog.md index 2e945a86e9e..11d9f3e4c79 100644 --- a/docs/Changelog.md +++ b/docs/Changelog.md @@ -25,6 +25,7 @@ * [#7240](https://github.com/TouK/nussknacker/pull/7240) Fixed race condition problem during SpEL expression evaluation * [#7269](https://github.com/TouK/nussknacker/pull/7269) Fixed focus scrolling in expression editor * [#7270](https://github.com/TouK/nussknacker/pull/7270) Savepoint deserialization fixup - some taken savepoints (e.g. for scenarios with async enrichers) were not deserializable which led to errors during redeployments on Flink +* [#7279](https://github.com/TouK/nussknacker/pull/7279) Fixed Flink TaskManager and Designer containers restarts in installation example ### 1.18.0 (22 November 2024) diff --git a/examples/installation/docker-compose.yml b/examples/installation/docker-compose.yml index a8e977f117a..8bc5c3e84ad 100644 --- a/examples/installation/docker-compose.yml +++ b/examples/installation/docker-compose.yml @@ -40,7 +40,7 @@ services: SCHEMA_REGISTRY_URL: "http://schema-registry:8081" INFLUXDB_URL: "http://influxdb:8086" FLINK_REST_URL: "http://flink-jobmanager:8081" - JDK_JAVA_OPTIONS: "-Xmx1024M" + JDK_JAVA_OPTIONS: "-Xmx400M -XX:MaxMetaspaceSize=300M -XX:MaxDirectMemorySize=100M" USAGE_REPORTS_SOURCE: "example-installation-docker-compose" depends_on: postgres: @@ -241,7 +241,7 @@ services: deploy: resources: limits: - memory: 1024M + memory: 1500M telegraf: image: telegraf:1.30.2 diff --git a/examples/installation/flink/flink-properties.yml b/examples/installation/flink/flink-properties.yml index dd0b7fed688..c64ec68ca3e 100644 --- a/examples/installation/flink/flink-properties.yml +++ b/examples/installation/flink/flink-properties.yml @@ -1,4 +1,8 @@ taskmanager.numberOfTaskSlots: 8 +# Nu requires a little bit more metaspace than Flink default allocate based on process size +taskmanager.memory.process.size: 1500m +taskmanager.memory.jvm-metaspace.size: 400m + state.backend.type: filesystem state.checkpoints.dir: file:///opt/flink/data/checkpoints state.savepoints.dir: file:///opt/flink/data/savepoints