Re: [pmacct-discussion] nfacctd and amqp_multi_values

2017-09-20 Thread Paolo Lucente
Hi Yann, Yes, it is possible to add such a feature. It will be less efficient as it will require to manage the container buffer dynamically (to grow and shrink it, define an upper boundary for growth, etc.) and require a bit of coding. I can add to my todo list for 1.7.1 (as 1.7.0 code will go fr

Re: [pmacct-discussion] nfacctd and amqp_multi_values

2017-09-19 Thread Yann Belin
Thanks Paolo, >From your opinion, would such feature be difficult (possible) to implement? I didn't look into the code yet, I didn't program in C since high school and my skills are quite rusty. Cheers, Yann On Fri, Sep 15, 2017 at 6:38 PM Paolo Lucente wrote: > > Hi Yann, > > I confirm you c

Re: [pmacct-discussion] nfacctd and amqp_multi_values

2017-09-15 Thread Paolo Lucente
Hi Yann, I confirm you can't do that with AMQP as the only knob pmacct gives you is the size-based amqp_multi_values. Although not part of your question, with Kafka and you may choose not to leverage the pmacct knob, kafka_multi_values, and use instead batch.num.messages (ie. amount of messages y

[pmacct-discussion] nfacctd and amqp_multi_values

2017-09-14 Thread Yann Belin
Hello, Does anyone know if there is a way to control the maximum number of rows sent in an AMQP message? amqp_multi_values allows me to do that in an approximate way (row_size/message_size) but I need to have a finer control on that, which is not dependent of variations of row size. Thanks in ad