From Christopher.Morrissey at netapp.com Wed Sep 18 17:50:40 2013 Content-Type: multipart/mixed; boundary="===============8805269846732633255==" MIME-Version: 1.0 From: Morrissey, Christopher To: devel at ovirt.org Subject: [Engine-devel] External events and flood rate Date: Wed, 18 Sep 2013 21:50:38 +0000 Message-ID: --===============8805269846732633255== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable --_000_D290AD8432118048947689BA3AE8A9B33C9B351CSACEXCMBX04PRDh_ Content-Type: text/plain; charset=3D"us-ascii" Content-Transfer-Encoding: quoted-printable Hi All, I've been working on submitting external events to oVirt through the REST A= =3D PI. It seems to be working in general, although it appears that, no matter = =3D what value I put for the flood rate in the event, only 1 or so events are a= =3D llowed every 30 seconds. If I send another event during this time, I get an= =3D operation failed exception. Should the flood rate have any impact on this?= =3D Is there any way to allow my code to get an event through when needed or s= =3D hould I have a thread that shoots them off every 30 seconds if several occu= =3D r too quickly together? -Chris Chris Morrissey Software Engineer NetApp Inc. 919.476.4428 --_000_D290AD8432118048947689BA3AE8A9B33C9B351CSACEXCMBX04PRDh_ Content-Type: text/html; charset=3D"us-ascii" Content-Transfer-Encoding: quoted-printable

Hi All,

 

I’ve been working on submitting external eve= nt=3D s to oVirt through the REST API. It seems to be working in general, althoug= =3D h it appears that, no matter what value I put for the flood rate in the eve= =3D nt, only 1 or so events are allowed every 30 seconds. If I send another event during this time, I get an operation f= =3D ailed exception. Should the flood rate have any impact on this? Is there an= =3D y way to allow my code to get an event through when needed or should I have= =3D a thread that shoots them off every 30 seconds if several occur too quickly together?

 

-Chris

 

Chris Morrissey

Software Engineer

NetApp Inc.

919.476.4428

 

--_000_D290AD8432118048947689BA3AE8A9B33C9B351CSACEXCMBX04PRDh_-- --===============8805269846732633255== Content-Type: multipart/alternative MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="attachment.bin" LS1fMDAwX0QyOTBBRDg0MzIxMTgwNDg5NDc2ODlCQTNBRThBOUIz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iZuYnNw OzwvbzpwPjwvcD4KPHAgY2xhc3M9M0QiTXNvTm9ybWFsIj4tQ2hyaXM8bzpwPjwvbzpwPjwvcD4K PHAgY2xhc3M9M0QiTXNvTm9ybWFsIj48bzpwPiZuYnNwOzwvbzpwPjwvcD4KPHAgY2xhc3M9M0Qi TXNvTm9ybWFsIj48Yj5DaHJpcyBNb3JyaXNzZXk8bzpwPjwvbzpwPjwvYj48L3A+CjxwIGNsYXNz PTNEIk1zb05vcm1hbCI+U29mdHdhcmUgRW5naW5lZXI8bzpwPjwvbzpwPjwvcD4KPHAgY2xhc3M9 M0QiTXNvTm9ybWFsIj5OZXRBcHAgSW5jLjxvOnA+PC9vOnA+PC9wPgo8cCBjbGFzcz0zRCJNc29O b3JtYWwiPjkxOS40NzYuNDQyODxvOnA+PC9vOnA+PC9wPgo8cCBjbGFzcz0zRCJNc29Ob3JtYWwi PjxvOnA+Jm5ic3A7PC9vOnA+PC9wPgo8L2Rpdj4KPC9ib2R5Pgo8L2h0bWw+CgotLV8wMDBfRDI5 MEFEODQzMjExODA0ODk0NzY4OUJBM0FFOEE5QjMzQzlCMzUxQ1NBQ0VYQ01CWDA0UFJEaF8tLQo= --===============8805269846732633255==-- From emesika at redhat.com Sat Sep 21 16:54:19 2013 Content-Type: multipart/mixed; boundary="===============4694006489079750531==" MIME-Version: 1.0 From: Eli Mesika To: devel at ovirt.org Subject: Re: [Engine-devel] External events and flood rate Date: Sat, 21 Sep 2013 16:54:17 -0400 Message-ID: <325725355.81020.1379796857795.JavaMail.root@redhat.com> In-Reply-To: D290AD8432118048947689BA3AE8A9B33C9B351C@SACEXCMBX04-PRD.hq.netapp.com --===============4694006489079750531== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable ----- Original Message ----- > From: "Christopher Morrissey" > To: engine-devel(a)ovirt.org > Sent: Thursday, September 19, 2013 12:50:38 AM > Subject: [Engine-devel] External events and flood rate > = > = > = > Hi All, > = > = > = > I=E2=80=99ve been working on submitting external events to oVirt through = the REST > API. It seems to be working in general, although it appears that, no matt= er > what value I put for the flood rate in the event, only 1 or so events are > allowed every 30 seconds. If I send another event during this time, I get= an > operation failed exception. Should the flood rate have any impact on this? > Is there any way to allow my code to get an event through when needed or > should I have a thread that shoots them off every 30 seconds if several > occur too quickly together? Well, the 30 sec is the default if no flood rate is given = This is an example of how the flood rate should be set by the REST API = any description normal Customer1 1 10 Can you please check that the format you are using matches that ? If you are using the same format and it still not working for you , please = open a BZ Thanks Eli Mesika > = > = > = > -Chris > = > = > = > Chris Morrissey > = > Software Engineer > = > NetApp Inc. > = > 919.476.4428 > = > = > = > _______________________________________________ > Engine-devel mailing list > Engine-devel(a)ovirt.org > http://lists.ovirt.org/mailman/listinfo/engine-devel >=20 --===============4694006489079750531==-- From mpastern at redhat.com Mon Sep 23 06:31:33 2013 Content-Type: multipart/mixed; boundary="===============7489208098580733450==" MIME-Version: 1.0 From: Michael Pasternak To: devel at ovirt.org Subject: Re: [Engine-devel] External events and flood rate Date: Mon, 23 Sep 2013 13:35:43 +0300 Message-ID: <5240197F.7090708@redhat.com> In-Reply-To: D290AD8432118048947689BA3AE8A9B33C9B351C@SACEXCMBX04-PRD.hq.netapp.com --===============7489208098580733450== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Eli, any reason for hardcoding this [1]? i'd move it to vdc_config. [1] Math.max(auditLogable.getEventFloodInSec(), 30) // Min duration for Ext= ernal Events is 30 sec On 09/19/2013 12:50 AM, Morrissey, Christopher wrote: > Hi All, > = > = > = > I=E2=80=99ve been working on submitting external events to oVirt through = the REST API. It seems to be working in general, although it appears that, = no matter what value I put for > the flood rate in the event, only 1 or so events are allowed every 30 sec= onds. If I send another event during this time, I get an operation failed e= xception. Should the > flood rate have any impact on this? Is there any way to allow my code to = get an event through when needed or should I have a thread that shoots them= off every 30 seconds if > several occur too quickly together? > = > = > = > -Chris > = > = > = > *Chris Morrissey* > = > Software Engineer > = > NetApp Inc. > = > 919.476.4428 > = > = > = > = > = > _______________________________________________ > Engine-devel mailing list > Engine-devel(a)ovirt.org > http://lists.ovirt.org/mailman/listinfo/engine-devel > = -- = Michael Pasternak RedHat, ENG-Virtualization R&D --===============7489208098580733450==-- From Christopher.Morrissey at netapp.com Mon Sep 23 09:43:56 2013 Content-Type: multipart/mixed; boundary="===============3476413307509578763==" MIME-Version: 1.0 From: Morrissey, Christopher To: devel at ovirt.org Subject: Re: [Engine-devel] External events and flood rate Date: Mon, 23 Sep 2013 13:43:40 +0000 Message-ID: In-Reply-To: 5240197F.7090708@redhat.com --===============3476413307509578763== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Thanks for looking into this Michael. Only allowing one external event ever= y 30 seconds seems like kind of a high initial setting. However, I've put i= n a workaround on our side that will retry sending the event after 30 secon= ds and queue the rest if an error is received while logging. -Chris > -----Original Message----- > From: Michael Pasternak [mailto:mpastern(a)redhat.com] > Sent: Monday, September 23, 2013 6:36 AM > To: Eli Mesika > Cc: Morrissey, Christopher; engine-devel(a)ovirt.org > Subject: Re: [Engine-devel] External events and flood rate > = > Eli, > = > any reason for hardcoding this [1]? i'd move it to vdc_config. > = > [1] Math.max(auditLogable.getEventFloodInSec(), 30) // Min duration for > External Events is 30 sec > = > On 09/19/2013 12:50 AM, Morrissey, Christopher wrote: > > Hi All, > > > > > > > > I've been working on submitting external events to oVirt through the > > REST API. It seems to be working in general, although it appears that, > > no matter what value I put for the flood rate in the event, only 1 or > > so events are allowed every 30 seconds. If I send another event during = this > time, I get an operation failed exception. Should the flood rate have any > impact on this? Is there any way to allow my code to get an event through > when needed or should I have a thread that shoots them off every 30 > seconds if several occur too quickly together? > > > > > > > > -Chris > > > > > > > > *Chris Morrissey* > > > > Software Engineer > > > > NetApp Inc. > > > > 919.476.4428 > > > > > > > > > > > > _______________________________________________ > > Engine-devel mailing list > > Engine-devel(a)ovirt.org > > http://lists.ovirt.org/mailman/listinfo/engine-devel > > > = > = > -- > = > Michael Pasternak > RedHat, ENG-Virtualization R&D --===============3476413307509578763==-- From emesika at redhat.com Thu Sep 26 16:01:34 2013 Content-Type: multipart/mixed; boundary="===============3423105746152565006==" MIME-Version: 1.0 From: Eli Mesika To: devel at ovirt.org Subject: Re: [Engine-devel] External events and flood rate Date: Thu, 26 Sep 2013 16:01:31 -0400 Message-ID: <323635173.3003190.1380225691777.JavaMail.root@redhat.com> In-Reply-To: 5240197F.7090708@redhat.com --===============3423105746152565006== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable ----- Original Message ----- > From: "Michael Pasternak" > To: "Eli Mesika" > Cc: "Christopher Morrissey" , engine-= devel(a)ovirt.org > Sent: Monday, September 23, 2013 1:35:43 PM > Subject: Re: [Engine-devel] External events and flood rate > = > Eli, > = > any reason for hardcoding this [1]? i'd move it to vdc_config. The reason was to lower the risk of external event flooding , but I agree t= hat it can be configurable.... > = > [1] Math.max(auditLogable.getEventFloodInSec(), 30) // Min duration for > External Events is 30 sec > = > On 09/19/2013 12:50 AM, Morrissey, Christopher wrote: > > Hi All, > > = > > = > > = > > I=E2=80=99ve been working on submitting external events to oVirt throug= h the REST > > API. It seems to be working in general, although it appears that, no > > matter what value I put for > > the flood rate in the event, only 1 or so events are allowed every 30 > > seconds. If I send another event during this time, I get an operation > > failed exception. Should the > > flood rate have any impact on this? Is there any way to allow my code to > > get an event through when needed or should I have a thread that shoots > > them off every 30 seconds if > > several occur too quickly together? > > = > > = > > = > > -Chris > > = > > = > > = > > *Chris Morrissey* > > = > > Software Engineer > > = > > NetApp Inc. > > = > > 919.476.4428 > > = > > = > > = > > = > > = > > _______________________________________________ > > Engine-devel mailing list > > Engine-devel(a)ovirt.org > > http://lists.ovirt.org/mailman/listinfo/engine-devel > > = > = > = > -- > = > Michael Pasternak > RedHat, ENG-Virtualization R&D >=20 --===============3423105746152565006==--