On Tue, Jun 7, 2016 at 11:32 PM, Harsha Kumara <[email protected]> wrote:
> Hi Ushani, > > If you send a request without a header which is the 3rd scenario this will > be happen. > > - Since specified tier has two condition group we are having two CEP > execution plans, one for default and one for conditional group. > - What we have done for the default policy is, we have taken the all > the conditions available in the conditional groups and take a invert of it > where non of the request matching the conditional groups will fall into > the default tier. > - But in the absence of configured field, the leads not to match with > any configured policy. > - Ideally I think this should go for the default policy. > > We will need add filter for check whether the condition is null and apply > the default policy. Let's create a JIRA to track down this. > yes, +1.. We have to consider that case as well.. > > Thanks, > Harsha > > On Tue, Jun 7, 2016 at 6:52 PM, Ushani Balasooriya <[email protected]> > wrote: > >> Hi All, >> >> When you enable invert condition of a particular header condition, should >> it look at the whole header name, or just the value? >> >> To collaborate more on this scenario, pls have a look at the below >> example. >> >> I have configured a tier (named *Tier1*), with default limit as 50 >> req/1min and a header condition policy as Header:value -> myheader:*123* >> with execution policy of 20req/1min and *invert condition* is switched >> *on* >> >> *Scenario 1 *: So when I invoke a request with myheader:*123*, since the >> inverter is switched on, it will throttle out at 50req/1min which is >> expected. >> *Scenario 2*: when I invoke a request with myheader:*1234*, since the >> inverter is switched on, it will throttle out at 20req/1min which is >> expected. >> *Scenario 3* :But when I invoke a request *without* a header named >> myheader, it does not throttle out at all, and can be invoked unlimited. >> >> Shouldn't this behave same as Scenario 2? Because when a publisher >> assigns a tier as Tier1, he can be in a mindset that it should consent to >> the configured tier request count. >> >> Please advice. >> >> Thanks, >> - >> *Ushani Balasooriya* >> Senior Software Engineer - QA; >> WSO2 Inc; http://www.wso2.com/. >> >> > > > -- > Harsha Kumara > Software Engineer, WSO2 Inc. > Mobile: +94775505618 > Blog:harshcreationz.blogspot.com > -- *V. Mohanadarshan* *Associate Tech Lead,* *Data Technologies Team,* *WSO2, Inc. http://wso2.com <http://wso2.com> * *lean.enterprise.middleware.* email: [email protected] phone:(+94) 771117673
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
