Re: Flink TaskManager memory configuration failed

2022-06-22 Thread Xintong Song
512mb is just too small for a TaskManager. You would need to either
increase it, or decrease the other memory components (which currently use
default values).

The 64mb Total Flink Memory comes from the 512mb Total Process Memory minus
192mb minimum JVM Overhead and 256mb default JVM Metaspace.

Best,

Xintong



On Thu, Jun 23, 2022 at 1:08 PM yu'an huang  wrote:

> Hi John,
>
> May I know what is your Flink version you are trying?
>
>
>
> On Thu, 23 Jun 2022 at 3:43 AM, John Tipper 
> wrote:
>
>> Hi all,
>>
>> I'm wanting to run quite a number of PyFlink jobs on Kubernetes, where
>> the amount of state and number of events being processed is small and
>> therefore I'd like to use as little memory in my clusters as possible so I
>> can bin pack most efficiently. I'm running a Flink cluster per job. I'm
>> currently trying to see how small I can make the memory settings.
>>
>> I set taskmanager.memory.process.size: 512mb in my Flink config. The
>> container is being started with requested memory of 512Mi.
>>
>>  When my TaskManager starts up, I get an error message:
>>
>> IllegalConfigurationException: Sum of configured Framework Heap Memory
>> (128mb), Framework Off-Heap Memory (128mb), Task Off-Heap Memory (0
>> bytes), Managed Memory (25.6mb) and Network Memory (64mb) exceed configured
>> Total Flink Memory (64mb).
>>
>>
>> My understanding of the docs (
>> https://nightlies.apache.org/flink/flink-docs-release-1.14/docs/deployment/memory/mem_setup_tm/)
>> is that I should just need to set taskmanager.memory.process.size. Where
>> is the 64mb figure coming from which makes up the Total Flink Memory? How
>> do I change this?
>>
>> Many thanks,
>>
>> John
>>
>


Re: Flink TaskManager memory configuration failed

2022-06-22 Thread yu'an huang
Hi John,

May I know what is your Flink version you are trying?



On Thu, 23 Jun 2022 at 3:43 AM, John Tipper  wrote:

> Hi all,
>
> I'm wanting to run quite a number of PyFlink jobs on Kubernetes, where the
> amount of state and number of events being processed is small and therefore
> I'd like to use as little memory in my clusters as possible so I can bin
> pack most efficiently. I'm running a Flink cluster per job. I'm currently
> trying to see how small I can make the memory settings.
>
> I set taskmanager.memory.process.size: 512mb​ in my Flink config. The
> container is being started with requested memory of 512Mi.
>
>  When my TaskManager starts up, I get an error message:
>
> IllegalConfigurationException: Sum of configured Framework Heap Memory
> (128mb), Framework Off-Heap Memory (128mb)​, Task Off-Heap Memory (0
> bytes), Managed Memory (25.6mb) and Network Memory (64mb) exceed configured
> Total Flink Memory (64mb).
>
>
> My understanding of the docs (
> https://nightlies.apache.org/flink/flink-docs-release-1.14/docs/deployment/memory/mem_setup_tm/)
> is that I should just need to set taskmanager.memory.process.size. Where
> is the 64mb figure coming from which makes up the Total Flink Memory? How
> do I change this?
>
> Many thanks,
>
> John
>


Flink TaskManager memory configuration failed

2022-06-22 Thread John Tipper
Hi all,

I'm wanting to run quite a number of PyFlink jobs on Kubernetes, where the 
amount of state and number of events being processed is small and therefore I'd 
like to use as little memory in my clusters as possible so I can bin pack most 
efficiently. I'm running a Flink cluster per job. I'm currently trying to see 
how small I can make the memory settings.

I set taskmanager.memory.process.size: 512mb​ in my Flink config. The container 
is being started with requested memory of 512Mi.

 When my TaskManager starts up, I get an error message:

IllegalConfigurationException: Sum of configured Framework Heap Memory (128mb), 
Framework Off-Heap Memory (128mb)​, Task Off-Heap Memory (0 bytes), Managed 
Memory (25.6mb) and Network Memory (64mb) exceed configured Total Flink Memory 
(64mb).

My understanding of the docs 
(https://nightlies.apache.org/flink/flink-docs-release-1.14/docs/deployment/memory/mem_setup_tm/)
 is that I should just need to set taskmanager.memory.process.size. Where is 
the 64mb figure coming from which makes up the Total Flink Memory? How do I 
change this?

Many thanks,

John


Re: Flink TaskManager Memory

2019-12-26 Thread vino yang
Hi Tim,

Reference a blog comes from Ververica:

"When you choose RocksDB as your state backend, your state lives as a
serialized byte-string in either the off-heap memory or the local disk."

It also contains many tune config options you can consider.[1]

Best,
Vino

[1]: https://www.ververica.com/blog/manage-rocksdb-memory-size-apache-flink

Timothy Victor  于2019年12月27日周五 上午7:11写道:

> For Streaming Jobs that use RocksDB my understanding is that state is
> allocated off-year via RocksDB.
>
> If this is true then does it still make sense to leave 70% (default
> taskmanager.memory.fraction) of the heap for Flink Manged memory given that
> it is likely not being used for state?Or am I missing something, and it
> is in fact still used?
>
> Thanks
>
> Tim
>


Flink TaskManager Memory

2019-12-26 Thread Timothy Victor
For Streaming Jobs that use RocksDB my understanding is that state is
allocated off-year via RocksDB.

If this is true then does it still make sense to leave 70% (default
taskmanager.memory.fraction) of the heap for Flink Manged memory given that
it is likely not being used for state?Or am I missing something, and it
is in fact still used?

Thanks

Tim