Re: Network Buffers

2023-06-06 Thread weijie guo
>> >> >> Thanks & Regards, >> Pritam >> >> >> >> On Tue, Jun 6, 2023 at 9:02 AM Hangxiang Yu wrote: >> >>> Hi, Pritam. >>> This error message indicates that the current configuration of the >>> network buffer is not

Re: Network Buffers

2023-06-06 Thread Hangxiang Yu
e indicates that the current configuration of the >> network buffer is not enough to handle the current workload. >> >>> What is the meaning of this exception (The total number of network >>> buffers is currently set to 22773 of 32768 bytes each)? >>> >> This

Re: Network Buffers

2023-06-06 Thread Pritam Agarwala
is not enough to handle the current workload. > >> What is the meaning of this exception (The total number of network >> buffers is currently set to 22773 of 32768 bytes each)? >> > This just provides some information about the current status of network > buffers (2277

Re: Network Buffers

2023-06-05 Thread Hangxiang Yu
Hi, Pritam. This error message indicates that the current configuration of the network buffer is not enough to handle the current workload. > What is the meaning of this exception (The total number of network buffers > is currently set to 22773 of 32768 bytes each)? > This just prov

Network Buffers

2023-06-05 Thread Pritam Agarwala
Hi All, java.io.IOException: Insufficient number of network buffers: required 2, but only 0 available. The total number of network buffers is currently set to 22773 of 32768 bytes each. What is the meaning of this exception (The total number of network buffers is currently set to 22773 of 32768

Serialization in window contents and network buffers

2022-09-27 Thread Alexis Sarda-Espinosa
network buffers for anything that hasn't been processed or emitted. Does Flink's serialization stack with type information applies to these cases? I ask specifically due to a use case I'm evaluating. I would have an interface as output of some operators, and all those outputs would go i

Re: Insufficient number of network buffers - rerun with min amount of required network memory

2021-01-15 Thread abelm
Hello Arvid Heise, Thanks for replying! Based on your suggestion, I put together the following snippet for the config: val config = new Configuration() private val newMemorySize = config.get(TaskManagerOptions.MEMORY_SEGMENT_SIZE) .multiply(4) .multiply(config.get(TaskManagerOptions.

Re: Insufficient number of network buffers - rerun with min amount of required network memory

2021-01-15 Thread Arvid Heise
sufficient number of network buffers" > exception might pop up. > > My plan is to catch this exception inside the main program and restart the > job with a new config in which 'taskmanager.memory.network.min' and > 'taskmanager.memory.network.max' are set

Insufficient number of network buffers - rerun with min amount of required network memory

2021-01-13 Thread abelm
Hello! I have a program which creates and runs a local Flink 1.12 environment. I understand that, based on factors such as parallelism and the presence of any process functions, the "Insufficient number of network buffers" exception might pop up. My plan is to catch this exception

Re: Insufficient number of network buffers for simple last_value aggregate

2020-10-30 Thread Arvid Heise
Hi Thilo, the number of required network buffers depends on your data exchanges and parallelism. For each shuffling data exchange (what you need for group by), you ideally have #slots-per-TM^2 * #TMs * 4 buffers. So I'm assuming you have 11 machines and 8 slots per machine. Then for

Re: Insufficient number of network buffers for simple last_value aggregate

2020-10-30 Thread Xintong Song
-1.11/ops/memory/mem_trouble.html#ioexception-insufficient-number-of-network-buffers On Fri, Oct 30, 2020 at 2:53 PM Schneider, Thilo wrote: > Dear list, > > > > when trying to compute a simple last_value aggregate, flink fails with an > IOException. The query is defined as fol

Insufficient number of network buffers for simple last_value aggregate

2020-10-29 Thread Schneider, Thilo
pache.flink.runtime.taskmanager.Task [] - Source: TableSourceScan(table=[[default_catalog, default_database, key_change_test]], fields=[id, val1, val2]) (21/88) (02f23a929919c200dbd54b7dcef635e2) switched from DEPLOYING to FAILED. java.io.IOException: Insufficient number of

Re: sporadic "Insufficient no of network buffers" issue

2020-08-02 Thread Rahul Patwari
After debugging more, it seems like this issue is caused by the scheduling strategy. Depending on the tasks assigned to the task manager, probably the amount of memory configured for network buffers is running out. Through these references: FLINK-12122 <https://issues.apache.org/jira/browse/FL

Re: sporadic "Insufficient no of network buffers" issue

2020-08-01 Thread Rahul Patwari
>From the metrics in Prometheus, we observed that the minimum AvailableMemorySegments out of all the task managers is 4.5k when the exception was thrown. So there were enough network buffers. correction to the configs provided above: each TM CPU has 8 cores. Apart from having fewer netw

Re: sporadic "Insufficient no of network buffers" issue

2020-07-31 Thread Ivan Yang
reply, Ivan. > > I think taskmanager.network.memory.max is by default 1GB. > In my case, the network buffers memory is 13112 * 32768 = around 400MB which > is 10% of the TM memory as by default taskmanager.network.memory.fraction is > 0.1. > Do you mean to increase taskmanager

Re: sporadic "Insufficient no of network buffers" issue

2020-07-31 Thread Rahul Patwari
Thanks for your reply, Ivan. I think taskmanager.network.memory.max is by default 1GB. In my case, the network buffers memory is 13112 * 32768 = around 400MB which is 10% of the TM memory as by default taskmanager.network.memory.fraction is 0.1. Do you mean to increase

Re: sporadic "Insufficient no of network buffers" issue

2020-07-31 Thread Ivan Yang
your job need the shuffling, then you may consider to add more memory to TM. Thanks, Ivan > On Jul 31, 2020, at 2:02 PM, Rahul Patwari wrote: > > Hi, > > We are observing "Insufficient number of Network Buffers" issue Sporadically > when Flink is upgraded from 1.4.2

sporadic "Insufficient no of network buffers" issue

2020-07-31 Thread Rahul Patwari
Hi, We are observing "Insufficient number of Network Buffers" issue Sporadically when Flink is upgraded from 1.4.2 to 1.8.2. The state of the tasks with this issue translated from DEPLOYING to FAILED. Whenever this issue occurs, the job manager restarts. Sometimes, the issue goes away

Re: Insufficient number of network buffers- what does Total mean on the Flink Dashboard

2020-06-12 Thread Xintong Song
>>>> One thing I don't understand is, why do you only have 29GB heap size >>>> when "taskmanager.heap.size" is configured to be "1044221m" (about 102 GB). >>>> The JVM heap size ("-Xmx" & "-Xms&qu

Re: Insufficient number of network buffers- what does Total mean on the Flink Dashboard

2020-06-12 Thread Vijay Balakrishnan
uot; & "-Xms") is calculated as follows. I'll use >>> "total" to represent "taskmanager.heap.size" for short. Also omitted the >>> calculations when managed memory is configured off-heap. >>> >>>- Standalone: jvmHeap = tota

Re: Insufficient number of network buffers- what does Total mean on the Flink Dashboard

2020-06-12 Thread Xintong Song
aged memory is configured off-heap. >> >>- Standalone: jvmHeap = total * (1 - networkFraction) = 102 GB * (1 - >>0.48) = 53 GB >> - On Yarn: jvmHeap = (total - Max(cutoff-min, total * cutoff-ratio)) >> * (1 - networkFraction) = (102GB - Max(600MB, 102GB *

Re: Insufficient number of network buffers- what does Total mean on the Flink Dashboard

2020-06-12 Thread Vijay Balakrishnan
l - Max(cutoff-min, total * cutoff-ratio)) * >(1 - networkFraction) = (102GB - Max(600MB, 102GB * 0.25)) * (1 - 0.48) = >40.6GB > > Have you specified a custom "-Xmx" parameter? > > Thank you~ > > Xintong Song > > > > On Fri, Jun 12, 2020 at 7:50 AM Vij

Re: Insufficient number of network buffers- what does Total mean on the Flink Dashboard

2020-06-11 Thread Xintong Song
jvmHeap = (total - Max(cutoff-min, total * cutoff-ratio)) * (1 - networkFraction) = (102GB - Max(600MB, 102GB * 0.25)) * (1 - 0.48) = 40.6GB Have you specified a custom "-Xmx" parameter? Thank you~ Xintong Song On Fri, Jun 12, 2020 at 7:50 AM Vijay Balakrishnan wrote: > Hi

Re: Question regarding "Insufficient number of network buffers"

2019-04-11 Thread zhijiang
Hi Allen, There are two ways for setting network buffers. The old way via `taskmanager.network.numberOfBuffers` is deprecated. The new way is via three parameters min,max and fraction. The specific formula is Math.min(network.memory.max, Math.max(network.memory.min, network.memory.fraction

Question regarding "Insufficient number of network buffers"

2019-04-11 Thread Xiangfeng Zhu
OException: Insufficient number of network buffers: required 320, but only 128 available. The total number of network buffers is currently set to 32768 of 32768 bytes each. You can increase this number by setting the configuration keys 'taskmanager.network.memory.fraction', 'taskm

Re: Manipulating Processing elements of Network Buffers

2018-02-20 Thread m@xi
criterion, and then processing them...what is the its impact to the efficiency/effectiveness of a streaming algorithm. I mean, Flink is "pure" streaming, but not-so-pure due to the network buffers, so if I use another buffering at site in each operator, this will make my application slowe

Re: Manipulating Processing elements of Network Buffers

2018-02-19 Thread Till Rohrmann
r function. The price you have to pay for this is that you have to buffer elements in between and also checkpoint them. Cheers, Till On Thu, Feb 15, 2018 at 3:13 PM, m@xi wrote: > Hello Flinker! > > I know that one should set appropriately the number of Network Buffers (NB) > that its

Manipulating Processing elements of Network Buffers

2018-02-15 Thread m@xi
Hello Flinker! I know that one should set appropriately the number of Network Buffers (NB) that its Flink deployment will use. Except from that, I am wondering if one might change/manipulate the specific sequence of data records into the NB in order to optimize the performance of its application

Re: 回复:Question regarding configuring number of network buffers

2017-06-08 Thread Nico Kruber
yes, also please consider the new and simplified network buffer configuration from 1.3 onwards: https://ci.apache.org/projects/flink/flink-docs-release-1.3/setup/ config.html#configuring-the-network-buffers Nico On Thursday, 8 June 2017 05:26:57 CEST Zhijiang(wangzhijiang999) wrote: > Hi

回复:Question regarding configuring number of network buffers

2017-06-07 Thread Zhijiang(wangzhijiang999)
it can help you. Cheers,Zhijiang  --发件人:Ray Ruvinskiy 发送时间:2017年6月7日(星期三) 23:59收件人:user@flink.apache.org 主 题:Question regarding configuring number of network buffers The documentation provides the formula #slots-per-TM^2 * #TMs * 4

Re: Question regarding configuring number of network buffers

2017-06-07 Thread Tzu-Li (Gordon) Tai
Hi! I’ve looped in Nico (cc’ed) who knows about the configuration of network buffers the best, and could probably explain it to you in more detail. Cheers, Gordon On 7 June 2017 at 5:59:08 PM, Ray Ruvinskiy (ray.ruvins...@arcticwolf.com) wrote: The documentation provides the formula #slots

Question regarding configuring number of network buffers

2017-06-07 Thread Ray Ruvinskiy
The documentation provides the formula #slots-per-TM^2 * #TMs * 4 to determine the number of network buffers we should configure. The documentation also says, “A logical network connection exists for each point-to-point exchange of data over the network, which typically happens at

Re: Flink streaming job with iterations gets stuck waiting for network buffers

2017-04-03 Thread Gábor Hermann
that there is a complete redesign planned for it (partly FLIP-15 [1]) that has to entirely address this pending flow control issue as well. Increasing network buffers or feedback queue capacity to a really high number decreases the possibility of the deadlock but does not eliminate it. I r

Re: Insufficient number of network buffers

2016-05-03 Thread Tarandeep Singh
> Hey Tarandeep, > > I think the failures are unrelated. Regarding the number of network > buffers: > https://ci.apache.org/projects/flink/flink-docs-release-1.0/setup/config.html#configuring-the-network-buffers > > The timeouts might occur, because the task managers are pretty lo

Re: Insufficient number of network buffers

2016-05-03 Thread Ufuk Celebi
Hey Tarandeep, I think the failures are unrelated. Regarding the number of network buffers: https://ci.apache.org/projects/flink/flink-docs-release-1.0/setup/config.html#configuring-the-network-buffers The timeouts might occur, because the task managers are pretty loaded. I would suggest to

Insufficient number of network buffers

2016-05-02 Thread Tarandeep Singh
Hi, I have written ETL jobs in Flink (DataSet API). When I execute them in IDE, they run and finish fine. When I try to run them on my cluster, I get "Insufficient number of network buffers" error. I have 5 machines in my cluster with 4 cores each. TaskManager is given 3GB each. I inc

Re: Insufficient number of network buffers running on cluster

2015-11-27 Thread Fabian Hueske
Hi Guido, please check this section of the configuration documentation: https://ci.apache.org/projects/flink/flink-docs-release-0.10/setup/config.html#configuring-the-network-buffers It should answer your questions. Please let us know, if not. Cheers, Fabian 2015-11-27 16:41 GMT+01:00 Guido

Insufficient number of network buffers running on cluster

2015-11-27 Thread Guido
Hello, I would like to ask you something regarding an error I’m facing running java code over the cluster at DIMA. Caused by: java.io.IOException: Insufficient number of network buffers: required 300, but only 161 available. The total number of network buffers is currently set to 70480. You

Re: Exception: Insufficient number of network buffers: required 120, but only 2 of 2048 available

2015-03-04 Thread Ufuk Celebi
Good idea. I've changed the message. :) On 04 Mar 2015, at 14:51, Robert Metzger wrote: > I agree with Henry. > We should include the name of the required configuration parameter into the > exception. > Users often run into this issue.

Re: Exception: Insufficient number of network buffers: required 120, but only 2 of 2048 available

2015-03-04 Thread Robert Metzger
015-02-18 22:59 GMT+01:00 Yiannis Gkoufas : > >>> > >>> Hi! > >>> > >>> thank you for your replies! > >>> I increased the number of network buffers: > >>> > >>> taskmanager.network.numberOfBuffers: 2048 > >>

Re: Exception: Insufficient number of network buffers: required 120, but only 2 of 2048 available

2015-02-19 Thread Henry Saputra
gt; On 18 February 2015 at 22:13, Fabian Hueske wrote: >> >> 2048 is the default. So you didn't actually increase the number of buffers >> ;-) >> >> Try 4096 or so. >> >> 2015-02-18 22:59 GMT+01:00 Yiannis Gkoufas : >>> >>> Hi! >>

Re: Exception: Insufficient number of network buffers: required 120, but only 2 of 2048 available

2015-02-18 Thread Yiannis Gkoufas
>> >> thank you for your replies! >> I increased the number of network buffers: >> >> taskmanager.network.numberOfBuffers: 2048 >> >> but I am still getting the same error: >> >> Insufficient number of network buffers: required 120, but only 2 o

Re: Exception: Insufficient number of network buffers: required 120, but only 2 of 2048 available

2015-02-18 Thread Fabian Hueske
2048 is the default. So you didn't actually increase the number of buffers ;-) Try 4096 or so. 2015-02-18 22:59 GMT+01:00 Yiannis Gkoufas : > Hi! > > thank you for your replies! > I increased the number of network buffers: > > taskmanager.network.numberOfBuffers: 2048 >

Re: Exception: Insufficient number of network buffers: required 120, but only 2 of 2048 available

2015-02-18 Thread Yiannis Gkoufas
Hi! thank you for your replies! I increased the number of network buffers: taskmanager.network.numberOfBuffers: 2048 but I am still getting the same error: Insufficient number of network buffers: required 120, but only 2 of 2048 available. Thanks a lot! On 18 February 2015 at 20:27, Fabian

Re: Exception: Insufficient number of network buffers: required 120, but only 2 of 2048 available

2015-02-18 Thread Fabian Hueske
Hi Yiannis, if you scale Flink to larger setups you need to adapt the number of network buffers. The background section of the configuration reference explains the details on that [1]. Let us know, if that helped to solve the problem. Best, Fabian [1] http://flink.apache.org/docs/0.8

Re: Exception: Insufficient number of network buffers: required 120, but only 2 of 2048 available

2015-02-18 Thread Stephan Ewen
tion.degree.default: 120 > > I have been getting the following error: > > java.lang.Exception: Failed to deploy the task Reduce (SUM(1)) (65/120) - > execution #0 to slot SimpleSlot (1)(0) - efc370a0b2a9a63f2e7b960cfe4e4c27 - > ALLOCATED/ALIVE: java.io.IOException: Insufficient n

Exception: Insufficient number of network buffers: required 120, but only 2 of 2048 available

2015-02-18 Thread Yiannis Gkoufas
: java.lang.Exception: Failed to deploy the task Reduce (SUM(1)) (65/120) - execution #0 to slot SimpleSlot (1)(0) - efc370a0b2a9a63f2e7b960cfe4e4c27 - ALLOCATED/ALIVE: java.io.IOException: Insufficient number of network buffers: required 120, but only 2 of 2048 available. at